DrvIsDriverLoaded

BOOL
    DrvIsDriverLoaded(
        PREG_ACCESS
RegAccess
        );

The DrvIsDriverLoaded function determines if the kernel-mode driver is currently loaded and running.

Parameters
RegAccess
Pointer to a globally-defined structure of type REG_ACCESS.
Return Value

Returns TRUE if the kernel-mode driver is loaded and running. Otherwise returns FALSE.

Comments

The structure pointed to by RegAccess must be a single, globally-defined REG_ACCESS structure that the driver uses with all calls to drvlib.lib functions requiring a RegAccess parameter.

Drivers must call DrvCreateServicesNode before calling DrvIsDriverLoaded.

For additional information, see Installing and Configuring your Driver, Using drvlib.lib.