Hello, I have a problem when using 'NdisMRegisterDevice()' in my NDIS driver.
I use this call to create a standalone device object so that my application
can communicate with my driver. Using this, I can communicate with my driver
fine from my app. However, the file handle that my application creates to
talk to my driver does NOT get notified when I register to receive device
notifications using 'RegisterDeviceNotification'. However, if I create a
handle using the REAL device name (obtained by using the SetupDixxx
functions), my app properly receives the notifications. I can't use this
handle tho', 'cuz NDIS owns it and my driver won't received Irps sent to it.
The basic problem I'm trying to solve is this: if the device is unplugged
WHILE the app is running, the app needs to close the handle to allow the
driver to unload.
Thx,
Rick