Hi,

I am working on a WDF PCI device driver, driver supports
PNP functionality.

Problem: when driver uninstalled, i had to restart the system in xp-32 &
xp-64 before driver installing again, where as this is not required in
vista-32 bit pc.

Driver installation: I am currently using DIFX tools DpInst for installing &
uninstalling the driver.

I also verified that my driver unmaps the resources before uninstalling the
driver using MmUnmapIoSpace to unmap the PCI memory resources.

Device doesnt support power managment
capability, so driver also not supporting any power managment functionality,
instead it just registers the callback & wont do anything inside.


Since this problem is existing only in xp, do i have to take any extra care
to avoid system restart? and also, after uninstall system doesnt prompt for
restart also.


Thanks,
Prafulla

Re: PC Restart required after driver unload and before installing agai by Maxim

Maxim
Sat May 03 09:47:23 CDT 2008

Can the driver be disabled successfully?

Usually, Windows asks for reboot due to driver reinstall due to the old
driver being unable to stop.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"kota" <kota@discussions.microsoft.com> wrote in message
news:852EA349-9B56-4C63-A343-8D46973321FB@microsoft.com...
> Hi,
>
> I am working on a WDF PCI device driver, driver supports
> PNP functionality.
>
> Problem: when driver uninstalled, i had to restart the system in xp-32 &
> xp-64 before driver installing again, where as this is not required in
> vista-32 bit pc.
>
> Driver installation: I am currently using DIFX tools DpInst for installing &
> uninstalling the driver.
>
> I also verified that my driver unmaps the resources before uninstalling the
> driver using MmUnmapIoSpace to unmap the PCI memory resources.
>
> Device doesnt support power managment
> capability, so driver also not supporting any power managment functionality,
> instead it just registers the callback & wont do anything inside.
>
>
> Since this problem is existing only in xp, do i have to take any extra care
> to avoid system restart? and also, after uninstall system doesnt prompt for
> restart also.
>
>
> Thanks,
> Prafulla


Re: PC Restart required after driver unload and before installing by kota

kota
Sun May 04 05:41:00 CDT 2008

Hi,

I am able to successfully disable the device, i didnt find any problems
related to this, i am having this problem only in xp-32 & xp-64 but not in
vista-32 & vista-64.

From this observation, i am under impression that, i should do some cleanup
related tasks in xp-32, where as this might be taken care in vista.

Any clues in these lines, is my approach is correct?

Thanks,
Prafulla

Re: PC Restart required after driver unload and before installing by chris

chris
Sun May 04 22:29:17 CDT 2008

On May 3, 7:24 am, kota <k...@discussions.microsoft.com> wrote:

> Problem: when driver uninstalled, i had to restart the system in xp-32 &
> xp-64 before driver installing again, where as this is not required in
> vista-32 bit pc.

Does your driver pass PNPDTest? Specifically, the rebalance test?