VC_OpenProfileAccess

PVC_PROFILE_INFO
VC_OpenProfileAccess(
PWCHAR
DriverName
);

The VC_OpenProfileAccess function creates a VC_PROFILE structure that is used for storing information needed to access the Service Control Manager and the registry.

Parameters

DriverName

Pointer to a UNICODE driver name string.

Return Value

Returns a pointer to a VC_PROFILE_INFO structure, if the operation succeeds. Otherwise returns NULL. (This structure is private to VCUser.lib.)

Comments

A user-mode driver should call VC_OpenProfileAccess when its DriverProc function receives a DRV_LOAD message.

The string specified for DriverName should be the name of the kernel-mode driver file, without an extension. For example, the string used for the sample Bravado driver is "bravado". This name is written into the registry by VC_InstallDriver.

See Also

VC_CloseProfileAccess