[Opalvoip-svn] SF.net SVN: opalvoip: [18752] ptlib/trunk
Brought to you by:
csoutheren,
rjongbloed
From: <rjo...@us...> - 2007-10-23 05:44:00
|
Revision: 18752 http://opalvoip.svn.sourceforge.net/opalvoip/?rev=18752&view=rev Author: rjongbloed Date: 2007-10-22 22:44:04 -0700 (Mon, 22 Oct 2007) Log Message: ----------- Applied OpenH323 patch 1703663 Hide control window in service simulation mode. Thanks Fabrizio Ammollo (fammollo) Modified Paths: -------------- ptlib/trunk/include/ptlib/msos/ptlib/svcproc.h ptlib/trunk/src/ptlib/msos/svcproc.cxx Modified: ptlib/trunk/include/ptlib/msos/ptlib/svcproc.h =================================================================== --- ptlib/trunk/include/ptlib/msos/ptlib/svcproc.h 2007-10-23 05:36:42 UTC (rev 18751) +++ ptlib/trunk/include/ptlib/msos/ptlib/svcproc.h 2007-10-23 05:44:04 UTC (rev 18752) @@ -142,6 +142,7 @@ protected: PCaselessString systemLogFileName; + BOOL debugHidden; /// Flag to indicate service is run in simulation mode without showing the control window private: static void __stdcall StaticMainEntry(DWORD argc, LPTSTR * argv); Modified: ptlib/trunk/src/ptlib/msos/svcproc.cxx =================================================================== --- ptlib/trunk/src/ptlib/msos/svcproc.cxx 2007-10-23 05:36:42 UTC (rev 18751) +++ ptlib/trunk/src/ptlib/msos/svcproc.cxx 2007-10-23 05:44:04 UTC (rev 18752) @@ -708,6 +708,9 @@ debugMode = arguments.GetCount() > 0 && (strcasecmp(arguments[0], "Debug") == 0 || strcasecmp(arguments[0], "foreground") == 0); + debugHidden = arguments.GetCount() > 0 && strcasecmp(arguments[0], "DebugHidden") == 0; + if (debugHidden) + debugMode=TRUE; currentLogLevel = debugMode ? PSystemLog::Info : PSystemLog::Warning; if (!debugMode && arguments.GetCount() > 0) { @@ -1269,7 +1272,7 @@ } - if (!IsWindowVisible(controlWindow)) + if (!IsWindowVisible(controlWindow) && !debugHidden) ShowWindow(controlWindow, SW_SHOWDEFAULT); int len = strlen(out); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |