Driver installation
Hi,
I need to install a virtual network adapter. I checked the existing example that uses newdev::UpdateDriverForPlugAndPlayDevices and setupapi::SetupCopyOEMInf, but I don't know if these can be used for this case.
The driver consists of .inf and .sys files. I tried to point the example driver installation script to the .inf file and set the HardwareId to dni_dnemp, which is what regedit shows as hardware id (in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\DNI_DNEMP) if I manually install the driver. The test failed with error codes (XP:0,2) and #2 (XP).
I haven't done anything with drivers before, so I might be on completely wrong tracks here, but for me the newdev::InstallSelectedDriver sounded like a better match. Too bad I've got no idea how I could try it out. It is described for example at http://msdn2.microsoft.com/en-us/library//aa906293.aspx .
Any ideas?