• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

ring0

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Bmxpunk86pl

Member
Joined
Sep 7, 2001
Location
CT/Poland
hey i need to get ring0 to use hardware in C++ right, so how do i get it? Whats the code for it? any guides or readings on this?

thanks,
adam
 

XWRed1

Senior Member
Joined
Oct 31, 2001
Uhh.... I think that if you run code in ring 0, then you are running in kernel space, which is usually a no-no unless you are writing a device driver or an operating system.

I'm guessing that whatever you want to do can be accomplished through a safe means via the OS. What exactly do you want to do?
 

ButcherUK

Member
Joined
Nov 8, 2001
Location
York, UK
On a modern OS ring 0 requires a kernel mode driver. If you really need this you'll have to find info on writing drivers for your OS of choice. Windows you can find the DDK (driver dev kit) on MS' website.
 
OP
Bmxpunk86pl

Bmxpunk86pl

Member
Joined
Sep 7, 2001
Location
CT/Poland
no i just had a question thats all. thanks for ur help!! alright but i got a nother question: What the stl in c++ cuz i have been looking for alot of guides on the net for like advanced programming and i was wondering what the STL is.

thanks!!
 

XWRed1

Senior Member
Joined
Oct 31, 2001
Standard Template Library. IIRC, its a set of headers that define some more advanced data types than the basic primitives provided by C/C++, and most people use it when they need those types.
 

ButcherUK

Member
Joined
Nov 8, 2001
Location
York, UK
Also provides some handy algorithms such as sorting and searching etc.
All of STL works with any type of data (almost).