Hi, what’s the correct sequence to open the NDISRD driver and close it when finished using? At the moment my sequence is:
1) Get the file and device pointers using IoGetDeviceObjectPointer()
2) I get a reference on the device object with ObReferenceObject() since I use it.
3) I dereference the file object since i don’t need it with ObDereferenceObject()
4) I use the deviceObject..
5) When finished using, i dereference the deviceObject using ObDereferenceObject()
The problem is that I can open the device only one time. The second time I try the same sequence, I can’t open the device.