Autorun application on PPC startup

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all, i need to autorun may application (C# & CF1.0) on my ppc autorun but
i don't want use "HKLM\Init" or "Windows\AutoRun\".

Can i create with service.exe a service that running my C# application in
boot?
 
You can do anything. Tell us *why* the solutions that are always proposed
won't work for you first, so we know why you're trying to do something the
hard way...

Paul T.
 
Can you past me an example of a C++ dll service that run an generic
application (.exe) ?

thanks
 
Oh, sure. There's a sample of a service that does *exactly* what you want
to do. ;-)

Please post the information that I asked for instead and we'll tell you
whether what you're trying to do makes any sense (at a guess, no, it's a
dumb way to accomplish the end result).

Paul T.
 
Why? What's the problem with the two routes you already dismissed? You
can't run managed code as a true service, so you'd have to write one to
launch your app, which (unless you can argue otherwise) is probably a
pointless waste of coding.

-Chris
 
I don't can put a link of my application in \Windowd\Startup...because i
don't want that user can remove it. I have also run my application in the
registry config....but the problem...is this: I my application crash...or if
i kill her process...in the next reboot of my pocket pc she don't RUN, i need
to reboot again
 
So the first will be a problem anywhere. Even if it's a service the user
can remove it. The second is a problem with what you're doing. My bet is
you're not calling SignalStarted.

-Chris
 
Yess... i don't calling SignalStarted because i don't know the hexadecimal
numbers for the module service.exe: I want that my application run as first
after service.exe dependence. Can you help me?...What is the hexadecimal
numbers of service.exe?

Thanks very much
 
Look in the registry! That's not a fixed number that is absolutely fixed.
I can go into your device and change all of the Init key numbers. They
aren't fixed in some way. On one device that I happen to have on my desk,
Services.exe is 60 (decimal).

Paul T.
 
I don't understand what service.exe has to do with anything. You're not
running a service, and when you call SignalStarted you pass in your ID, not
any other ID. If you want to make sure you launch after service.exe, then
make your ID something like 99. You can also look in the registry to see
when everything else is launched.

-Chris
 
Ok, so i put in registry my application such in HKLM\Init\Level99 "myApp.exe"
now, i must to set a dependence? and im my application, after init, i must
be call API SignalStarted()?
 
If you need to have Services.exe run before you, then make your item
dependent on the value associated with Services.exe.

Regardless of what you are dependent on, you always pass the number found on
your command line to SignalStarted().

Paul T.
 
Back
Top