CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    West Sussex, England
    Posts
    1,939

    DDK - How to write a device driver?

    Hi all,

    I am required to write a device driver for an I/O card that needs to run under NT 4.0 or later.

    I do know that I probably need to create an NT service. This service should supply interface functions to manipulate the I/O registers and read data. The original code to do this that I have ran quite happily under W95, but needs to deactivate all interrupts (which is not allowed in NT application code), so it needs to migrate into the NT kernal as a service. I need to know what type of service to create and how to call the functions that the service provides from another C++ application.

    Can anybody tell me what type of service to use, and how to link it to access it from a standard C++ application. Example code would be very helpful if possible.

    Thanks in advance,


    Roger Allen
    Please use meaningful question titles - "Help me" does not let me know whether I can help with your question, and I am unlikely to bother reading it.
    Please remember to rate useful answers. It lets us know when a question has been answered.

  2. #2
    Join Date
    May 1999
    Location
    United Kingdom
    Posts
    136

    Re: DDK - How to write a device driver?

    Go on. Somebody help him please. He's close to tears already. ;-)


  3. #3
    Join Date
    Apr 1999
    Posts
    27

    Re: DDK - How to write a device driver?

    Create a driver, Use the DeviceIoControl
    to communnicate with that driver.
    Sample under NTDDK PortIo that show how to manipulate the I/O port or memory about your
    Card or disable your acrd inetrrupt through
    set relative registers


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