Solved

iopl equivalent

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

A few months ago I had an issue with LaserJet 1020 printer which was installed to XP and Windows 7.  It was installed to XP and working, but when I tried to connect from a Windows 7 PC, it would attempt connection and then fail.  Sometimes the Spool…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you 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…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now