Solved

iopl equivalent

Posted on 2000-05-03
5
541 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

785 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