情報
要求されたトピックは次のとおりです。しかし、このトピックはこのライブラリには含まれていません。

WdfFdoInitWdmGetPhysicalDevice メソッド

The WdfFdoInitWdmGetPhysicalDevice method retrieves a device's WDM physical device object (PDO).

構文

PDEVICE_OBJECT WdfFdoInitWdmGetPhysicalDevice(
  [in]  PWDFDEVICE_INIT DeviceInit
);

パラメーター

DeviceInit [in]

A pointer to a WDFDEVICE_INIT structure that the driver obtained from its EvtDriverDeviceAdd callback function.

戻り値

If the operation succeeds, the method returns a pointer to a DEVICE_OBJECT structure. Otherwise the method returns NULL.

解説

The driver must call WdfFdoInitWdmGetPhysicalDevice before calling WdfDeviceCreate. For more information about calling WdfDeviceCreate, see Creating a Framework Device Object.

For more information about the WdfFdoInitWdmGetPhysicalDevice method, see Creating Device Objects in a Function Driver.

The following code example obtains a pointer to a DEVICE_OBJECT structure that represents a device's WDM PDO.

PDEVICE_OBJECT device;

device = WdfFdoInitWdmGetPhysicalDevice(DeviceInit);

要件

バージョン

Available in version 1.0 and later versions of KMDF.

ヘッダー

Wdffdo.h (includeWdf.h)

ライブラリ

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

IRQL

<= DISPATCH_LEVEL

 

 

コミュニティの追加

表示:
© 2014 Microsoft