How can I tell if I'm a service?
- From: "Bruce." <noone@xxxxxxxxxxx>
- Date: Fri, 26 Oct 2007 20:32:43 -0500
If there is a better newsgroup, please let me know.
I have a Windows GUI (derived from CWinApp) C++ VS 2003 program xyz.exe that
can be started 3 ways:
1) Run at command line
2) Using CreateProcess to start xyz from another foreground process
3) Using CreateProcess to start xyz from a service
Since it is a GUI program, I need to know if it was started from a service
because it then has no user interface. I use that info to suppress calls to
MessageBox, etc.
From my xyz.exe program, how can I tell if xyz.exe was spawned from aservice?
Thanks!
Bruce.
.
- Follow-Ups:
- Re: How can I tell if I'm a service?
- From: Sower
- Re: How can I tell if I'm a service?
- From: coding . hello
- Re: How can I tell if I'm a service?
- From: Tom Walker
- Re: How can I tell if I'm a service?
- From: Kerem Gümrükcü
- Re: How can I tell if I'm a service?
- Prev by Date: Re: trouble decoding managed call stack causing kernel complaint
- Next by Date: Re: How can I tell if I'm a service?
- Previous by thread: Handle Table Offset
- Next by thread: Re: How can I tell if I'm a service?
- Index(es):
Relevant Pages
|