DwmGetDxSharedSurface

Go to Home Page

Returns details for a windows DirectX surface

Syntax

BOOL WINAPI DwmGetDxSharedSurface (
    HWND hwnd,
    HANDLE* phSurface,
    LUID* pAdapterLuid,
    ULONG* pFmtWindow,
    ULONG* pPresentFlags,
    ULONGLONG* pWin32kUpdateId
)

Parameters

hwnd
The window to investigate
phSurface
A pointer that receives 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