Hi, i'm trying to write a simple driver (on windows 7 x64) that hook general Protection Exception from idt, i would to know why when i add to my isr a call to an API (like KdPrint) the system hang, i saw that on windows xp must be corrected the value of segment registers, what i need to do on win7?
my goal is to add to my isr a dpc routine that does some functions, it is possible?
thank's for attention and sorry my bad English.
edit:
I think I found the problem, if I add the SWAPGS instruction at the beginning and at the end of my ISR the DPC routine runs fine but now I have the problem that once that the ISR was performed the CPU is in x86 mode
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)