Hi all, I am trying to get my head around windows drivers. I am using WDM (I was thinking of writing some drivers for some old hardware, windows 2000 type stuff), but currently using latest Windows 10 for devel.
Here are my files ahead of time:
==================================
My first inf attempt with a Manufacturers
section: https://pastebin.com/WK6CX8Py
My latest inf that uses DefaultInstall
(as per this forum: https://social.msdn.microsoft.com/Forums/en-US/077a70dc-06b6-47ab-b124-d68a6682234b/inf-error-1212-cannot-have-both-manufacturer-and-defaultinstall-sections?forum=wdk): https://pastebin.com/QuHTiArt
Source code: https://pastebin.com/u30fJ5WT
==================================
by running >devcon drivernodes *ROOT*
i see devices like
ROOT\VDRVROOT\0000
Name: Microsoft Virtual Drive Enumerator
...
ROOT\NDISVIRTUALBUS\0000
Name: NDIS Virtual Network Adapter Enumerator
I would also like to install a virtual driver for a virtual device, and have written a placeholder driver (just a hello world type thing).
I understand the inf is not technically neccesary for non-pnp devices, and in my case the driver is really nothing more than a service? it is only used for certification?
I try to install my driver by running >devcon install MyDriver1.inf root\mydevice
.
I understand this should create a device node called “root\mydevice”? However, this fails with
Device node created. Install is complete when drivers are installed...
Updating drivers for root\maxim from C:\Users\Maxim\dev\driver\MyDriver1\Debug\MyDriver1.inf.
devcon failed.
C:\Windows\INF\setupapi.dev.log`, i see the following:
I should say at this point, that I have ran this command a lot now, and devcon
reports the following nodes:
Why does devcon
not create the node that I told it to? It always seems to default to the ROOT\SYSTEM\xxxx node. Other drivers seem to be able to create their own nodes no problem, but mine always defaults.
Ive also recently read that the Manufacturers
section in the .inf is only for PnP devices, and one should use the DefaultInstall
section. I tried this, but in both cases devcon
still didnt create the device node that I wanted.
I also receive the following warning: Hardware 'Device 1' does not have an associated service using install section 'mydev.NT'
for the inf file with the [Manufacturers]
section. I have read the MSDN note on this, but haven’t been able to get rid of it with seemingly every combination of architecture specifiers (.NT, .NTx86, .NTx64
), and would also be grateful for some pointers as to how to get rid of it.
I would be very grateful for some pointers.