DrvDeleteServicesNode

BOOL
    DrvDeleteServicesNode(
        PREG_ACCESS
RegAccess
        );

The DrvDeleteServicesNode function marks for deletion a kernel-mode driver service that was created by calling DrvCreateServicesNode.

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

Returns TRUE if the operation succeeds. Otherwise returns FALSE. To obtain an error code value, call GetLastError, which is described in the Win32 SDK.

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.

The function calls DeleteService, described in the Win32 SDK, to mark the kernel-mode driver service for deletion.

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