Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 |