VC_ConfigAccess

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.

Parameters

pProfile

Address of the VC_PROFILE_INFO structure returned by VC_OpenProfileAccess.

Return Value

Returns TRUE if the client has Administrators privilege. Otherwise returns FALSE.

Comments

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.