BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reset and restarting

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Nerio
Guest





PostPosted: Fri Aug 26, 2005 5:39 pm    Post subject: Reset and restarting Reply with quote



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?)
Thanks for help
Nerio


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Aug 26, 2005 6:02 pm    Post subject: Re: Reset and restarting Reply with quote




"Nerio" <ne_serzanti (AT) tin (DOT) it> wrote


Quote:
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



Back to top
Nerio
Guest





PostPosted: Fri Aug 26, 2005 8:53 pm    Post subject: Re: Reset and restarting Reply with quote




"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> ha scritto nel messaggio
news:430f5986$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Nerio" <ne_serzanti (AT) tin (DOT) it> wrote in message
news:430f53c8 (AT) newsgroups (DOT) 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 pathapplication_name
before shut-down so that it runs at Windows restart?
Thanks again
Nerio



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Aug 26, 2005 9:02 pm    Post subject: Re: Reset and restarting Reply with quote


"Nerio" <ne_serzanti (AT) tin (DOT) it> wrote


Quote:
But how and where I can register programmatically pathapplication_name
before shut-down so that it runs at Windows restart?

There are many places:

1) The "Startup" group in the Start Menu

2) The "Run" and "RunOnce" subkeys of the
"SoftwareMicrosoftWindowsCurrentVersion" key of the Register's
HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE areas.

It really depends on what your actual needs are, and what kind of systems
you are targetting.


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.