Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 596
  • Last Modified:

iopl equivalent

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
mckelly
Asked:
mckelly
1 Solution
 
pjknibbsCommented:
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
 
mckellyAuthor Commented:
Neither for Administrator is it possible?
0
 
pjknibbsCommented:
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
 
jkrCommented:
>>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
 
Tim HolmanCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now