I want CE to automatically run my application when it
boots up. So I added the following in project.reg:

[HKEY_LOCAL_MACHINE\init]
"Launch70"="\\Storage Card\\myapp.exe"
"Depend70"=hex:14,00, 1e,00, 3C,00

where 14,00=device.exe, 1e,00=gwes.exe, and
3C,00=services.exe

My app window appears, but then I get an error message
box "70 was not found". 70 is related to the launch
number because if I change the launch number to 65, the
number in the message changes to 65.

The app runs fine if I double-click it after CE has fully
booted.

Any help is greatly appreciated.

VF

Re: Automatically Running CE App at Boot by Paul

Paul
Mon Oct 20 15:38:26 CDT 2003

What is your application expecting on its command line? It's going to get
the launch number when it's started from an Init registry key...

Paul T.

"VF" <anonymous@discussions.microsoft.com> wrote in message
news:047201c39744$c4467cf0$a101280a@phx.gbl...
> I want CE to automatically run my application when it
> boots up. So I added the following in project.reg:
>
> [HKEY_LOCAL_MACHINE\init]
> "Launch70"="\\Storage Card\\myapp.exe"
> "Depend70"=hex:14,00, 1e,00, 3C,00
>
> where 14,00=device.exe, 1e,00=gwes.exe, and
> 3C,00=services.exe
>
> My app window appears, but then I get an error message
> box "70 was not found". 70 is related to the launch
> number because if I change the launch number to 65, the
> number in the message changes to 65.
>
> The app runs fine if I double-click it after CE has fully
> booted.
>
> Any help is greatly appreciated.
>
> VF



Re: Automatically Running CE App at Boot by Marcus

Marcus
Tue Oct 21 01:23:25 CDT 2003

Well, to my knowledge, you cannot start an application in the INIT key if it
resides on the Storage Card. You'll have to either build your application
into the CE image, or create another application that waits for the file
system (and storage card driver) and then launches your desired application.

Maybe it is possible though to start it if you are sure the driver is
available. I think there was a very recent post regarding this in this
newsgroup, so maybe you should search this group on Google groups to see if
there are any results. I'd sure like to know for sure that it is not
possible to launch applications this way. I to need to do it, but haven't
started this task yet, only read about it in previous posts. I´d appreciate
if you post your findings on this subject.

Regards

/Marcus



"Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument.com> skrev i meddelandet
news:OClhbo0lDHA.3316@tk2msftngp13.phx.gbl...
> What is your application expecting on its command line? It's going to get
> the launch number when it's started from an Init registry key...
>
> Paul T.
>
> "VF" <anonymous@discussions.microsoft.com> wrote in message
> news:047201c39744$c4467cf0$a101280a@phx.gbl...
> > I want CE to automatically run my application when it
> > boots up. So I added the following in project.reg:
> >
> > [HKEY_LOCAL_MACHINE\init]
> > "Launch70"="\\Storage Card\\myapp.exe"
> > "Depend70"=hex:14,00, 1e,00, 3C,00
> >
> > where 14,00=device.exe, 1e,00=gwes.exe, and
> > 3C,00=services.exe
> >
> > My app window appears, but then I get an error message
> > box "70 was not found". 70 is related to the launch
> > number because if I change the launch number to 65, the
> > number in the message changes to 65.
> >
> > The app runs fine if I double-click it after CE has fully
> > booted.
> >
> > Any help is greatly appreciated.
> >
> > VF
>
>



Re: Automatically Running CE App at Boot by Ten

Ten
Tue Oct 21 07:52:16 CDT 2003

Is there any equivalent to "DependXX"=hex:xyxyxyxyxy for device drivers?

"Marcus N" <nisse_75NOPSAM@yahooNOSPAM.com> wrote in message
news:uAUiXv5lDHA.2500@TK2MSFTNGP10.phx.gbl...
> Well, to my knowledge, you cannot start an application in the INIT key if
it
> resides on the Storage Card. You'll have to either build your application
> into the CE image, or create another application that waits for the file
> system (and storage card driver) and then launches your desired
application.
>
> Maybe it is possible though to start it if you are sure the driver is
> available. I think there was a very recent post regarding this in this
> newsgroup, so maybe you should search this group on Google groups to see
if
> there are any results. I'd sure like to know for sure that it is not
> possible to launch applications this way. I to need to do it, but haven't
> started this task yet, only read about it in previous posts. I´d
appreciate
> if you post your findings on this subject.
>
> Regards
>
> /Marcus
>
>
>
> "Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument.com> skrev i meddelandet
> news:OClhbo0lDHA.3316@tk2msftngp13.phx.gbl...
> > What is your application expecting on its command line? It's going to
get
> > the launch number when it's started from an Init registry key...
> >
> > Paul T.
> >
> > "VF" <anonymous@discussions.microsoft.com> wrote in message
> > news:047201c39744$c4467cf0$a101280a@phx.gbl...
> > > I want CE to automatically run my application when it
> > > boots up. So I added the following in project.reg:
> > >
> > > [HKEY_LOCAL_MACHINE\init]
> > > "Launch70"="\\Storage Card\\myapp.exe"
> > > "Depend70"=hex:14,00, 1e,00, 3C,00
> > >
> > > where 14,00=device.exe, 1e,00=gwes.exe, and
> > > 3C,00=services.exe
> > >
> > > My app window appears, but then I get an error message
> > > box "70 was not found". 70 is related to the launch
> > > number because if I change the launch number to 65, the
> > > number in the message changes to 65.
> > >
> > > The app runs fine if I double-click it after CE has fully
> > > booted.
> > >
> > > Any help is greatly appreciated.
> > >
> > > VF
> >
> >
>
>



Re: Automatically Running CE App at Boot by Yannick

Yannick
Tue Oct 21 11:49:41 CDT 2003

CE gives the Launch/Depend number in command line to the application
launched so that the application could handle the InitNotification to the
system which allows dependencies management.

If the command line is necessary for you, you'll have to handle this
parameter.
--
----------------------------------------------------------------
Yannick Chamming's
ADESET
Windows Embedded Manager
ychammings_AT_adeset_DOT_com>
http://www.adeset.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------

"VF" <anonymous@discussions.microsoft.com> wrote in message
news:047201c39744$c4467cf0$a101280a@phx.gbl...
> I want CE to automatically run my application when it
> boots up. So I added the following in project.reg:
>
> [HKEY_LOCAL_MACHINE\init]
> "Launch70"="\\Storage Card\\myapp.exe"
> "Depend70"=hex:14,00, 1e,00, 3C,00
>
> where 14,00=device.exe, 1e,00=gwes.exe, and
> 3C,00=services.exe
>
> My app window appears, but then I get an error message
> box "70 was not found". 70 is related to the launch
> number because if I change the launch number to 65, the
> number in the message changes to 65.
>
> The app runs fine if I double-click it after CE has fully
> booted.
>
> Any help is greatly appreciated.
>
> VF



Re: Automatically Running CE App at Boot by sloh

sloh
Thu Oct 23 10:10:47 CDT 2003

The init sequence doesn't have any way to wait for a driver. I can think
of ways to guarantee that "\Storage Card" is available but they're all
pretty ugly, eg. write an application that just waits for "\storage card"
and then calls SignalStarted(), put that application into the init sequence
before your app, and make your app depend on that app. That way your app
won't get invoked until "\Storage card" is ready. Of course, how would
that other app know when "\Storage Card" is ready? Besides polling, the
only thing I can think of right now is to write your own file system filter
that sets a named event or something. Not very pretty.

I actually think that this problem, however, is due to the fact that when
an app is in the init sequence, it is passed its launch #. I think the "70
not found" message is being printed by the app; nothing in the OS prints
that message. You need to make sure that any app you add to the init
sequence is specifically written to be there; filesys.exe will be waiting
for the app to call SignalStarted().

Sue
sloh@microsoft.com (remove "online" from reply-to address)
_____________________________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
_____________________________________________________________
Windows Embedded FAQ
(http://www.microsoft.com/windows/embedded/faq/default.asp)