SendDriverMessage

3.1

  LRESULT SendDriverMessage(hdrvr, msg, lParam1, lParam2)    
  HDRVR hdrvr; /* handle of installable driver */
  UINT msg; /* message */
  LPARAM lParam1; /* first message parameter */
  LPARAM lParam2; /* second message parameter */

The SendDriverMessage function sends the specified message to the given installable driver.

Parameters

hdrvr

Identifies the installable driver.

msg

Specifies the message that the driver must process. The following messages should never be sent by an application directly to the driver; they are sent only by the system:

DRV_CLOSE DRV_DISABLE DRV_ENABLE DRV_EXITAPPLICATION DRV_EXITSESSION DRV_FREE DRV_LOAD DRV_OPEN

lParam1

Specifies 32 bits of additional message-dependent information.

lParam2

Specifies 32 bits of additional message-dependent information.

Return Value

The return value is nonzero if the function is successful. Otherwise, it is zero.

See Also

DefDriverProc