Private Declare Function waveOutSetVolume Lib "Winmm" (ByVal wDeviceID As Integer, ByVal dwVolume As Long) As Integer
Private Declare Function waveOutGetVolume Lib "Winmm" (ByVal wDeviceID As Integer, dwVolume As Long) As Integer
'获得音量设备ID
Private Sub Command1_Click()
Dim a, i As Long
'i为音量值
a = waveOutGetVolume(0, i)
End Sub
设置音量
Private Sub Command2_Click()
Dim a, i As Long