IPart::GetControlInterface method (devicetopology.h)
The GetControlInterface method gets a reference to the specified control interface, if this part supports it.
Syntax
HRESULT GetControlInterface(
[in] UINT nIndex,
[out] IControlInterface **ppInterfaceDesc
);
Parameters
[in] nIndex
The control interface number. If a part supports n control interfaces, the control interfaces are numbered from 0 to n– 1.
[out] ppInterfaceDesc
Pointer to a pointer variable into which the method writes the address of the IControlInterface interface of the specified audio function. Through this method, the caller obtains a counted reference to the interface. The caller is responsible for releasing the interface, when it is no longer needed, by calling the interface's Release method. If the GetControlInterface call fails, *ppFunction is NULL.
Return value
If the method succeeds, it returns S_OK. If it fails, possible return codes include, but are not limited to, the values shown in the following table.
Return code | Description |
---|---|
|
Pointer ppFunction is NULL. |
|
Parameter nIndex is out of range. |
|
The part does not have a control interface. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | devicetopology.h |