VC_GetCallbackTable

PVC_CALLBACK
VC_GetCallbackTable(
PDEVICE_INFO
pDevInfo
);

The VC_GetCallbackTable function returns the address of VCKernel.lib's callback table.

Parameters

pDevInfo

Pointer to the DEVICE_INFO structure returned by VC_Init.

Return Value

Pointer to a VC_CALLBACK structure.

Comments

The VC_GetCallbackTable function returns the address of a VC_CALLBACK structure. Kernel-mode video capture drivers using VCKernel.lib must call this function and then fill in the VC_CALLBACK structure with the addresses of the driver's callback functions. Code in VCKernel.lib uses the structure as a dispatch table when calling the driver's callback functions.

The driver must call VC_GetCallbackTable and fill in the table from within its DriverEntry function. Because the table contains the addresses of interrupt handlers, it should be filled in before the driver attempts to initialize hardware, in case the initialization process generates interrupts.