共用方式為


IDirect3DQuery9::GetDevice 方法 (d3d9helper.h)

取得正在查詢的裝置。

語法

HRESULT GetDevice(
  [out] IDirect3DDevice9 **ppDevice
);

參數

[out] ppDevice

類型: IDirect3DDevice9**

正在查詢之裝置的指標。 請參閱 IDirect3DDevice9

傳回值

類型: HRESULT

如果方法成功,傳回值會D3D_OK。 如果方法失敗,則傳回值可以D3DERR_INVALIDCALL。

需求

   
目標平台 Windows
標頭 d3d9helper.h (包含 D3D9.h)
程式庫 D3D9.lib

另請參閱

IDirect3DQuery9