Virtual Miniport(NDIS)- Power state

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi All,
I have written a virtual miniport driver with the help of
netvmini sample provided by DDK. I have a problem when the system goes to
standby mode and come back to normal mode. When the system goes to standby
mode the mphalt gets called and mpinitialize gets called when it comes back
to normal mode which means that the IP stack is unloaded and loaded.

Is this the normal behaviour? What i understood from MSDN is when the
system goes to low power states only device stop functioning and it does not
get unloaded so that user mode applications will not be affected.

As the device is removed,the sockets that listesn on the IP address of
virtual adapter gets terminated as the IP address becomes invalid hence it
does not work even after system comes back to normal state.

Would be of great help if anyone could reply on how to overcome this
situation.

Thanks,
Senthil

.