Edit

Share via


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

Gets the window handle (HWND) that corresponds to the specified WindowId, if the windowId argument is valid and the system has an HWND that represents the window.

Syntax

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

Parameters

id

The identifier for the window.

hwnd

The window handle that corresponds to windowId, if windowId is valid and the system has an HWND that represents the window. Otherwise, null.

Requirements

Requirement Value
Header windows.ui.interop.h