Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

iopl equivalent

Posted on 2000-05-03
5
Medium Priority
?
587 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 225 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

916 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