winrt::get_interfaces function (C++/WinRT)

A helper function that retrieves an array containing the identifiers of the interfaces that are implemented by a C++/WinRT object. These are the same identifiers that are returned from a call to IInspectable::GetIids.

Also see the implements::find_interface and implements::get_local_iids functions.


inline winrt::com_array<GUID> get_interfaces(winrt::Windows::Foundation::IInspectable const& object);


object A C++/WinRT object to operate on.

Return value

A winrt::com_array containing the interface identifiers.


Minimum supported SDK: Windows SDK version 10.0.17134.0 (Windows 10, version 1803)

Namespace: winrt

Header: %WindowsSdkDir%Include<WindowsTargetPlatformVersion>\cppwinrt\winrt\base.h (included by default)

See also