VC_ConnectInterrupt

BOOLEAN
VC_ConnectInterrupt(
PDEVICE_INFO
pDevInfo,
ULONG
Interrupt,
BOOLEAN
bLatched
);

The VC_ConnectInterrupt function creates a connection between the specified interrupt number and a kernel-mode video capture driver's interrupt service routine.

Parameters

pDevInfo

Pointer to the DEVICE_INFO structure returned by VC_Init.

Interrupt

Interrupt number to use.

bLatched

Set to TRUE if the interrupt is latched or FALSE if the interrupt is level-sensitive.

Return Value

Returns TRUE if the operation succeeds. Otherwise returns FALSE.

Comments

The VC_ConnectInterrupt function calls HalGetInterruptVector to obtain a system interrupt vector and IoConnectInterrupt to connect VCKernel.lib's generic ISR to the interrupt vector. (When an interrupt occurs, VCKernel.lib's generic ISR calls the driver's InterruptAcknowledge function.)

Before calling VC_ConnectInterrupt, a kernel-mode driver must call VC_GetResources. It must also call VC_GetCallbackTable and fill in the returned callback table.