I Have the following code:

Public Declare Function keybd_event Lib "user32" (ByVal bVk _
As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, _
ByVal dwExtraInfo As Long)

Public Sub ScreenCapture()
keybd_event vbKeySnapshot, 1, 0, 0
End Sub

I AM GETTING THE FOLLOWING ERROR:

Bad DLL Calling Convention (Error 49)

Does anyone know why???? ..... as far as i know, I am calling the function correctly..... (i have also tried:
Call keybd_event (vbKeySnapshot, 1, 0 ,0) but it gives the same error!)