Remarks
Retrieves the Unique Identifier (GUID) assigned by the system to the requested output device (sound card). This method allows discriminating between identical sound cards having the same friendly name.
The total number of available output devices can be obtained using the GetOutputDevicesCount method. The friendly name of each output device can be obtained using the GetOutputDeviceDesc method.
Syntax
[Visual Basic]
control.GetOutputDeviceUniqueID (
nIndex as Integer
) as String
|
|
[C++]
LPCTSTR control.GetOutputDeviceUniqueID (
short nIndex
);
|
|
Parameter
|
Description
|
|
|
nIndex
|
Number representing the zero-based index of the output device whose unique ID name must be retrieved
|
Return value
Value
|
Meaning
|
|
|
Empty string
|
The value of the nIndex parameter was out of range. Use the value returned by the GetOutputDevicesCount method in order to know how many output devices are currently installed on the system.
|
Valid string
|
The string containing the unique ID of the requested output device.
|
|