VC_CloseProfileAccess

VOID
VC_CloseProfileAccess(
PVC_PROFILE_INFO
pProfile
);

The VC_CloseProfileAccess function removes registry access information obtained from VC_OpenProfileAccess.

Parameters

pProfile

Address of the VC_PROFILE_INFO structure returned by VC_OpenProfileAccess.

Return Value

None.

Comments

The VC_CloseProfileAccess function closes the connection to the Service Control Manager that was created by a previous call to VC_ConfigAccess.

After calling VC_CloseProfileAccess, a user-mode driver cannot access its kernel-mode driver or the registry.

A user-mode driver should call VC_CloseProfileAccess when its DriverProc function receives a DRV_FREE message.

See Also

VC_OpenProfileAccess