put my app at start of windows, and disable to leave it

  • Thread starter Thread starter Romain TAILLANDIER
  • Start date Start date
R

Romain TAILLANDIER

Hi group

I want user can never do anything else that run my ppc 2003 app.
The app have to start with windows, closing the app must closing windows
Killing the app must close windows too.
Have an exception in the app must close windows too.

I allready have look for this question on this news group and have some
helpfull answers :
here are helpfull quote :

<quote>
Any program listed in the registry at
HKey_LocalMachine\Software\Microsoft\Windows\CurrentVersion\Run will run at
startup
</quote>

<quote>
Another possibility is to define your application as a
Windows Service. In that way the system administrator can
set the process to start-up type as Manual, Automatic, or
disabled.
</quote>

<quote>
You need to use P/Invoke and
either call the legacy ExitWindowsEx API, or the newer
InitiateSystemShutdown or InitiateSystemShutdownEx. (Make sure you also
modify the token to allow shutdown).

</quote>

but i have few questions :

If my app always turn how can i debug it ?
How can i reinstall it for example ?
How can i do what ever a developper have to do with the ppc if the app never
ends (wich it is suppose to do) ?

It could be some kind of danger to do this... right ?
but i have to test that before i can sell my app ... so what :) ??

thanks for help ...
ROM
 
I also consider such solution recently. I find out such method but do not
test yet.

The application you developed could be debugged as normal applications.
Another application which deal with registry could loaded in your
application if some special conditions occur, such as a special password
etc.
 
Thank you WX

ROM


wang xin said:
I also consider such solution recently. I find out such method but do not
test yet.

The application you developed could be debugged as normal applications.
Another application which deal with registry could loaded in your
application if some special conditions occur, such as a special password
etc.
 
h
i did same and it worked perfect with ppc2002. it does not cause any harm since all i do is run my application very first and make it full screen. all u have 2 do is a button or so 2 exit ur application and get back on the explorer. here the code and registry changes. careful code was for evb3.

'SHOWKE
lngResult = QueryValue(HKEY_LOCAL_MACHINE, "\Init", "Launch55"

'SETKEY
SetKeyValueString
HKEY_LOCAL_MACHINE, "\Init", "Launch55", "\DIR\SUB\FILENAME.EXTENSION
lngResult = QueryValue(HKEY_LOCAL_MACHINE, "\Init", "Launch55"

'RESTOREORGKE
SetKeyValueString HKEY_LOCAL_MACHINE, "\Init", "Launch55", "hpshell.exe
lngResult = QueryValue(HKEY_LOCAL_MACHINE, "\Init", "Launch55"
MsgBox GetResString(14064) + CStr(lngResult

u can do all this with the registry editor as well and u will c the application will start ur program. please change the "\DIR\SUB\FILENAME.EXTENSION" part 2 ur needs

if u use ppc2003 u will find out this is not working at all. so far i have only 1 simple way 2 do it by just add it in the autostart in the windows directory. (thanks 2 chris tacke) but it has the bad side effect than the use after reset can press the start button 4 a short period and so go back into all the dirty playing stuff of the ppc

if someone has a good idea 2 solve this it would b great.

cheer
-- kurt --
 
Back
Top