BOOL WOW32DriverCallback(dwCallback, dwFlags, wDeviceHandle,
wMsg, dwUser,
dwParam1, dwParam2)
DWORD dwCallback;
DWORD dwFlags;
WORD wDeviceHandle;
WORD wMsg;
DWORD dwUser;
DWORD dwParam1;
DWORD dwParam2;
WOW32DriverCallback allows a 32-bit thunk extension DLL to simulate a Multimedia hardware interrupt callback into 16-bit code. The built-in thunks for wave, midi, and time callbacks make use of this function to callback into 16-bit application code.
Flag |
Meaning |
DCB_FUNCTION |
Indicates that a message should be sent to a callback function. dwCallback must be a 16-bit address of the 16-bit application callback routine. |
DCB_WINDOW |
Indicates that a message should be sent to the 16-bit window handle specified in dwCallback. |
DCB_TASK |
Indicates that a message should be sent ot the 16-bit task handle specified in dwCallback. |
WOW32DriverCallback returns TRUE if the operation was successful.
The 16-bit client specifies how it is notified when the device is opened. If notification is accomplished with a callback function, wDeviceHandle, wMsg, dwUser, dwParam1, and dwParam2 are passed to the callback. If notification is accomplished by means of a window, only wMsg, wDeviceHandle, and dwParam1 are passed.
Users will have to dynamically link to this function.
WOW32ResolveHandle