LRESULT
DriverProc (
DWORD dwDriverID,
HDRVR hDriver,
UINT uMsg,
LPARAM lParam1,
LPARAM lParam2
);
The DriverProc function is a user-mode driver’s entry point.
Parameters
dwDriverID
Instance identifier. This value is message-dependent.
hDriver
Driver handle.
uMsg
One of the standard driver messages or one of the customized driver messages.
lParam1
Message-dependent parameter.
lParam2
Message-dependent parameter.
Return Value
DriverProc returns a value that is dependent upon the message.
Comments
All user-mode multimedia drivers must define a DriverProc function. The DriverProc function name must be exported in a module definition (.def) file.
The meanings of the dwDriverID, lParam1, and lParam2 parameters are dependent upon the message that the driver receives as the uMsg parameter value. Refer to the description of each message to determine the meanings of these parameters.
For more information about DriverProc, see User-Mode Driver Entry Points.