Code:
ULONG vector;
KIRQL irql.
KAFFINITY affinity;
The vector=HalGetInterruptVector (ACPIBus,
0,
10,//external hardware interrupt, interrupt number 10.
10,//external hardware interrupt, interrupt number 10.
& Irql,
& Affinity
);
The vector=vector & amp; 0 XFF.
KdPrint ((" HalGetInterruptVector vector - % X irql - % X affinity - X % \ n ", vector, irql, affinity));
Status=IoConnectInterrupt (& amp; PDevExt - & gt; InterruptObject, PKSERVICE_ROUTINE OnInterrupt,
(PVOID) pDevExt, NULL, vector, irql, irql, LevelSensitive, FALSE, affinity, FALSE);
Function: the external interrupt IRQ10 OnInterrupt hook and interrupt function, 10 trigger interrupt into OnInterrupt function processing operations in the port,
Problem: IoConnectInterrupt function is not successful, return an error,