// JP opened flex table

Click to See Complete Forum and Search --> : Install Drivers for Virtual Device using DDK


BigBen
June 2nd, 2008, 01:54 PM
Hi,
I am trying to install a virtual null modem using the DDK. I was only given an inf file (see attached). But this inf file doesn't seem to match with how the examples included with the DDK are given. It doesn't included many of the sections included in netvmini.inf (from the examples in the DDK) ie [NetVMini.Reg].
Does this mean that I have to alter my inf in order to get this to work properly?
Or without the the .sys like in the netvmini sample does this mean that I can't use the DDK to setup this device, and if so how do I emulate the add new hardware behavior programmatically?

Thanks in advance
Ben

BigBen
June 9th, 2008, 04:14 PM
So after doing some more reading and working with this, I found out that the issue seems to be largely coming from the fact that it being a virtual device windows doesn't realize that it is plugged in, and assumes it isn't plugged.

After I looked how the add new hardware wizard is working, it seems as though the device is registered with the serial port then the driver is installed.

So I suppose I should now be asking how to attach/install a device to a given COM port in C++, anyone have any ideas?

I know using the Windows DDK I can get access to ports using ComDBClaimPort, but as far as I can tell that has no way of permanently connecting the COM port and the Modem


Thanks
Ben

//JP added flex table