AtaPortRegistryFreeBuffer 函数 (irb.h)

AtaPortRegistryFreeBuffer 例程释放使用 AtaPortRegistryAllocateBuffer分配的注册表缓冲区。

注意 ATA 端口驱动程序和 ATA 微型端口驱动程序模型将来可能会更改或不可用。 相反,我们建议使用 Storport 驱动程序Storport 微型端口 驱动程序模型。
 

语法

void AtaPortRegistryFreeBuffer(
  [in] PVOID ChannelExtension,
  [in] PVOID Buffer
);

参数

[in] ChannelExtension

指向通道扩展的指针。

[in] Buffer

指向要释放的缓冲区的指针。

返回值

没有

言论

AtaPortRegistryFreeBuffer 将延迟写入作刷新到注册表。

微型端口驱动程序必须在其 AtaChannelInitRoutine 例程或 IdeHwControl 例程中调用 AtaPortRegistryFreeBuffer。 它无法从任何其他例程调用 AtaPortRegistryFreeBuffer。 此外,微型端口驱动程序只能从其 IdeHwControl 例程调用 AtaPortRegistryFreeBuffer,前提是调用其 IdeHwControl 例程,并在其 ControlAction 参数中具有 StartChannelStopChannel 的值。

要求

要求 价值
目标平台 桌面
标头 irb.h (包括 Ata.h、Irb.h)
Ataport.lib;Pciidex.lib

另请参阅

AtaChannelInitRoutine

AtaPortRegistryAllocateBuffer

IdeHwControl