Click to See Complete Forum and Search --> : DDK - How to write a device driver?


Roger Allen
June 1st, 1999, 11:48 AM
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

Oliver Kinne
June 2nd, 1999, 05:36 AM
Go on. Somebody help him please. He's close to tears already. ;-)

leolin@
June 2nd, 1999, 08:11 AM
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