IShareWindowCommandSourceInterop interface (sharewindowcommandsourceinterop.h)

A native interoperation interface that allows getting a ShareWindowCommandSource object. This interface is available in C++ only. Also see IShareWindowCommandSourceInterop.GetForWindow.

Note

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 onairapi@microsoft.com for more information, and to request an unlock token.

Inheritance

The IShareWindowCommandSourceInterop interface inherits from the IUnknown interface.

Methods

The IShareWindowCommandSourceInterop interface has these methods.

 
IShareWindowCommandSourceInterop::GetForWindow

Gets the ShareWindowCommandSource object corresponding to a window identifier (a window handle). (IShareWindowCommandSourceInterop::GetForWindow)

Remarks

Here's a code example.

auto interop_factory = winrt::get_activation_factory
    <winrt::Windows::UI::Shell::ShareWindowCommandSource,
    IShareWindowCommandSourceInterop>();
        
winrt::check_hresult(interop_factory->GetForWindow(
    m_hwndOfMyAppCallWindow,
    winrt::guid_of<winrt::Windows::UI::Shell::IShareWindowCommandSource>(), 
    winrt::put_abi(m_shareWindowCommandSource)));

Requirements

   
Minimum supported client Windows Build 22000
Minimum supported server Windows Build 22000
Header sharewindowcommandsourceinterop.h

See also