Copyright © 2005-2018 MultiMedia Soft

GetOutputDeviceUniqueID method

Previous pageReturn to chapter overviewNext page

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]

Public Function GetOutputDeviceUniqueID (

nOutputIndex as Int16

) as String


 

[C#]

public string GetOutputDeviceUniqueID (

Int16 nOutputIndex

);


 

[C++]

public: string GetOutputDeviceUniqueID (

Int16 nOutputIndex

);


 

 

Parameter

Description

 

 

nOutputIndex

Number representing the zero-based index of the output device whose unique ID must be retrieved

 

 

Return value

 

Value

Meaning

 

 

Empty string

The value of the nOutputIndex 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.