WdfCommonBufferGetLength メソッド

The WdfCommonBufferGetLength method returns the length of a specified common buffer.

構文

size_t WdfCommonBufferGetLength(
  [in]  WDFCOMMONBUFFER CommonBuffer
);

パラメーター

CommonBuffer [in]

A handle to a common buffer object that the driver obtained by a previous call to WdfCommonBufferCreate.

戻り値

WdfCommonBufferGetLength returns the length, in bytes, of the buffer that is associated with the common buffer that the CommonBuffer parameter specifies.

A bug check occurs if the driver supplies an invalid object handle.

解説

For more information about common buffers, see Using Common Buffers

The following code example obtains the length of a specified common buffer.

size_t bufferLength;

bufferLength = WdfCommonBufferGetLength(DevExt->CommonBuffer); 

要件

バージョン

Available in version 1.0 and later versions of KMDF.

ヘッダー

Wdfcommonbuffer.h (includeWdfCommonBuffer.h)

ライブラリ

Wdf<MajorVersionNumber>000.sys (see Framework Library Versions.)

IRQL

<= DISPATCH_LEVEL

参照

WdfCommonBufferCreate

 

 

コミュニティの追加

追加
表示:
© 2015 Microsoft