Hi,
Thank you for posting in the community!
Based on my understanding, you want to use C# to reboot your computer.
===========================================
Based on my experience, .Net class library does not support the function of
rebooting. You need to get this done through P/invoke some WIN32 APIs.
Bennie has provided you the functions you may use, please look the detailed
remarks in MSDN "PlatForm SDK"
===========================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.