OSDN Git Service

Use the reg command to import/export properties
[xkeymacs/xkeymacs.git] / xkeymacsdll / Utils.cpp
index 4636ec6..f21aeec 100644 (file)
@@ -676,11 +676,15 @@ BOOL CUtils::IsBorlandCppBuilder()
        return AppName::Match(_T("bcb.exe"));\r
 }\r
 \r
-BOOL CUtils::Run(CString szCommandLine, BOOL isWait)\r
+BOOL CUtils::Run(CString szCommandLine, BOOL isWait, BOOL isHide)\r
 {\r
        STARTUPINFO si;\r
        ZeroMemory(&si, sizeof(si));\r
        si.cb = sizeof(si);\r
+       if (isHide) {\r
+               si.dwFlags = STARTF_USESHOWWINDOW;\r
+               si.wShowWindow = SW_HIDE;\r
+       }\r
 \r
        PROCESS_INFORMATION pi;\r
        ZeroMemory(&pi, sizeof(pi));\r