IInspectable::GetIids method
Gets the interfaces that are implemented by the current Windows Runtime class.
Syntax
HRESULT GetIids( [out] ULONG *iidCount, [out, size_is(,*iidCount)] IID **iids );
Parameters
- iidCount [out]
-
Type: ULONG*
The number of interfaces that are implemented by the current Windows Runtime object, excluding the IUnknown and IInspectable implementations.
- iids [out]
-
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 |
|---|---|
|
The HSTRING was created successfully. |
|
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 | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|
See also