IInspectable::GetIids method (inspectable.h)

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

Syntax

HRESULT GetIids(
  ULONG *iidCount,
  IID   **iids
);

Parameters

iidCount

Type: ULONG*

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

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 HSTRING was created 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

   
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