-
June 23rd, 2009, 01:51 AM
#1
Running exe as service in windows server 2008
I want to run my exe as service in windows server 2008. I created my exe by using vc++ 2008. From vista, windows have isolated session 0 from user session. I want my service to be interactive. I am able to run my exe as service in XP but it is not working Server 2008.
Please give me your valuable suggestion.
-
June 23rd, 2009, 09:46 AM
#2
Re: Running exe as service in windows server 2008
You can use CreateProcessAsUser to run an exe from within a service.
-
June 24th, 2009, 01:28 AM
#3
Re: Running exe as service in windows server 2008
Thanks for the reply...
I tried CreateProcessAsUser but still it is not invoking my exe.
I tried several other options like obtaining token by using WTSQueryUserToken for sessin obtained with WTSGetActiveConsoleSessionId and using this token with CreateProcessAsUser but still I am help less.
I am ready to buy software available in market which can invoke my exe as service on windows server 2008. If you people know any such software then pls recommend it.
-
June 24th, 2009, 03:50 AM
#4
Re: Running exe as service in windows server 2008
what is the kind of service you want to create?
their are lot of difference between service and an EXE.
you want to run the service as terminal service?
-
July 5th, 2009, 02:43 PM
#5
Re: Running exe as service in windows server 2008
Originally Posted by dondany007
I want to run my exe as service in windows server 2008. I created my exe by using vc++ 2008. From vista, windows have isolated session 0 from user session. I want my service to be interactive. I am able to run my exe as service in XP but it is not working Server 2008.
Since the very beginning of Windows NT family services themselves were recommended to be non-interacive. All further development of the concept (like session 0 isolation) only strengthened the approach: the interactive service application now must be split to secured executive part (service) and unsecured user-session UI ("face"), that communicate to each other by means of some IPC (pipes, mailslots, signals, shared memory, sockets, etc.) or a combination of them.
Inevitable consequence: an interactive service application must be (re)designed appropriately.
Please give me your valuable suggestion.
Not sure about the value, but the suggestion is to obey the rules.
Best regards,
Igor
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|