Solved

iopl equivalent

Posted on 2000-05-03
5
552 Views
Last Modified: 2013-12-28
Hi, does anybody know if Windows NT has some equivalent of the Unix's iopl() function? I should read/write to port 0xb2 to switch on/off the fan of my Toshiba portable, and I naturally get an exception.
Any ideas?
Thank you,
Marco.
0
Comment
Question by:mckelly
5 Comments
 
LVL 12

Expert Comment

by:pjknibbs
ID: 2776432
Reading and writing directly to a port is not possible from user-mode code under Windows NT, as you've discovered. The only way to do this is either write a kernel-mode driver, or find someone who's already written such a thing.
0
 

Author Comment

by:mckelly
ID: 2776619
Neither for Administrator is it possible?
0
 
LVL 12

Expert Comment

by:pjknibbs
ID: 2776869
It isn't possible for *anybody*. Allowing this is tantamount to directly accessing the hardware, which is not permitted under NT under any circumstances.
0
 
LVL 86

Accepted Solution

by:
jkr earned 75 total points
ID: 2776871
>>Neither for Administrator is it
>>possible?

It isn't.

But see the 'Sybera Hardware Access' Kit at http://www.sybera.de/home.htm which allows direct hardware access under NT without developing your own driver. Can be downloaded for free at http://www.sybera.de/download/sha.exe 


0
 
LVL 23

Expert Comment

by:Tim Holman
ID: 2777933
Winnt doesn't have this built in capability, but you could write your own driver using the Device Developers Kit if you're that bothered, and fancy taking away timeslices from other, more valuable devices !
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
An article on effective troubleshooting
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question