用KeStackAttachProcess附加进程蓝屏。。大大们指教下!!!
UCHAR irql = (UCHAR)KeGetCurrentIrql();
KdPrint(("irql: %d\n", irql));
PKAPC_STATE pKs = (PKAPC_STATE)ExAllocatePool(NonPagedPool, sizeof(PKAPC_STATE));
KeStackAttachProcess(pProc, pKs);
....
..
...
KeUnstackDetachProcess(pKs);