Writing a Joystick Driver

A joystick driver must include the standard DriverProc entry point function. This function handles the standard and joystick-specific messages sent by WINMM.

For joystick messages, the hDriver parameter contains a handle to the driver and the dwDriverID parameter contains the driver ID created by the driver.