DirectX SDK

DirectMusicPerformance.GetPortName

The DirectMusicPerformance.GetPortName returns the name of a port.

object.GetPortName(index As Long) As String

Parameters

object
Object expression that resolves to a DirectMusicPerformance object.
index
Index of the port. Must be in the range from 1 through the value returned by DirectMusicPerformance.GetPortCount.

Return Values

If the method succeeds, it returns the name of the port — for example, Microsoft Synthesizer.

Error Codes

If the method fails, it raises an error, and Err.Number is set.