wodMessage


DWORD wodMessage(uDeviceID, uMsg, dwUser, dwParam1, dwParam2)

This user-supplied function is the entry point for a waveform output device driver.

UINT uDeviceID

Specifies the ID of the target device. Device IDs are sequential, starting at zero and ending at a value equal to one less than the number of devices the driver supports.

UINT uMsg

Specifies the message being sent to the driver.

DWORD dwUser

For the WODM_OPEN message, the driver should fill this location with its instance data. For any other messages, the instance data is returned to the driver. Drivers supporting multiple clients can use this instance data to keep track of which client is associated with the message.

DWORD dwParam1

Specifies a message-dependent parameter.

DWORD dwParam2

Specifies a message-dependent parameter.

The driver should return MMSYSERR_NOTSUPPORTED if it does not support the specified message.