IShareWindowCommandSourceInterop::GetForWindow method (sharewindowcommandsourceinterop.h)
Gets the ShareWindowCommandSource object corresponding to a window identifier (a window handle).
The window identifier represents the window where the call or meeting is established. This allows the Windows Shell to use the window identifier to obtain resources such as an icon, and to provide that as a hint to the user.
Thank you for your interest in consuming the ShareWindowCommandSource API within your real-time communication application.
The ShareWindowCommandSource API is a limited access feature.
Please contact email@example.com for more information, and to request an unlock token.
HRESULT GetForWindow( HWND appWindow, REFIID riid, void **shareWindowCommandSource );
The window identifier (a window handle) of the window where the call or meeting is established.
The window identified by the HWND passed in appWindow must be such that it is capable of providing the brand icon, and the friendly name, of the client application.
A reference to the interface identifier of the Windows::UI::Shell::IShareWindowCommandSource interface.
The address of a Windows::UI::Shell::IShareWindowCommandSource pointer in which to receive the ShareWindowCommandSource object.
For a code example, see IShareWindowCommandSourceInterop.
|Minimum supported client||Windows Build 22000|
|Minimum supported server||Windows Build 22000|