Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C Win7 Driver
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
Posted 24-Jan-13 3:00am
Edited 27-Jan-13 1:29am
v3
Comments
Sergey Alexandrovich Kryukov at 24-Jan-13 14:33pm
   
Just one note: even to me, a person who worked in kernel ring so long time ago that I wasn't familiar even with emerging Windows NT (and that's why I hardly can help you), your question looks quite clear. And doable. So, sorry for not helping you, but I voted 5 for this question, and the effort to write in English. Only please capitalize sentences and add blank spaces after ','.
Cheers,
—SA
OriginalGriff at 25-Jan-13 7:35am
   
Don't bump your question - if you have information to add, then add it, but don't just make a trivial change to get it to teh top of the list.
It's rude, and unnecessary.
It does not help you get an answer, it just annoys those you might have helped you.
Member 8119034 at 25-Jan-13 10:47am
   
I have add blank spaces after ',' as I had been asked
Michael Haephrati at 3-Mar-13 13:54pm
   
Could you elaborate more? Which type of driver are you trying to create? Is it a Kernel driver? Is there is chance you are blocked by Patch Guard?
Michael Haephrati at 7-Mar-13 16:10pm
   
You might find Easyhook will be very helpful for that matter.
http://easyhook.codeplex.com/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 Afzaal Ahmad Zeeshan 170
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 27 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100