README.md

December 5, 2022 ยท View on GitHub

Absolute Windows Shut Down

Description

When you use the ExitWindowsEx API to reboot the system under Windows NT and Windows 2000, the machine does not reboot.

'CAUSE

In order to programmatically reboot a Windows NT or Windows 2000 system, the process requires the SE_SHUTDOWN_NAME privilege. By default, Visual Basic applications do not have this privilege and therefore will not reboot the machine.

In order to get ExitWindowsEx API to reboot the system under Windows NT or Windows 2000, the SE_SHUTDOWN_NAME privilege must be set.

This Code Shows you the best way to reboot force restart or shut down a PC

More Info

Be carefull It will restart the machine.

Submitted On1998-09-01 04:34:42
ByArjang
LevelAdvanced
User Rating4.7 (70 globes from 15 users)
CompatibilityVB 6.0
CategoryWindows API Call/ Explanation
WorldVisual Basic
Archive FileCODE_UPLOAD9571932000.zip

API Declarations

Private Declare Function ExitWindowsEx Lib "user32" (ByVal _
   dwOptions As Long, ByVal dwReserved As Long) As Long