BOOL
DrvDeleteServicesNode(
PREG_ACCESS RegAccess
);
The DrvDeleteServicesNode function marks for deletion a kernel-mode driver service that was created by calling DrvCreateServicesNode.
Returns TRUE if the operation succeeds. Otherwise returns FALSE. To obtain an error code value, call GetLastError, which is described in the Win32 SDK.
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.