IShareWindowCommandSourceInterop::GetForWindow method (sharewindowcommandsourceinterop.h)
Some information relates to a prerelease product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 firstname.lastname@example.org 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.