NDIS IM & NdisMDeregisterDevice



As I know, i should call NdisMDeregisterDevice in MiniportHalt routine
when last miniport is halted (
http://groups.google.ru/group/comp.os.ms-windows.programmer.nt.kernel-mode/browse_thread/thread/1d8ee27725dd24c2/b8e565e360364c61?lnk=st&q=NdisMDeregisterDevice+Unload&rnum=1&hl=ru#b8e565e360364c61)
Then my driver will be unloaded. But if client app has opened handle on
my device, driver is still in memory. I can understand why. When app
close the last handle i suggest calling driver Unload routine, but
driver is still referenced. I can notify app about stop, but I think
when app handle such notify it will be late. What sould I do?

.



Relevant Pages

  • Re: SD card and File System in WinCE 5....?
    ... Because when unload/reload SD client driver, ... So if App is running,suspend and then resume the system, if we unload and ... App will pop a message to notify user that the SD card is removed. ...
    (microsoft.public.windowsce.platbuilder)
  • [RFC] dev_acpi: device driver for userspace access to ACPI
    ... The basic concept of operation is that the ioctl operates on the ACPI ... The sample, proof-of-concept app, is called acpitree. ... You can find the driver and sample app here: ...
    (Linux-Kernel)
  • Re: NDIS IM & NdisMDeregisterDevice
    ... Then my driver will be unloaded. ... But if client app has opened handle on ... close the last handle i suggest calling driver Unload routine, ... You can create an asynchronous "notification" IOCTL that the application calls. ...
    (microsoft.public.development.device.drivers)
  • Pended IOCtrl + LoadLibrary == Deadlock?
    ... multithreaded app running on XP communicating with a software only NT ... style driver. ... this ioctrl which then makes the thread run and the command be executed. ... intact) the LoadLib is happy. ...
    (microsoft.public.development.device.drivers)
  • Re: Generic battery interface
    ... interrupts caused by apps that track kernel-issued readouts (e.g., ... > when you have a readout that was received from the hardware at time ... At time T+600 the driver receives update events (yeah, ... If this is all that happens, ...
    (Linux-Kernel)

Loading