Possible Duplicate:
Windows7 Force boot to Safe mode via API
I want to put a button in my form that when someone click it system restart and go to safe mode.Does anyone how can I do it?
Possible Duplicate:
Windows7 Force boot to Safe mode via API
I want to put a button in my form that when someone click it system restart and go to safe mode.Does anyone how can I do it?
You could programmatically set the "boot.ini" switch as described here and then P/Invoke a call to InitateSystemShutdown
.