CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Location
    India, TamilNadu, Chennai.
    Posts
    269

    Hardware port access using API function.

    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 : [email protected]

    Best Regards.
    K.Babu

    Please avoid sending emails to my personal mail:
    write your doubts as thread in Codeguru
    Crystal Reports Forum
    .

    This will help all people having similar matters, and will let people who know solutions on the specific topic
    share their knowledge.

    Visit my company web site (Qmax Test Equipments Private Limited)

    Yours friendly,
    K.Babu

  2. #2
    Join Date
    Dec 1999
    Location
    India
    Posts
    3

    Re: Hardware port access using API function.

    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


  3. #3
    Join Date
    Jan 2000
    Posts
    2

    Re: Hardware port access using API function.

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured