Detecting full-screen Direct3D applications

后端 未结 2 681
不思量自难忘°
不思量自难忘° 2021-02-10 14:04

Is there any way to detect - through the Direct3D API - Direct3D applications running in full-screen mode?

SHQueryUserNotificationState, which can indicate such applicat

2条回答
  •  醉梦人生
    2021-02-10 14:55

    Try 'IDirect3DDevice9::GetDisplayMode':

    http://msdn.microsoft.com/en-us/library/bb174387%28VS.85%29.aspx

    HRESULT GetDisplayMode(
      UINT  iSwapChain,
      D3DDISPLAYMODE * pMode
    );
    

    Parameters:

    iSwapChain[in]

    An unsigned integer specifying the swap chain. 
    

    pMode[out]

    Pointer to a D3DDISPLAYMODE structure containing data about the
    

    display mode of the adapter. As opposed to the display mode of the device, which may not be active if the device does not own full-screen mode.

提交回复
热议问题