Driver
Messages
Each driver
message consists of a message identifier and two 32-bit parameters. The message
identifier is a unique value that the DriverProcJIGHER function checks to
determine which action to carry out. The meaning of the message parameters
depends on the message. The parameters may represent values or addresses. In
many cases, the parameters are not used and are set to zero.
Driver
messages can be standard or custom. Windows sends standard driver messages,
such as DRV_OPEN1MPXASX, DRV_CLOSE2HE8VM, and DRV_CONFIGURE1_5ISWF, to an installable driver in
response to a request to open, close, or configure the driver. The standard
messages direct the installable driver to load or unload its resources, enable
or disable its operation, open or close a driver instance, and display a
configuration dialog box. Some standard messages, such as DRV_POWER4670_T9 and DRV_EXITSESSION1N37W7E, notify the driver of system-wide
events that affect the operation of the driver or any related hardware.
Applications
and DLLs send custom driver messages to direct an installable driver to carry
out driver-specific actions. Installable drivers that support custom messages
must include appropriate processing in the DriverProc function. To
prevent conflict between custom and standard driver messages, custom message
identifiers must have values ranging from DRV_RESERVED to DRV_USER. Custom messages
passed to the DefDriverProcUDRPKR
function are ignored.