4 pages.... let me clear some bit up about Windows and Modern OSes (including Linux perharps)... its not that they dont let you access to your hardware.... its just they dont let you access to your hardware DIRECTLY as you please, you want the access? you can! but you have to be IN QUEUE, thats the way. there is RATIONALE to this... modern OS is like a very busy traffic policeman in the middle of 100 junctions, every junctions we have cars or motorists that request (IRQ) to pass the junction to the other side (USER), among the motorists are internet data, wifi bluetooth printer mouse keyboard, mcu embedded that is connected to LPT, plethora of conected usb devices etc. this trafficman need to manage all of them to avoid clashing. now how the OS designer do this with ease, managable and in a safe and modern way? they built layers, one on top rely on the other one below, one on the topmost cannot access directly to the bottommost, they have to pass the one directly below it, they are encapsulated in their own right. the topmost layer is who? you! the user. roughly speaking the layers are:
1) kernel the OS (this is the layer that access the hardware directly, handle the irq, manage and queue them)
2) driver (kernel will pass, or the driver will fetch in from kernel about the request, get the necessary data from the hardware, perharp through the assigned pointer handle given by the kernel)
3) api (the request, info or data will further be requested by api, this is where most of us have access to)
4) app (this is what we build)
5) user
i maybe wrong in some details or order, but i'm certain there are layers that you cannot simply poke as you please without going through the top layers. you ask why i cant? because the OS will not let you, why? i have the right! right? yes you have the right but you dont have the clue. as proven many times before, directly access to hardware or memory can impose a security and safety threat. hackers may poke in, ill user/programmers may hog or screw another app on the same or another thread, it may render OS disfunctional, or even burn something. so they wont let you, for you own sakeness.
mourning about this OS do not let you this or that, license or legal bullshit this or that is like accusing the OS is a religious pius, where its nothing more than they simply want to impose some safe science behind it. now you want to get through? to access your hardware? you have to follow the R&R, ie follow the layers, and that is what you are looking for, thats what you need to find in google or elsewhere if you want to play P&P or modern OSes. mourning will not help.