? how can i communicate with user-functions in a service ?
Posted by gutdat
on 09/10/2004 03:42am
situation: a service (works fine, thanks to the demos here) and a Dialog-exe (MFC-Dialog with visualc++6) should communicate each-other. i do not mean service-communication via SMC to stop or start a service, i mean interconnection for dataexchange or send fast information. a kind of PostMessage(..) with lparam to access data directly (but PostMessage() does not work in my service).
Is there a way?
I did it using shared memory
Posted by stbi
on 02/07/2009 08:04am
I successfully used shared memory as described here to communicate between the service and an application:
I only removed the event stuff from the demo code as I didn't need it.
(Sorry for the bad formatting, but this forum seems not to support line breaks.)
can it. where can i find out what they can do and how to fix them?
to fix or debug services
Posted by gutdat
on 09/10/2004 03:30am
i do not find a normal way with debug-tools, so i use normal ofstream-class to write status an results in a file and look them with an editor. additional i use a lot try-and-catch clauses to track down an error. it is a stupid way but works.
i want to create a service in a dll that run under svchost service but i didn't find any docs about this type of service (what function to export,how the dll service comunicate with SCManager ....);
to create a simple service is easy...
Posted by maniaque
on 04/18/2006 02:31pm
If you find any information, please, share it with me! I'm intrested in this question too, very much!
I cannot find any field in the structure that takes
in a desc. for the service. WHen looking
at the services GUI window, it seems that all 3rd party
services (other than Microsoft) has no description.
Any gurus can help???