K
Kath
Hi,
I am writing an application for the XDA II (PPC 2003), and I'd like my
application to automatically start up when the device soft resets.
I've tried this in a couple of ways, but haven't yet got a solution.
I can achieve it by putting a shortcut in the Windows/StartUp folder,
but this isn't enough because 1) it doesn't give the user a chance to
enter a PIN to activate the phone, which is needed because my app uses
GPRS, and 2) the user can still access other programs when the app
closes.
I've read about using the "/init" in the registry, and tried adding a
launch value, but this didn't make my app run on soft reset. I'm using
the opennetcf registry component to set the registry:
myRegLaunch = OpenNETCF.Win32.Registry.LocalMachine.CreateSubKey("\init")
myRegLaunch.SetValue("Launch150","\Program_Files\Testing\Final38.exe")
I set the launch 'number' to 150, as the highest current number is
149, and I think I need it after the connmgr (which is 70) because my
app uses GPRS. I have read that in PPC 2003 you have to launch your
app after shell32, which is launch50, so that should be ok.
I'm obviously missing something, but I'm not sure what. It may be
because I haven't added a Depend value for my app, which I haven't
done because I can't see how to work out the correct hex value. I
can't find any information on how or what to set the value to (i.e. so
it depends on the other launches). Does anyone know how to work out
and set these hex values?
Also, am I correct in thinking I don't need to use the SignalStarted
API in my app, because it has no dependencies?
Assuming I can get this to work, so my app starts automatically on
soft reset (and it is full screen, so the user can't access the Start
menu), is it the norm to keep the app running indefinately? If I let
it be closed, then this would reveal the Start menu etc.
Lots of questions, I know! Any help/ideas would be greatly
appreciated!
Thanks,
Kath
I am writing an application for the XDA II (PPC 2003), and I'd like my
application to automatically start up when the device soft resets.
I've tried this in a couple of ways, but haven't yet got a solution.
I can achieve it by putting a shortcut in the Windows/StartUp folder,
but this isn't enough because 1) it doesn't give the user a chance to
enter a PIN to activate the phone, which is needed because my app uses
GPRS, and 2) the user can still access other programs when the app
closes.
I've read about using the "/init" in the registry, and tried adding a
launch value, but this didn't make my app run on soft reset. I'm using
the opennetcf registry component to set the registry:
myRegLaunch = OpenNETCF.Win32.Registry.LocalMachine.CreateSubKey("\init")
myRegLaunch.SetValue("Launch150","\Program_Files\Testing\Final38.exe")
I set the launch 'number' to 150, as the highest current number is
149, and I think I need it after the connmgr (which is 70) because my
app uses GPRS. I have read that in PPC 2003 you have to launch your
app after shell32, which is launch50, so that should be ok.
I'm obviously missing something, but I'm not sure what. It may be
because I haven't added a Depend value for my app, which I haven't
done because I can't see how to work out the correct hex value. I
can't find any information on how or what to set the value to (i.e. so
it depends on the other launches). Does anyone know how to work out
and set these hex values?
Also, am I correct in thinking I don't need to use the SignalStarted
API in my app, because it has no dependencies?
Assuming I can get this to work, so my app starts automatically on
soft reset (and it is full screen, so the user can't access the Start
menu), is it the norm to keep the app running indefinately? If I let
it be closed, then this would reveal the Start menu etc.
Lots of questions, I know! Any help/ideas would be greatly
appreciated!
Thanks,
Kath