[Newbie] Connecting Interrupt causes protection error

Hi,

I don’t understand why my IoConnectInterrupt call causes a protection
error.
This call seems to me error free.
ntStatus = IoConnectInterrupt(&pDeviceExtension->InterruptObjectOne,
(PKSERVICE_ROUTINE) OnInterruptOne,
(PVOID) pDeviceExtension,
&pDeviceExtension->IRQSpinLock,
0x72/*vectorOne*/,
DISPATCH_LEVEL + 1/*irqlOne*/,
DISPATCH_LEVEL + 1/*irqlOne*//*max(irqlOne, irqlTwo)*/,
Latched/*modeOne*/,
FALSE/*irqshareOne*/,
0/*affinityOne*/,
FALSE);
My card is a standard ISA without PnP functionality. I know that it
needs IRQ 10 and 11, so I defined
the vector 0x72 as IRQ10. I’m not sure about the affinity so I tried 0
and ~0, both get the same result.

On boottime I get the message
While initializing device NTKERN:
Windows protection error. You need to restart your computer.

Ideas?
TIA
Vasili

SensoLogic GmbH voice: +49 40 529567-40

Dipl. Ing. technische Informatik
Vasili Goutas fax: +49 40 529567-99

Hummelsbütteler Steindamm 78a
22851 Norderstedt, Germany Software + Sensor Systems

e-mail: xxxxx@sensologic.de
internet: http://www.sensologic.de/