Path: news.cs.au.dk!news.net.uni-c.dk!howland.erols.net!news-peer.gip.net!news-lond.gip.net!news.gsl.net!gip.net!newspeer.clara.net!news.clara.net!newsfeed.nacamar.de!news.fh-hannover.de!news.uni-stuttgart.de!news.ruhr-uni-bochum.de!not-for-mail From: "Sascha Kimmel" Newsgroups: comp.lang.beta Subject: Reboot Windows via BETA? Date: Wed, 10 Feb 1999 18:27:39 +0100 Organization: Ruhr-Universitaet Bochum, Rechenzentrum Lines: 37 Message-ID: <79sfni$r6l$1@sun579.rz.ruhr-uni-bochum.de> NNTP-Posting-Host: dialppp-1-46.rz.ruhr-uni-bochum.de X-Trace: sun579.rz.ruhr-uni-bochum.de 918667826 27861 134.147.1.46 (10 Feb 1999 17:30:26 GMT) NNTP-Posting-Date: 10 Feb 1999 17:30:26 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.0810.800 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800 Xref: news.cs.au.dk comp.lang.beta:11814 Hi! I want to have my program restart Windows (yes, ONLY Windows, not MacOS, Sun solaris, Linux etc.) automatically. I found out that I have to use "EWX_REBOOT" for that and found the following quite interesting lines in winuserconsts.bet (Mjolner System Professional 4.1, Windows 98): (* #define EWX_LOGOFF 0 *) EWX_LOGOFF: (# exit 0 #); (* #define EWX_SHUTDOWN 1 *) EWX_SHUTDOWN: (# exit 1 #); (* #define EWX_REBOOT 2 *) EWX_REBOOT: (# exit 2 #); My question is: how can I call any of these functions from within BETA? And there is an implementation of the Microsoft SDK in winuserconsts.bet etc., but how can I call all of the functions? Any help is appreciated. Regards, Sascha Kimmel ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø Sascha Kimmel | tricos.com Webmaster | software & webdesign webmaster@tricos.com | http://www.tricos.com ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø Please include a copy of your original message in any replies. Incluez une copie de votre courrier original dans chaque réponse svp. Schicken Sie bitte immer eine Kopie der Original-eMail bei jeder Antwort.