DRV_INSTALL

3.1

The DRV_INSTALL message is sent to an installable driver during the driver initialization process.

Parameters

dwDriverIdentifier

Specifies a unique 32-bit value that identifies the installable driver.

hDriver

Identifies an instance of the installable driver.

lParam1

Not used.

lParam2

Points to an optional DRVCONFIGINFO structure. An installable driver should verify that this pointer is valid before using it.

This structure has the following form:

typedef struct tagDRVCONFIGINFO {
    DWORD   dwDCISize;
    LPCSTR  lpszDCISectionName;
    LPCSTR  lpszDCIAliasName;
} DRVCONFIGINFO;

Return Value

An installable driver returns nonzero if it processes this message. Otherwise, it returns zero.

Comments

When the driver receives this message, it creates an entry for the driver in the SYSTEM.INI file and performs other necessary configuration operations.