Edit

Share via


IWindowNative::get_WindowHandle method (microsoft.ui.xaml.window.h)

Retrieves the window handle (HWND) of the window represented by the object that implements IWindowNative.

For more info, and code examples, see Retrieve a window handle (HWND).

Syntax

HRESULT get_WindowHandle(
  HWND *hWnd
);

Parameters

hWnd

The window handle (HWND).

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809 (with Windows App SDK 0.5 or later)
Header microsoft.ui.xaml.window.h

See also