Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Reboot your Windows system with two lines of code....
Author:
Peter Riley
E-mail:
Click to e-mail author
Submitted:
12/8/2000
Version:
VB5
Compatibility:
VB5, VB6
Category:
Windows API
Views:
11613
Reboot your Windows system with two lines of code.
Declarations:
Declare Function ExitWindowsEx Lib "user32" Alias "ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Code:
Public Sub RebootWindows() Dim dwReserved As Long ExitWindowsEx EWX_REBOOT, dwReserved End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2023 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement