SendDriverMessage function (mmiscapi.h)
Sends the specified message to the installable driver.
Syntax
LRESULT SendDriverMessage(
[in] HDRVR hDriver,
[in] UINT message,
[in, out] LPARAM lParam1,
[in, out] LPARAM lParam2
);
Parameters
[in] hDriver
Handle of the installable driver instance. The handle must been previously created by using the OpenDriver function.
[in] message
Driver message value. It can be a custom message value or one of these standard message values.
Value | Meaning |
---|---|
Queries an installable driver about whether it supports the DRV_CONFIGURE message and can display a configuration dialog box. | |
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.) | |
Notifies an installable driver that it has been successfully installed. | |
Notifies an installable driver that it is about to be removed from the system. |
[in, out] lParam1
32-bit message-dependent information.
[in, out] lParam2
32-bit message-dependent information.
Return value
Returns nonzero if successful or zero otherwise.
Requirements
Requirement | Value |
---|---|
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 |