|
-
August 13th, 1999, 04:28 AM
#1
How to _inp(), _outp() on 0x1F6, 0x1F7and 0x1F0 under Win95/98
Hi Everybody
Can anyone help me with accessing I/O port 0x1F7, 0x1F0 under Win95/98.
How can it be implemented ??
DeviceIoControl()
Thunking 16bit App
VXD
Volume Locking (Interrupt 21h Function 440Dh Minor Code 4Ah Lock Logical Volume
Interrupt 21h Function 440Dh Minor Code 4Bh Lock Physical Volume)
Thanks,
_outp(0x1F6, 0xA0);
_outp(0x1F7, 0xEC);
for(i = 0; i < 256; i++)
{
hdInfo[i] = _inpw(0x1F0);
}
-
September 3rd, 1999, 05:40 PM
#2
Re: How to _inp(), _outp() on 0x1F6, 0x1F7and 0x1F0 under Win95/98
dude..
you have to communicate with the IDE/ESDI device driver to get the ATAPI Identify String. You can't just acccess protected ports. Ain't Protected Mode grand?
Cheers,
--Kelly
One day, health fanatics will feel stupid as they lie in a hospital bed dying of nothing...
-
September 3rd, 1999, 05:44 PM
#3
Re: How to _inp(), _outp() on 0x1F6, 0x1F7and 0x1F0 under Win95/98
I just responded to your previous post of this same message: you have to communicate through the IDE/ESDI device driver to get ATAPI device identify data. The ports are protected by the driver and are ONLY accessible by IT.
--Kelly
One day, health fanatics will feel stupid as they lie in a hospital bed dying of nothing...
-
September 3rd, 1999, 06:02 PM
#4
Re: How to _inp(), _outp() on 0x1F6, 0x1F7and 0x1F0 under Win95/98
sorry, I just realized that this discussion board brings old messages to the top. I thought you had re-posted your question. but I've got it now.. ;^)
--Kelly
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|