Hi,
Im writing a virtual serial port for xp and stumbled upon a problem. I
do all my initiation stuff such as IoCreateDevice (with name) and set
up symbolic link. This works fine and i can access my driver by calling
createfile(com5...) etc. But, the problem is that the system never
seems to understand that COM5 is now available. So any other
application cant see COM5, even though it works to open it.
Question number one is, how can i make the system understand and
announce COM5 to the world.
I tried using this RegisterDeviceInterface, which probably is a better
way to go. But this has to be used in AddDevice function. And this
function never gets called when i set up the pointer to it in
DriverEntry. Wierdly enough, If i set up this pointer and do
startservice from my application, DriverUnload is immidiatly called
after DriverEntry. If i dont set the adddevice pointer, the driver
stays loaded.
Question number 2, How can this be solved, and why?
One part of this problem is that i do not want to use an .inf file, i
just want my application to do it all via Createservice, openservice
and startservice etc.
Hope someone can lend a hand
/Wille