DirectX SDK

DirectMusicPerformance.GetPortCount

The DirectMusicPerformance.GetPortCount method returns the number of DirectMusic ports available on the system.

object.GetPortCount() As Long

Parameters

object
Object expression that resolves to a DirectMusicPerformance object.

Return Values

If the method succeeds, it returns the number of available ports.

Error Codes

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