VB Code:
Private Const EWX_SHUTDOWN As Long = 1 Private Declare Function ExitWindowsEx Lib "user32" (ByVal dwOptions As Long, ByVal dwReserved As Long) As Long lngResult = ExitWindowsEx(EWX_SHUTDOWN, 0&)
Printable View
VB Code:
Private Const EWX_SHUTDOWN As Long = 1 Private Declare Function ExitWindowsEx Lib "user32" (ByVal dwOptions As Long, ByVal dwReserved As Long) As Long lngResult = ExitWindowsEx(EWX_SHUTDOWN, 0&)
Geez sorry, i will not post anything next time:(
You should post, but after you search ;)
Yeah i guess, its just for me its better to have say 5 examples of you want as opposed to 1, then you can learn from each.
Then find the already existing thread and post a reply there so all the options are gathered together and you save other people lots of searching ;) Anyway, just try to keep it in mind for the future ;)