IAudioInputSelector::GetSelection
Previous | Next |
IAudioInputSelector::GetSelection
The GetSelection method gets the local ID of the part that is connected to the selector input that is currently selected.
HRESULT GetSelection( UINT *pnIdSelected );
Parameters
pnIdSelected
[out] Pointer to a UINT variable into which the method writes the local ID of the part that directly links to the currently selected selector input.
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 |
E_POINTER | 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
Client: Windows Vista
Header: Include Devicetopology.h.
See Also
Previous | Next |