🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Rebooting from a program

#544
From: Joe Mayo
Date: Thu, 18 Nov 2004 02:04
21 lines
1361 bytes
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: <419c0335$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!easynet-monga!easynet.net!news.clara.net!wagner.news.clara.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <419b5260@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: "Joe Mayo" <jmayo@nospam.mayosoftware.com>
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <419b5260@newsgroups.borland.com>
Subject: Re: Rebooting from a program
Date: Wed, 17 Nov 2004 19:04:43 -0700
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 67.176.104.159
Message-ID: <419c0335$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100743477 67.176.104.159 (17 Nov 2004 18:04:37 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!easynet-monga!easynet.net!news.clara.net!wagner.news.clara.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail