VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Exit / Shutdowns Windows

by Waty Thierry (60 Submissions)
Category: Windows System Services
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Tue 30th March 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Exit / Shutdowns Windows

API Declarations


' * Programmer Name : Waty Thierry
' * Web Site : www.geocities.com/ResearchTriangle/6311/
' * E-Mail : [email protected]
' * Date : 13/10/98
' * Time : 10:24
' * Module Name : Windows_Module
' * Module Filename : Windows.bas
' **********************************************************************
' * Comments :
' * Exit Windows
' **********************************************************************

' *** Exit windows with one of the following results. dwReserved = 0
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long

Public Const EXIT_LOGOFF = 0
Public Const EXIT_SHUTDOWN = 1
Public Const EXIT_REBOOT = 2


Rate Exit / Shutdowns Windows



' * Programmer Name  : Waty Thierry
' * Web Site         : www.geocities.com/ResearchTriangle/6311/
' * E-Mail           : [email protected]
' * Date             : 13/10/98
' * Time             : 10:24
' * Module Name      : Windows_Module
' * Module Filename  : Windows.bas
' **********************************************************************
' * Comments         :
' *  Exit Windows
' **********************************************************************

Public Sub ShutDownWindows(ByVal uFlags As Long)
   
   ' * Programmer Name  : Waty Thierry
   ' * Web Site         : www.geocities.com/ResearchTriangle/6311/
   ' * E-Mail           : [email protected]
   ' * Date             : 26/11/98
   ' * Time             : 15:05
   ' * Module Name      : Lib_Module
   ' * Module Filename  : Lib.bas
   ' * Procedure Name   : ShutDownWindows
   ' * Parameters       :
   ' *                    ByVal uFlags As Long
   ' **********************************************************************
   ' * Comments         : Exit the Windows
   ' *
   ' *
   ' **********************************************************************
   
   Call ExitWindowsEx(uFlags, 0)
   
End Sub



Download this snippet    Add to My Saved Code

Exit / Shutdowns Windows Comments

No comments have been posted about Exit / Shutdowns Windows. Why not be the first to post a comment about Exit / Shutdowns Windows.

Post your comment

Subject:
Message:
0/1000 characters