IAudioOutputSelector::GetSelection method (devicetopology.h)
The GetSelection method gets the local ID of the part that is connected to the selector output that is currently selected.
Syntax
HRESULT GetSelection(
[out] UINT *pnIdSelected
);
Parameters
[out] pnIdSelected
Pointer to a UINT variable into which the method writes the local ID of the part that has a direct link to the currently selected selector output.
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 pnIdSelected is NULL. |
Remarks
A local ID is a number that uniquely identifies a part among all parts in a device topology. To obtain a pointer to the IPart interface of a part from its local ID, call the IDeviceTopology::GetPartById method.
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 |