see http://www.csdn.net/develop/article/13/13835.shtmPublic Function SetVolume(Volume As Long) As Boolean Dim RefInt As Long SetVolume = False RefInt = mciSendString("setaudio NOWMUSIC volume to " & Volume, vbNull, 0, 0) If RefInt = 0 Then SetVolume = True End Function
http://www.csdn.net/develop/article/13/13835.shtmPublic Function SetVolume(Volume As Long) As Boolean
Dim RefInt As Long
SetVolume = False
RefInt = mciSendString("setaudio NOWMUSIC volume to " & Volume, vbNull, 0, 0)
If RefInt = 0 Then SetVolume = True
End Function