IAudioInputSelector::GetSelection method
The GetSelection method gets the local ID of the part that is connected to the selector input that is currently selected.
Syntax
HRESULT GetSelection( [out] 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 |
|---|---|
|
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
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
See also