|
-
June 1st, 1999, 11:48 AM
#1
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.
-
June 2nd, 1999, 05:36 AM
#2
Re: DDK - How to write a device driver?
Go on. Somebody help him please. He's close to tears already. ;-)
-
June 2nd, 1999, 08:11 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|