IMiniportWaveRTStreamNotification::FreeBufferWithNotification 方法 (portcls.h)

方法 FreeBufferWithNotification 用于释放先前通过调用 IMiniportWaveRTStreamNotification::AllocateBufferWithNotification 分配的音频缓冲区。

语法

void FreeBufferWithNotification(
  [in] PMDL  AudioBufferMdl,
  [in] ULONG BufferSize
);

参数

[in] AudioBufferMdl

指定先前通过调用 IMiniportWaveRTStreamNotification::AllocateBufferWithNotification 分配的 MDL) 内存描述符 (列表。

[in] BufferSize

方法已写入 Attributes 缓冲区的字节数的输出指针。 此参数指向一个 ULONG 变量,方法在该变量中写入字节计数。

返回值

备注

端口驱动程序调用此方法以释放先前调用 IMiniportWaveRTStreamNotification::AllocateBufferWithNotification 时分配的音频缓冲区。

要求

要求
最低受支持的客户端 在 Windows Vista 和更高版本的 Windows 操作系统中可用。
目标平台 通用
标头 portcls.h
IRQL 被动级别。

另请参阅

IMiniportWaveRTStreamNotification

IMiniportWaveRTStreamNotification::AllocateBufferWithNotification

MDL