![]() |
| | #1 |
| Registered User Join Date: May 2006
Posts: 1,579
| console mode and service mode My application can be started as both console mode from main function and servide mode from OnStart. My question is, is there any elegant way to detect whether the application is run under console mode or servide mode? Currently, I set a status in main function manually to detect whether it is run under console mode or service mode. Any more elegent solution or built-in API I could use? thanks in advance, George |
| George2 is offline |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with default font in graphical mode | voldemarz | C Programming | 16 | 10-24-2008 01:30 PM |
| Common lang runtime debugging service giving me problems | datainjector | C# Programming | 3 | 08-04-2003 06:03 AM |
| problem with MSVC++ 6's release mode | dirkduck | C++ Programming | 13 | 03-23-2002 03:05 PM |