SendDriverMessage function

Sends the specified message to the installable driver.

Syntax

LRESULT SendDriverMessage(
  HDRVR  hDriver,
  UINT   message,
  LPARAM lParam1,
  LPARAM lParam2
);

Parameters

hDriver

Handle of the installable driver instance. The handle must been previously created by using the OpenDriver function.

message

Driver message value. It can be a custom message value or one of these standard message values.

Value Meaning
DRV_QUERYCONFIGURE
Queries an installable driver about whether it supports the DRV_CONFIGURE message and can display a configuration dialog box.
DRV_CONFIGURE
Notifies an installable driver that it should display a configuration dialog box. (This message should only be sent if the driver returns a nonzero value when the DRV_QUERYCONFIGURE message is processed.)
DRV_INSTALL
Notifies an installable driver that it has been successfully installed.
DRV_REMOVE
Notifies an installable driver that it is about to be removed from the system.

lParam1

32-bit message-dependent information.

lParam2

32-bit message-dependent information.

Return Value

Returns nonzero if successful or zero otherwise.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only],Installable Drivers, Installable Driver Functions
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mmiscapi.h (include Mmiscapi.h, Windows.h)
Library Winmm.lib
DLL Winmm.dll

See Also

Installable Driver Functions

Installable Drivers