hi all
i want to lower an application's privilige level to 0
is there any such code
Chris
i want to lower an application's privilige level to 0
is there any such code
Chris
To do it properly, you need to write a driver. Then your application and driver should communicate and what is needed to be done on ring 0 that driver needs to do it, not your application.
Acutally you raise the privilege level from 3 to 0, since 0 is more privileged :). And as SamiP said, this will require a driver (or some hacks). On Win9x those hacks are pretty easy, on NT it requires a lot more work, and it might be patched in some future windows version.
Why do you need Ring0?
Why do you need Ring0?
The basic principle is to setup a call/trap/interrupt gate which will allow calls from ring3 to ring0. In 9x windows, descriptor tables are not protected so virtually any code can change them; on NT you need a driver or hacks like \Device\PhysicalMemory or tricks with NtSystemDebugControl (XP).
The reason to go to 0 level is to be able to read write
the TLBs.
the TLBs.
The best way is still to write a driver to read and write TLB. A normal application cannot be in ring0 without any "hacks".