Microsoft DirectX 9.0

IOverlay::GetWindowHandle

The GetWindowHandle method retrieves the current window handle.

Syntax

HRESULT GetWindowHandle(
  HWND *pHwnd
);

Parameters

pHwnd

[out] Pointer to a variable that receives the window handle.

Return Value

Returns S_OK if successful. If the method fails, it returns an HRESULT error code.

See Also