EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

IDirectDraw7::GetDeviceIdentifier method

Obtains information about the device driver. This method can be used, with caution, to recognize specific hardware installations to implement workarounds for poor driver or chipset behavior.

Syntax


HRESULT GetDeviceIdentifier(
  [out]  LPDDDEVICEIDENTIFIER2 lpdddi,
  [in]   DWORD dwFlags
);

Parameters

lpdddi [out]

A pointer to a DDDEVICEIDENTIFIER2 structure that receives information about the driver.

dwFlags [in]

This value consists of flags that specify options. The following flag is the only defined flag:

DDGDI_GETHOSTIDENTIFIER

Causes GetDeviceIdentifier to return information about the host (typically 2-D) adapter in a system equipped with a stacked secondary 3-D adapter. Such an adapter appears to the application as if it were part of the host adapter, but is typically located on a separate card. When the dwFlags parameter is 0, information on the stacked secondary is returned because this most accurately reflects the qualities of the DirectDraw object involved.

Return value

If the method succeeds, the return value is DD_OK.

If it fails, the method can return DDERR_INVALIDPARAMS.

Remarks

You must use LoadLibrary to explicitly link to Ddraw.dll and then use GetProcAddress to access the GetDeviceIdentifier method.

Requirements

Header

Ddraw.h

Library

Ddraw.dll

See also

IDirectDraw7

 

 

コミュニティの追加

追加
表示:
© 2014 Microsoft