| View previous topic :: View next topic |
| Author |
Message |
Nerio Guest
|
Posted: Fri Aug 26, 2005 5:39 pm Post subject: Reset and restarting |
|
|
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
|
Posted: Fri Aug 26, 2005 6:02 pm Post subject: Re: Reset and restarting |
|
|
"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
|
Posted: Fri Aug 26, 2005 8:53 pm Post subject: Re: Reset and restarting |
|
|
"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
|
Posted: Fri Aug 26, 2005 9:02 pm Post subject: Re: Reset and restarting |
|
|
"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 |
|
 |
|