GetContractDelegateWindow function

Retrieves a window that has been set as a delegate for an app's primary foreground window for the purpose of associating the delegate window with the app's contracts. Use this function if you are a developer writing a Windows Store app in native C++.

Syntax

HWND GetContractDelegateWindow(
  _In_ HWND hwndSource
);

Parameters

  • hwndSource [in]
    Type: HWND

    The handle of the window whose delegate should be retrieved.

Return value

Type: HWND

The handle of the delegate window.

Remarks

This is an inline function, with the source code included in the header file. It is not included in a .lib or .dll file.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Shobjidl.h

See also

SetContractDelegateWindow