The GetSelection method gets the local ID of the part that is connected to the selector input that is currently selected.
- 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.
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.
Pointer pnIdSelected is NULL.
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.
Minimum supported client
|Windows Vista [desktop apps only]|
Minimum supported server
|Windows Server 2008 [desktop apps only]|
Build date: 11/16/2013