有没有办法通过Direct3D API检测全屏模式下运行的Direct3D应用程序?
SHQueryUserNotificationState可以指示此类应用程序,但仅支持Vista及以上版本。它仅在Explorer shell运行时才有效。
有没有办法通过Direct3D API检测全屏模式下运行的Direct3D应用程序?
SHQueryUserNotificationState可以指示此类应用程序,但仅支持Vista及以上版本。它仅在Explorer shell运行时才有效。
DDERR_EXCLUSIVEMODEALREADYSET
。DDCREATE_EMULATIONONLY
调用DirectDrawCreateEx
。这将通过IDirectDraw7显著减少资源使用。SHQueryUserNotificationState()
返回QUNS_BUSY
而不是QUNS_RUNNING_D3D_FULL_SCREEN
用于全屏游戏。奇怪...http://msdn.microsoft.com/en-us/library/bb174387%28VS.85%29.aspx
HRESULT GetDisplayMode(
UINT iSwapChain,
D3DDISPLAYMODE * pMode
);
参数:
iSwapChain [输入]
An unsigned integer specifying the swap chain.
pMode [输出]
Pointer to a D3DDISPLAYMODE structure containing data about the