Re: How to create service for “Win XP Embedded" based device??
- From: Rahul P. Shukla <RahulPShukla@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 3 Oct 2007 22:26:01 -0700
Hi,
Thanks a lot ...
I could run my excutable under "Custom Actions" -> "Install" folder. i just
add my .exe. and after installation, it executed.
-rahul
"voidcoder" wrote:
.
> 1. Is it necessary to run the service as an executable
> file (can’t I use dll instead)?
Yes, services run as executables. And no, you can't use a
DLL instead. However you can build a dummy wrapper service
which is loading your DLL and passing control to it. or use
more exotic solution with rundll32 (not service) ...
> 2. How can I communicate with my service? I have to pass some
> data from an external application to my service while its running?
> How can I do that?
You are opening the service using OpenService() and
sending control codes to it using ControlService().
There is no standard way to pass data, it is up to
you to implement some sort of IPC communication.
You can use sockets, file mappings, mail slots,
named pipes etc ...
> 3. How can I run a small executable file while running an installation?
> Means, where should I define an executable file in the setup project, so that
> as user runs the setup file, that specified executable will run
> automatically?
You just add a new action in "Custom Action"
editor to one of the steps (eg. "install" step)
and select which executable to run...
4. It is Windows Embedded CE (!= Windows XP Embedded)
newsgroup.
- Oleg
Rahul P. Shukla wrote:
Hi,
I am creating a service for my “Win XP Embedded” based device.
I am using Win32 applications for that (using VS 2005, VC++). I am having
some queries regarding this.
1. Is it necessary to run the service as an executable file (can’t I use dll
instead)?
2. How can I communicate with my service? I have to pass some data from an
external application to my service while its running? How can I do that?
3. How can I run a small executable file while running an installation?
Means, where should I define an executable file in the setup project, so that
as user runs the setup file, that specified executable will run
automatically?
Please let me know, if you know anything about this…
It’s urgent …
Thanks a lot…
- References:
- How to create service for “Win XP Embedded" based device??
- From: Rahul P. Shukla
- Re: How to create service for “Win XP Embedded" based device??
- From: voidcoder
- How to create service for “Win XP Embedded" based device??
- Prev by Date: WZC : Exception in wzcsvc.dll during a call to WZCSetInterfaceEx
- Next by Date: Re: [win CE 6.0]- create link on desktop
- Previous by thread: Re: How to create service for “Win XP Embedded" based device??
- Next by thread: [win CE 6.0]- create link on desktop
- Index(es):
Relevant Pages
|