Konnan
10-02-2001, 06:55 AM
does anyone know shutdown command for windows millum
Conan Visinko
Conan Visinko
shutdownKonnan 10-02-2001, 06:55 AM does anyone know shutdown command for windows millum Conan Visinko orufet 10-02-2001, 08:30 AM Start, Shut Down, Enter http://www.visualbasicforum.com/bbs/images/icons/wink.gif "I do not agree with a word you say, but I will defend to the death your right to say it" - Voltaire burningodzilla 10-02-2001, 08:30 AM research the ExitWindowsEx API. i know there's a way using regsver/regsvr (whatever), but i don't know what it is rodfiuza 10-02-2001, 08:34 AM Check www.vbapi.com for the ExitWindowEx function, or if you use the search of this forum, because i'm sure somebody already answer this question before... if you want to hit the stars,shoot to the sky. args 10-03-2001, 01:58 AM 'Shell "RUNDLL.EXE user.exe,exitwindows" KicKs 12-03-2001, 05:15 PM Where do I type that code? Volte 12-03-2001, 05:24 PM In the code window, in whatever function or event you want to shutdown windows with. If you wanted to shut down windows on the click of a button, you would put it in the Click event of the button. KicKs 12-03-2001, 06:29 PM Private Sub mnuToolsShutdownWindows_Click() 'Shell "RUNDLL.EXE user.exe,exitwindows" End Sub KicKs 12-03-2001, 06:29 PM That didn't work... Volte 12-03-2001, 06:31 PM Take out the ' before the text, otherwise it's commented out, and doesn't run. divil 12-04-2001, 03:53 AM Look up the ExitWindowsEx API in your MSDN, that is the correct way of doing it. You will need the constant to shut down the computer, instead of rebooting etc. Squirm 12-04-2001, 10:18 AM I would also recommend using the 'proper' API way : ExitWindowsEx (VB API) (http://www.vbapi.com/ref/e/exitwindowsex.html) Banjo 12-04-2001, 10:24 AM Squirm, Divil already mentioned that images/icons/wink.gif. reboot 12-04-2001, 02:51 PM ExitWindowsEx isn't VB API. It's Windows API. divil 12-04-2001, 02:53 PM Hey Squirm, how ya been? Haven't seen you on IRC latey... robot313 12-04-2001, 02:59 PM He typed VB API because that is the name of the site he linked to. Derek Stone 12-04-2001, 03:19 PM Actually, reboot, you're just as wrong as anybody else. It's a Windows API function. And oh yeah... the argument "you know what I meant" won't cut it... after all you're suppose to be perfection. -cl reboot 12-04-2001, 03:35 PM I'm sure this is news to all of you, but VB actually does have api calls. Undocumented of course. And this is the only reason I pointed out the distinction. Derek Stone 12-04-2001, 03:51 PM Of course Visual Basic utilizes API calls. How else would the functions located in the runtime be called? -cl Squirm 12-04-2001, 05:02 PM divil - I am good thanks. reboot - I added VB API as a reference to the site name I was linking to, sorry for any confusion. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum