🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #449

Re: Rebooting from a program

#449
From: Ray
Date: Thu, 18 Nov 2004 18:54
31 lines
1723 bytes
Thanks Joe

Another thing missed off from .NET eh!

Ray

"Joe Mayo" <jmayo@nospam.mayosoftware.com> wrote in message 
news:419c0335$1@newsgroups.borland.com...
> Hi Ray,
>
> You'll have to use P/Invoke.  I believe the Win32 API is ExitWindowsEx.
>
> Joe
> -- 
> http://www.csharp-station.com
>
> "Ray" <someone@someisp.net> wrote in message
> news:419b5260@newsgroups.borland.com...
>> Hi
>>
>> I want to be able to reboot, or shutdown, the host machine from within my
>> program. Can't find anything in the Help that gives a clue on how to do
>> this.
>>
>> Can anyone point me in the right direction.
>>
>> Ray
>>
>>
>
> 
Technical Details
Message-ID: <419ceff0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <419b5260@newsgroups.borland.com> <419c0335$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,42e4821b0d5e8f4
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ray" <someone@someisp.net>
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <419b5260@newsgroups.borland.com> <419c0335$1@newsgroups.borland.com>
Subject: Re: Rebooting from a program
Date: Thu, 18 Nov 2004 18:54:37 -0000
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 81.78.54.126
Message-ID: <419ceff0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100804080 81.78.54.126 (18 Nov 2004 10:54:40 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail