Edit

Share via


interop::GetWindowIdFromWindow function (windows.ui.interop.h)

Gets the WindowId that corresponds to the specified window handle (HWND), if the hwnd argument is valid.

Syntax

HRESULT GetWindowIdFromWindow(
  HWND                       hwnd,
  ABI::Windows::UI::WindowId *id
);

Parameters

hwnd

The handle of the window for which to get the WindowId.

id

The identifier that corresponds to hwnd, if hwnd is valid. Otherwise, null.

Requirements

Requirement Value
Header windows.ui.interop.h