[pso] [tema2][windows] DRIVER_IRQL_NOT_LESS_OR_EQUAL (d1)

Alexandru Juncu alexandrujuncu at gmail.com
Thu Apr 29 09:30:11 EEST 2010


Am si eu acceaasi problema de ceva zile... codul meu arata cam asa:

struct _MY_DEVICE_DATA {
...
	KEVENT event;
	KDPC dpc;
} my_device_data;

VOID myDpcRoutine(KDPC* dpc, PVOID context, PVOID arg1, PVOID arg2)
{

	my_device_data *my_dev = (my_device_data*) context;
	DbgPrint("DPC Routine\n");
	KeSetEvent(&my_dev->event, IO_NO_INCREMENT, TRUE);
}
BOOLEAN MyInterruptHandler(PKINTERRUPT interruptObj, PVOID serviceContext)
{
	my_device_data *my_dev = (my_device_data*) serviceContext;
        ....
        KeInsertQueueDpc(&my_dev->dpc, NULL, NULL);
        ....
}
NTSTATUS DriverEntry()
{
    ....
    KeInitializeEvent(&com1_data->event, NotificationEvent , FALSE);
    KeInitializeDpc(&com1_data->dpc, myDpcRoutine, &com1_data);
}


More information about the pso mailing list