BOOL
VC_ConfigAccess(
PVC_PROFILE_INFO pProfile
);
The VC_ConfigAccess function creates a connection to the Service Control Manager, if the client has Administrator privilege.
Returns TRUE if the client has Administrators privilege. Otherwise returns FALSE.
A user-mode driver must call VC_ConfigAccess when it receives a DRV_QUERYCONFIGURE message. Because a user must have Administrator privilege in order to perform driver configuration operations, the driver should provide a failure return value for DriverProc in response to DRV_QUERYCONFIGURE, if VC_ConfigAccess returns FALSE. This notifies the caller that configuration operations cannot be performed.