Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Strange service behavior when setting service registry Con..

 
   Soft32 Home -> PDA -> Pocket PC Developer Networking RSS
Next:  localhost, 127.0.0.1 broken again in WM5  
Author Message
tmeese

External


Since: Oct 10, 2005
Posts: 2



(Msg. 1) Posted: Tue Dec 13, 2005 4:22 pm
Post subject: Strange service behavior when setting service registry Context value to 1
Archived from groups: microsoft>public>pocketpc>developer>networking (more info?)

Hello,

I've got an application that I've made into a network service. It runs
fine as a service as long as the Context value is zero. If I set it to
1 (I understand that this loads the service, but does not start it),
the load does not even work and gives an error of 0x57. If I keep the
Context value at zero, I'm able to load and start the service manually,
but I would like the option to have it automatically start based on
Context being 1 or 0, which it seems is what is intended by these
values. BTW, I am setting the Keep registry value to 1.

Any suggestions from the CE networking community would be much
appreciated.

Thanks,

Tim Meese
Back to top
Login to vote
John Spaith [MS]

External


Since: Jul 28, 2004
Posts: 232



(Msg. 2) Posted: Wed Dec 14, 2005 7:44 am
Post subject: Re: Strange service behavior when setting service registry Context value to 1 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

This "Context"=1/SERVICE_INIT_STOPPED is incredibly confusing. I'm sure
you're not the first person to get thrown by this (though you're the first
to complain). I've created a blog post at
http://blogs.msdn.com/cenet/archive/2005/12/14/503768.aspx to discuss in
detail for posterity's sake. It should explain how to get your service into
a stopped mode and why you're seeing this behavior with context=1. The
short answer is don't do that. Sorry for the confusion here.

BTW I'm out over Christmas break tomorrow so I can't answer any further
questions you have until '06.

--
John Spaith
Software Design Engineer, Windows CE
Microsoft Corporation

Check out the new CE Networking Team Blog at http://blogs.msdn.com/cenet/.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.

<tmeese.TakeThisOut@gmail.com> wrote in message
news:1134541323.766064.91430@g43g2000cwa.googlegroups.com...
> Hello,
>
> I've got an application that I've made into a network service. It runs
> fine as a service as long as the Context value is zero. If I set it to
> 1 (I understand that this loads the service, but does not start it),
> the load does not even work and gives an error of 0x57. If I keep the
> Context value at zero, I'm able to load and start the service manually,
> but I would like the option to have it automatically start based on
> Context being 1 or 0, which it seems is what is intended by these
> values. BTW, I am setting the Keep registry value to 1.
>
> Any suggestions from the CE networking community would be much
> appreciated.
>
> Thanks,
>
> Tim Meese
>
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Connection to IIS Service - Hi All How to develop a application in eVc 4.0 which connects to a webservice and get the data returned by it. There...

How to make device.exe load a driver based on registry set.. - Hi all, A PDA we are proramming for provides just one COM port for IRDA and Bluetooth.So we have a control panel app to...

ODBC error on installing Service pack for eVC++. - Hi, I have been trying to install eVC++ 4.0 without success. The Service Pack (SP4) for eVC++ fails to install with a...

Pocket PC 2003, Nokia 6820, GPRS, Bluetooth, VPN over AT&T.. - Greetings all, I have the following system up and running with no problems: Laptop connecting to corporate VPN using ...

setting KEEPALIVE on an HINTERNET - Does anyone know of a way to set the KEEPALIVE option on the socket that is associated with an HINTERNET? For example...

rasdial and baudrate setting - Hi, I'm using PPC2002 and I want to set up a PPP direct connection on COM1 using RASDial and set the baud rate to 576...
       Soft32 Home -> PDA -> Pocket PC Developer Networking All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
  PDA


[ Contact us | Terms of Service/Privacy Policy ]