F
F
faddist2011-07-24 22:10:51
Drivers
faddist, 2011-07-24 22:10:51

Creating a driver for windows, a virtual interface?

Along the way, there was a need to create a virtual LPT port under Windows XP. I got acquainted with Soldatov's book, downloaded WDK, compiled an example from the book. I was even able to create something similar to a virtual com port (by writing Class=Ports and the corresponding ClassGUID={4D36E978-E325-11CE-BFC1-08002BE10318}). I realized that through inf files you need to make an interface, and then our sys driver starts working with it. But I still haven't figured it out until the very end. Please advise more literature and articles on this topic, preferably in Russian.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
zed91, 2011-07-25
@zed91

Do not read Russian books. All that is on the drivers is windows internals and code examples from the WDK. Look in the src folder. I also advise you to take a more thorough approach to this task, because it requires a deep knowledge of what you are doing (the programmer must understand why he has every line of code in the driver) and is just a little different from writing websites in php. Good luck.

I
int02h, 2011-07-25
@int02h

Walter Oni's book helped me a lot when I wrote a course on system programming.
www.ozon.ru/context/detail/id/3137491/

F
Fastto, 2011-07-25
@Fastto

For the com port, there is a virtual serial port driver utility that creates pairs of virtual ports - the 7th version also works under win7. Of the pair, one is used for reading, the second for writing. I did one job - the proteus on the one hand, the software on .net on the other, the software sends commands to turn on the heaters and fans, the controller returns the temperatures of the control sensors and the current state of the fans, dampers, heaters, etc. - everything is working. I didn’t look for lpt, but perhaps the developers of this program have an analogue. If you are interested, there are sources and softwares on .net and proteus-schemes with firmware somewhere, and the program itself is with medicine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question