Copyright © 2005-2018 MultiMedia Soft

GetOutputDeviceUniqueID method

Previous pageReturn to chapter overviewNext page



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.





[Visual Basic]

Public Function GetOutputDeviceUniqueID (

nOutputIndex as Int16

) as String



public string GetOutputDeviceUniqueID (

Int16 nOutputIndex




public: string GetOutputDeviceUniqueID (

Int16 nOutputIndex









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



Return value






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.