R
Roger Levy
I want to start a service written as a Win32 .exe (not a driver) at boot time.
I have referred to the XPe MSDN documentation on "service data" and I also found
just one relevant message thread via Google Groups. The message thread, which
was from last February, was inconclusive and some of the information contradicts
MSDN. Some of the people contributing to that thread were Heidi Linda, Jon
Fincher, and "The Real Andy." Unfortunately the thread ends with a request that
the discussion be continued via private mail so potentially useful information
was not shared.
I created a component from my service .exe and set service data according to my
best interpretation of the MSDN documentation. However my service does not
start. I'm particularly unclear about two parameters:
StartType - The SERVICE_AUTO_START type is described in MSDN as "Indicates a
driver or service started on demand, either by the Plug and Play Manager when
the corresponding device is enumerated or by the Service Control Manager in
response to an explicit user demand." Does this mean the service will start
automatically? What is meant by "response to an explicit user demand?" Is
there some other type that will start my service automatically or is there some
other service information involved in auto start?
ServiceType - SERVICE_WIN32_OWN_PROCESS (numeric value 16 - a service that runs
in its own process) seems to most closely fit my service. However in the
message thread Jon Fincher provides information that didn't even include this
type and said "Unless it's a file system driver, use 1" which is described as a
"kernel driver".
I got no response to questions on this topic posted last week and since there
seems to be a real lack of information on the topic, I'm hoping to get some
help.
Roger Levy
I have referred to the XPe MSDN documentation on "service data" and I also found
just one relevant message thread via Google Groups. The message thread, which
was from last February, was inconclusive and some of the information contradicts
MSDN. Some of the people contributing to that thread were Heidi Linda, Jon
Fincher, and "The Real Andy." Unfortunately the thread ends with a request that
the discussion be continued via private mail so potentially useful information
was not shared.
I created a component from my service .exe and set service data according to my
best interpretation of the MSDN documentation. However my service does not
start. I'm particularly unclear about two parameters:
StartType - The SERVICE_AUTO_START type is described in MSDN as "Indicates a
driver or service started on demand, either by the Plug and Play Manager when
the corresponding device is enumerated or by the Service Control Manager in
response to an explicit user demand." Does this mean the service will start
automatically? What is meant by "response to an explicit user demand?" Is
there some other type that will start my service automatically or is there some
other service information involved in auto start?
ServiceType - SERVICE_WIN32_OWN_PROCESS (numeric value 16 - a service that runs
in its own process) seems to most closely fit my service. However in the
message thread Jon Fincher provides information that didn't even include this
type and said "Unless it's a file system driver, use 1" which is described as a
"kernel driver".
I got no response to questions on this topic posted last week and since there
seems to be a real lack of information on the topic, I'm hoping to get some
help.
Roger Levy