How can I configure my windows service in the code to access the desktop?
Posted
by Pankaj
on Stack Overflow
See other posts from Stack Overflow
or by Pankaj
Published on 2009-12-22T10:39:49Z
Indexed on
2010/03/28
21:53 UTC
Read the original article
Hit count: 229
I have created an windows service. I want to open some windows based application from this service.
But my windows service is unable to start desktop applications. To enable the access I had to do the following steps:
Opened the administrative tool "Services"
Right clicked on my service and had to select "properties"
Then in the "Log On" tab, selected "Allow service to interact with desktop".
After that my service can open desired windows based processes.
Can I configure my windows service in the code (C#) to access the desktop so that I won't have to change the access permission manually after installation?
© Stack Overflow or respective owner