Click here to Skip to main content
15,917,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWin Service is not accessing desktop application Pin
gtag7-Oct-09 19:06
gtag7-Oct-09 19:06 
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.
QuestionBatch File doubt Pin
mohant$.net7-Oct-09 18:35
mohant$.net7-Oct-09 18:35 
AnswerRe: Batch File doubt Pin
sashoalm7-Oct-09 23:34
sashoalm7-Oct-09 23:34 
GeneralRe: Batch File doubt Pin
mohant$.net7-Oct-09 23:50
mohant$.net7-Oct-09 23:50 
GeneralRe: Batch File doubt Pin
sashoalm8-Oct-09 5:50
sashoalm8-Oct-09 5:50 
Questionlearn how to learn Pin
jinjiashan7-Oct-09 17:14
jinjiashan7-Oct-09 17:14 
AnswerRe: Pin
wangningyu7-Oct-09 17:19
wangningyu7-Oct-09 17:19 
JokeRe: learn how to learn Pin
_AnsHUMAN_ 7-Oct-09 19:23
_AnsHUMAN_ 7-Oct-09 19:23 
GeneralRe: learn how to learn Pin
jinjiashan7-Oct-09 20:48
jinjiashan7-Oct-09 20:48 
GeneralRe: learn how to learn Pin
_AnsHUMAN_ 7-Oct-09 22:05
_AnsHUMAN_ 7-Oct-09 22:05 
GeneralRe: learn how to learn Pin
jinjiashan7-Oct-09 22:10
jinjiashan7-Oct-09 22:10 
QuestionCalculate p-value of chisquare test in C Pin
enthusiastic4777-Oct-09 13:33
enthusiastic4777-Oct-09 13:33 
QuestionRe: Calculate p-value of chisquare test in C Pin
CPallini7-Oct-09 20:59
mveCPallini7-Oct-09 20:59 
AnswerRe: Calculate p-value of chisquare test in C Pin
enthusiastic4778-Oct-09 6:47
enthusiastic4778-Oct-09 6:47 
QuestionRe: Calculate p-value of chisquare test in C Pin
CPallini8-Oct-09 10:25
mveCPallini8-Oct-09 10:25 
AnswerRe: Calculate p-value of chisquare test in C Pin
enthusiastic4779-Oct-09 2:24
enthusiastic4779-Oct-09 2:24 
GeneralRe: Calculate p-value of chisquare test in C Pin
CPallini9-Oct-09 12:25
mveCPallini9-Oct-09 12:25 
QuestionHow to change color of menu bar of dialog? Pin
includeh107-Oct-09 10:50
includeh107-Oct-09 10:50 
AnswerRe: How to change color of menu bar of dialog? Pin
«_Superman_»7-Oct-09 13:46
professional«_Superman_»7-Oct-09 13:46 
QuestionUsing FormatMessage function Pin
dipuks7-Oct-09 8:57
dipuks7-Oct-09 8:57 
AnswerRe: Using FormatMessage function Pin
Nemanja Trifunovic7-Oct-09 9:11
Nemanja Trifunovic7-Oct-09 9:11 
GeneralRe: Using FormatMessage function Pin
wangningyu7-Oct-09 17:31
wangningyu7-Oct-09 17:31 
QuestionProducer consumer problem Pin
sandeep80147-Oct-09 8:31
sandeep80147-Oct-09 8:31 
AnswerRe: Producer consumer problem Pin
Maximilien7-Oct-09 9:28
Maximilien7-Oct-09 9:28 
AnswerRe: Producer consumer problem Pin
CPallini7-Oct-09 10:11
mveCPallini7-Oct-09 10:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.