IInspectable::GetIids method (inspectable.h)

Gets the interfaces that are implemented by the current Windows Runtime class.

Syntax

HRESULT GetIids(
  [out] ULONG *iidCount,
  [out] IID   **iids
);

Parameters

[out] iidCount

Type: ULONG*

The number of interfaces that are implemented by the current Windows Runtime object, excluding the IUnknown and IInspectable implementations.

[out] iids

Type: IID**

A pointer to an array that contains an IID for each interface implemented by the current Windows Runtime object. The IUnknown and IInspectable interfaces are excluded.

Return value

Type: HRESULT

This function can return the following values.

Return code Description
S_OK
The IID array was allocated and saved in iids successfully.
E_OUTOFMEMORY
Failed to allocate iids.

Remarks

Use the GetIids method to discover the interfaces that are implemented by a Windows Runtime object.

A QueryInterface call on any IID in the iids array must succeed.

The caller is responsible for freeing the IID array by using the CoTaskMemFree function.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header inspectable.h

See also

IInputPaneInterop

IInspectable

winrt::get_interfaces