Article View: borland.public.cppbuilder.nativeapi
Article #5195Re: Reset and restarting
From: Nerio
Date: Fri, 26 Aug 2005 20:53
Date: Fri, 26 Aug 2005 20:53
26 lines
1785 bytes
1785 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ha scritto nel messaggio news:430f5986$1@newsgroups.borland.com... > > "Nerio" <ne_serzanti@tin.it> wrote in message > news:430f53c8@newsgroups.borland.com... > >> I have, under some conditions, to reset and restart Windows so >> that my program autoruns. I'm thinking to use ExitExecRestart() >> and related functions but they are not known by C++Builder 6 at >> compiling time (missing an include file? which?) > > ExitExecRestart() is not a Win32 API function. It is a script function > for > Microsoft's Installer technology. > > What you are looking for is ExitWindows/Ex() instead. > > > Gambit > Many thanks for info. But how and where I can register programmatically path\application_name before shut-down so that it runs at Windows restart? Thanks again Nerio
Technical Details
Message-ID:
<430f8125$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.xsnews.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<430f53c8@newsgroups.borland.com> <430f5986$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,80ad1a985aff130b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Nerio" <ne_serzanti@tin.it> Newsgroups: borland.public.cppbuilder.nativeapi References: <430f53c8@newsgroups.borland.com> <430f5986$1@newsgroups.borland.com> Subject: Re: Reset and restarting Date: Fri, 26 Aug 2005 22:53:26 +0200 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 82.55.232.226 Message-ID: <430f8125$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1125089573 82.55.232.226 (26 Aug 2005 13:52:53 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.xsnews.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail