IInspectable::GetIids method (inspectable.h)
Gets the interfaces that are implemented by the current Windows Runtime class.
HRESULT GetIids(
[out] ULONG *iidCount,
[out] IID **iids
);
[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.
Type: HRESULT
This function can return the following values.
Return code | Description |
---|---|
|
The IID array was allocated and saved in iids successfully. |
|
Failed to allocate iids. |
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.
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 |