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
Calls the win32 API "ExitWindowsEx" function to sh...
Website:
http://www.a1vbcode.com/
Submitted:
3/1/2000
Version:
VB4
Compatibility:
VB4,5,6
Category:
Windows API
Views:
10610
Calls the win32 API "ExitWindowsEx" function to shut down windows operating system from your application.
Declarations:
Public Const EWX_LOGOFF As Long = 0 Private Declare Function ExitWindowsEx& Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long)
Code:
'Place the code in a button's click event. Private Sub cmdExit_Click() ExitWindowsEx EWX_LOGOFF,0 Unload Me ' unload form End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement