Article View: comp.lang.basic.visual.misc
Article #329Re: Why this code does not work properly?
From: Arild Bakken
Date: Mon, 02 Dec 2002 16:05
Date: Mon, 02 Dec 2002 16:05
23 lines
2285 bytes
2285 bytes
Mirco Soderi wrote: That's all. *Why this code is not correct?* > Important info: > 1. This is the only code of this very simple program. In effect, this > program is composed by a module (the > Form1 one) and the code included in this module is the one given > above and nothing more; > 2. I have tried to use this program on a Windows XP Home Edition > operating system and the problem is that the count-down is ok but > when it arrives to zero, it goes to -1 minuti and 59 secondi and *the > computer is not turned off*. > > THANK YOU IN ADVANCE TO ALL THE ONES THAT WILL DECIDE TO HELP ME! > > - Mirco Soderi - For Windows 2000 and greater you need the SE_SHUTDOWN_NAME privilege on the process token. Read the documentation, on the ExitWindowsEx method on MSDN, it has sample code on how to aquire this privilege. Arild
Technical Details
Message-ID:
<0xLG9.4775$hV6.79873@news2.e.nsc.no>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed1.bredband.com!bredband!uio.no!news.equant.no!newsfeed1.e.nsc.no!nsc.no!nextra.com!news2.e.nsc.no.POSTED!8f2104c1!not-for-mailReferences:
<CitF9.4457$fa.162981@news1.tin.it>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110e3b,b109cc5f87de0a31 X-Google-Attributes: gid110e3b,public X-Google-Thread: 115e07,b109cc5f87de0a31 X-Google-Attributes: gid115e07,public X-Google-Thread: 111c14,b109cc5f87de0a31 X-Google-Attributes: gid111c14,public X-Google-Thread: 108062,b109cc5f87de0a31 X-Google-Attributes: gid108062,public X-Google-Thread: 107824,b109cc5f87de0a31 X-Google-Attributes: gid107824,public X-Google-ArrivalTime: 2002-12-02 08:05:17 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed1.bredband.com!bredband!uio.no!news.equant.no!newsfeed1.e.nsc.no!nsc.no!nextra.com!news2.e.nsc.no.POSTED!8f2104c1!not-for-mail From: "Arild Bakken" <arildb_@hotmail.com> Newsgroups: comp.lang.basic.visual.misc,cz.comp.lang.basic.visual,fj.comp.lang.visualbasic,japan.comp.lang.visual-basic,no.it.programmering.visual-basic References: <CitF9.4457$fa.162981@news1.tin.it> Subject: Re: Why this code does not work properly? Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <0xLG9.4775$hV6.79873@news2.e.nsc.no> NNTP-Posting-Host: 213.203.17.243 X-Complaints-To: news-abuse@telenor.net NNTP-Posting-Date: Mon, 02 Dec 2002 17:05:16 MET X-Trace: news2.ulv.nextra.no 1038845116 213.203.17.243 Date: Mon, 2 Dec 2002 17:05:12 +0100