Returns details for a windows DirectX surface
Syntax
BOOL WINAPI DwmGetDxSharedSurface (
HWND hwnd,
HANDLE* phSurface,
LUID* pAdapterLuid,
ULONG* pFmtWindow,
ULONG* pPresentFlags,
ULONGLONG* pWin32kUpdateId
)
Parameters
hwndThe window to investigatephSurface
- A pointer that
- a shared handle to the windows' surface.
This can be passed IDirect3DDevice9::CreateTexture to make a texture.
- pAdapterLuid
- Pointer that receives the id of the adapter the window resides on
- pFmtWindow
- The D3DFMT_ format of the window surface
- pPresentFlags
- Pointer that receives the D3DPRESENT_ flags for the window/surface
- pWin32kUpdateId
- ??
Return Value
Non-zero on success, zero on failure. Use GetLastError() for more information.
Remarks
Any output parameters not required can be set to NULL
标签:截图,DwmGetDxSharedSurface,ULONG,windows,surface,window,receives,后台 From: https://www.cnblogs.com/oujian/p/18116268