Click to See Complete Forum and Search --> : Hardware port access using API function.


K.Babu
November 11th, 1999, 05:50 AM
Hi EveryOne,

I need to access hardware port address value, in api function, I don't know the function name and what Dlls i want to use, Pls. help me.

Example in c language : _inpw()

Email ID : k_babs@hotmail.com

Best Regards.
K.Babu

vickyk
December 15th, 1999, 11:54 AM
Hi Babu

You Could Try to use the GetDeviceCaps API

Public Declare Function GetDeviceCaps Lib "gdi32" Alias "GetDeviceCaps" (ByVal hdc As Long, ByVal nIndex As Long) As Long

You will need to pass the device context Handle and the constant. If you have the book by Dan Apple man it will help you immensely with Win APIs

Regards
Vikram

Mohana Deshmukh
January 10th, 2000, 01:30 PM
Windows does not allow Applications to read/write directly to hardware ports. You may have to implement a VxD and an application or use a tool like DriverAgent from Numega.