CleanupFunc

BOOLEAN
CleanupFunc(
PDEVICE_INFO
pDevInfo
);

The CleanupFunc function performs operations that must be completed before a kernel-mode video capture driver is unloaded. The function is provided by the driver, and the CleanupFunc name is a placeholder for a driver-specified function name.

Parameters

pDevInfo

Pointer to the DEVICE_INFO structure returned by VC_Init.

Return Value

Returns TRUE if the operation succeeds. Otherwise returns FALSE. (The VCKernel.lib library does not currently test the return value.)

Comments

A kernel-mode driver's CleanupFunc function is called by the VCKernel.lib library's VC_Cleanup function. The CleanupFunc function might disable hardware and deallocate memory space that was allocated by the driver's DriverEntry function.

Support for a CleanupFunc function is optional. If a driver does support the function, it must place its address in the VC_CALLBACK structure supplied by VCKernel.lib.

See Also

DeviceCloseFunc