Hi All,
I am getting BSOD when IoConnectInterrupt is called
what’s wrong with the following piece of code
BOOLEAN MyISR(
IN PKINTERRUPT Interrupt,
IN PVOID ServiceContext
)
{
DbgPrint(“MyISR executed”);
return FALSE;
}
NTSTATUS MyStartDevice(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{
NTSTATUS status = STATUS_SUCCESS;
PLOCAL_DEVICE_INFO deviceInfo;
ULONG Level;
ULONG Vector;
KAFFINITY Affinity;
KIRQL devIrql;
ULONG intVect;
Level = 0x10;
Vector = Level;
intVect=HalGetInterruptVector(PCIBus,(ULONG)0,Level,Vector,
&devIrql,
&Affinity);
deviceInfo = (PLOCAL_DEVICE_INFO)DeviceObject->DeviceExtension;
status=IoConnectInterrupt(
deviceInfo->InterruptObject,
IGDAccessISR,
DeviceObject->DeviceExtension,
NULL,
intVect&0xff,
devIrql,
devIrql,
Latched,
TRUE,
Affinity,
FALSE
);
return status;
}
regards,
Raghukiran
On 3/13/07, Nagesh Kumar wrote:
>
> For Hooking the IDT, Rootkits: Suverting the Windows Kernel By Greg
> Hoglund,James Butler is the best book. Refer Chapter 4 For complete
> details on IDT Hooking.
> Its like a tutorial itself. All the best.
>
> ~Nagesh
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>