VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

A Couple of Winmm API Calls

Charles Davis  (2 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

There are 2 API Calls to the Winnmm API. One Detects if a Sound Card is installed. The other Plays an .AVI. You need to have Windows Media Player installed.

Assumes
This code is very simple and pretty self explanatory.

Side Effects
As far as I know there are none.

API Declarations
'For SoundCard Function
Private Declare Function waveOutGetNumDevs Lib "winmm.dll" () As Long
'To Play Avi
Private Declare Function mciSendString Lib "winmm.dll" Alias _
"mciSendStringA" (ByVal lpstrCommand As String, _
ByVal lpstrReturnString As Any, ByVal uReturnLength As Long, _
ByVal hwndCallback As Long) As Long

Rate A Couple of Winmm API Calls (12(12 Vote))
A Couple of Winmm API Calls.bas

A Couple of Winmm API Calls Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters