LRESULT
VC_RemoveDriver(
PVC_PROFILE_INFO pProfile
);
The VC_RemoveDriver function unloads a kernel-mode video capture driver and marks the kernel-mode driver service for deletion.
Returns one the following error values.
Value |
Definition |
DRVCNF_OK |
Indicates the driver service has been marked for deletion. |
DRVCNF_CANCEL |
Indicates an error occurred. |
The VC_RemoveDriver function performs the following operations, in order:
A user-mode driver should call VC_RemoveDriver when its DriverProc function receives a DRV_REMOVE message. Before calling VC_RemoveDriver, the driver should call VC_ConfigAccess to determine if the client has Administrators privilege.
The profile information handle specified by pProfile remains open after this function removes the registry entry. Use VC_CloseProfileAccess to close the profile information handle after calling VC_RemoveDriver.