requesting a reboot after a device property page change

Does anyone know the correct way to request a reboot after a change in your
device’s property page?

SP_DEVINSTALL_PARAMS dip;

ZeroMemory(&dip, sizeof(dip));
dip.cbSize = sizeof(dip);

SetupDiGetDeviceInstallParams(DeviceInfoSet,
DeviceInfoData,
&dip);

dip.Flags |= DI_NEEDREBOOT;

SetupDiSetDeviceInstallParams(DeviceInfoSet,
DeviceInfoData,
&dip);

d

This posting is provided “AS IS” with no warranties, and confers no rights.

-----Original Message-----
From: Colin Fraser [mailto:xxxxx@broadcom.com]
Sent: Friday, September 13, 2002 3:15 PM
To: NT Developers Interest List
Subject: [ntdev] requesting a reboot after a device property page change

?
Does anyone know the correct way to request a reboot after a change in your device’s property page?
?

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to %%email.unsub%%

That is an approximation of the code that the ps/2 mouse property page uses when you change a property. The ps/2 page calls this set of code during PSN_APPLY (a sub message of WM_NOTIFY) and it works w/out a hitch. You can test it out yourself if a ps/2 mouse is attached to your machine.

I just tried it out on xp gold and xpsp1 and both asked for a reboot; if I answered Yes, everything shut down just fine and device manager / mmc didn’t complain about any open prop sheets.

D

This posting is provided “AS IS” with no warranties, and confers no rights.

-----Original Message-----
From: Colin Fraser [mailto:xxxxx@broadcom.com]
Sent: Friday, September 13, 2002 3:25 PM
To: NT Developers Interest List
Subject: [ntdev] RE: requesting a reboot after a device property page change

Ok, I tried doing that in the dialog procedure and in the dialog’s callback
procedure (in response to the PSPCB_RELEASE message), but the problem I
found was that windows tried to reboot immediately before closing the
property page properly. Windows (mmc.exe) then complains that there are
still open property pages.

-----Original Message-----
From: Doron Holan [mailto:xxxxx@windows.microsoft.com]
Sent: Friday, September 13, 2002 3:18 PM
To: NT Developers Interest List
Subject: [ntdev] RE: requesting a reboot after a device property page
change

SP_DEVINSTALL_PARAMS dip;

ZeroMemory(&dip, sizeof(dip));
dip.cbSize = sizeof(dip);

SetupDiGetDeviceInstallParams(DeviceInfoSet,
DeviceInfoData,
&dip);

dip.Flags |= DI_NEEDREBOOT;

SetupDiSetDeviceInstallParams(DeviceInfoSet,
DeviceInfoData,
&dip);

d

This posting is provided “AS IS” with no warranties, and confers no rights.

-----Original Message-----
From: Colin Fraser [mailto:xxxxx@broadcom.com]
Sent: Friday, September 13, 2002 3:15 PM
To: NT Developers Interest List
Subject: [ntdev] requesting a reboot after a device property page change

?
Does anyone know the correct way to request a reboot after a change in your
device’s property page?
?

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@broadcom.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to %%email.unsub%%