Catching PostMessage from a service

  • Thread starter Stephan Steiner
  • Start date
S

Stephan Steiner

Hi

I'm trying to launch a native application from a C# service. Searching
the various dotnet groups on Microsoft I found that there's a solution
for windows forms:
http://groups.google.com/group/micr...public.dotnet.*&rnum=1&hl=en#c2da3bf400594687

but I'm wondering if that can be translated to a service somehow. The
thing is, the only way the application (Nortel's VPN client) returns
feedback is via PostMessage, or GUI windows. The latter is completely
useless since this is a service that's supposed to initiate a VPN
connection and report back if the connection succeeded or failed, and
the service is to run even if there's no user logged in yet. Other
clients return the result on the commandline (which is how we
integrated 3 other VPN clients and had this solution up and running for
close to two years now).

The service is running under the system account so there's no desktop
interaction be default, and I cannot assume a user is logged in either.

So basically I'm wondering if I have to write a dummy form app that's
just there to receive this callback and then return something to my
service via what exit code/commandline/ipc or if there's a more direct
way.

Regards
Stephan
 
M

Mattias Sjögren

So basically I'm wondering if I have to write a dummy form app that's
just there to receive this callback and then return something to my
service via what exit code/commandline/ipc or if there's a more direct
way.

Sounds like the best solution to me.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top