Win Service is not accessing desktop application
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have written windows service in C++ using winsvc.h. Registering the exe to run as service. Service runs under "SYSTEM" credentials and it starts at system startup. Using this service I can able to access processes only which are running under "SYSTEM". Is there any property or method related to service in WinSvc.h while creating or starting service, which is used to set the service to access any process running on the desktop. I can set this manually in services.msc for particular service under log on tab in properties. But want to set it programmatically. I tried checking many blogs and googled but there is no clue. Please give me clue. Thanks in advance. Regards, Gtag.