VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This will shutdown your window(Not for win. XP) one line code

by ojas (14 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 1st October 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This will shutdown your window(Not for win. XP) one line code

API Declarations



Global Const EWX_SHUTDOWN = 1
Global Const EWX_REBOOT = 2


Rate This will shutdown your window(Not for win. XP) one line code



d = ExitWindowsEx(EWX_SHUTDOWN, 0&)
          

           FOR RESTARTING WINDOWS USE FOLLOWING CODE.

d = ExitWindowsEx(EWX_REBOOT, 0&)



Download this snippet    Add to My Saved Code

This will shutdown your window(Not for win. XP) one line code Comments

No comments have been posted about This will shutdown your window(Not for win. XP) one line code. Why not be the first to post a comment about This will shutdown your window(Not for win. XP) one line code.

Post your comment

Subject:
Message:
0/1000 characters