The text of this article is not in this database — only its details are. Read it on the old site: Shutdown and Restart System Through C# Code
10 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Shutdown and Restart System Through C# Code
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Nayan KumarPosted Mar 3, 2016, 5:42 AM
Thanks Hemant Srivastava
Hemant SrivastavaPosted Nov 26, 2014, 5:42 PM
Thanks Niroshan!
Niroshan MadhurangaPosted Nov 25, 2014, 11:48 PM
Thxs
engdhaif jaberPosted Jun 9, 2014, 11:36 PM
thank's man this very amazing
Hemant SrivastavaPosted Jan 14, 2013, 7:34 AM
Thanks Arul
arul vPosted Jan 14, 2013, 6:30 AM
tq hemant
nguyen nguyenPosted Jan 11, 2013, 6:38 AM
Thank
Hemant SrivastavaPosted Jan 11, 2013, 12:38 AM
yeah Sam.., Thanks for sharing.
Sam HobbsPosted Jan 10, 2013, 9:49 PM
If you only need to do a shutdown, restart or logoff then I think you can use the WMI Win32_OperatingSystem class. There are other ways to do hibernate, lock and sleep; I do not know the details but it is possible.