Joystick Driver Entry Point

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

DriverProc has the following prototype:


LRESULT WINAPI DriverProc(DWORD dwDriverID,
    HANDLE hDriver, 
    UINT uMsg, 
    LPARAM lParam1, 
    LPARAM  lParam2)

Joystick device drivers uses the following definitions for the parameters of this entry point:

Parameter

Definition

dwDriverID

Contains the driver identifier created by the device driver.

hDriver

Contains a handle to the device driver

uMsg

Contains the joystick message

lParam1

Contains message-dependent data.

lParam2

Contains message-dependent data.


For more information on the DriverProc entry point and the system messages it handles see the Microsoft® Win32™ Programmer's Reference.