summaryrefslogtreecommitdiffstats
path: root/src/libs/7zip/win/CPP/Windows/Process.cpp
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2013-05-02 15:28:22 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2013-05-08 13:01:55 +0200
commitd89674f944c419c9473da688993ee69671f2c295 (patch)
tree8422461a5b45d97b6d32dfa8e060e69d600210c9 /src/libs/7zip/win/CPP/Windows/Process.cpp
parent5ed380ebcf8ef1157f651cbdef8393ccac897ee2 (diff)
Reset to only use the basic LZMA SDK (Windows).
Change-Id: I8088cc4775f6c5397991f00512354836d614ea4e Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/libs/7zip/win/CPP/Windows/Process.cpp')
-rw-r--r--src/libs/7zip/win/CPP/Windows/Process.cpp81
1 files changed, 0 insertions, 81 deletions
diff --git a/src/libs/7zip/win/CPP/Windows/Process.cpp b/src/libs/7zip/win/CPP/Windows/Process.cpp
deleted file mode 100644
index 9bcee7d5a..000000000
--- a/src/libs/7zip/win/CPP/Windows/Process.cpp
+++ /dev/null
@@ -1,81 +0,0 @@
-// Process.cpp
-
-#include "StdAfx.h"
-
-#include "../Common/StringConvert.h"
-
-#include "Process.h"
-
-#ifndef _UNICODE
-extern bool g_IsNT;
-#endif
-
-namespace NWindows {
-
-static UString GetQuotedString(const UString &s)
-{
- return UString(L'\"') + s + UString(L'\"');
-}
-
-WRes CProcess::Create(LPCWSTR imageName, const UString &params, LPCWSTR curDir)
-{
- Close();
- const UString params2 =
- #ifndef UNDER_CE
- GetQuotedString(imageName) + L' ' +
- #endif
- params;
- #ifdef UNDER_CE
- curDir = 0;
- #else
- imageName = 0;
- #endif
- PROCESS_INFORMATION pi;
- BOOL result;
- #ifndef _UNICODE
- if (!g_IsNT)
- {
- STARTUPINFOA si;
- si.cb = sizeof(si);
- si.lpReserved = 0;
- si.lpDesktop = 0;
- si.lpTitle = 0;
- si.dwFlags = 0;
- si.cbReserved2 = 0;
- si.lpReserved2 = 0;
-
- CSysString curDirA;
- if (curDir != 0)
- curDirA = GetSystemString(curDir);
- result = ::CreateProcessA(NULL, (LPSTR)(LPCSTR)GetSystemString(params2),
- NULL, NULL, FALSE, 0, NULL, ((curDir != 0) ? (LPCSTR)curDirA: 0), &si, &pi);
- }
- else
- #endif
- {
- STARTUPINFOW si;
- si.cb = sizeof(si);
- si.lpReserved = 0;
- si.lpDesktop = 0;
- si.lpTitle = 0;
- si.dwFlags = 0;
- si.cbReserved2 = 0;
- si.lpReserved2 = 0;
-
- result = CreateProcessW(imageName, (LPWSTR)(LPCWSTR)params2,
- NULL, NULL, FALSE, 0, NULL, (LPWSTR)curDir, &si, &pi);
- }
- if (result == 0)
- return ::GetLastError();
- ::CloseHandle(pi.hThread);
- _handle = pi.hProcess;
- return 0;
-}
-
-WRes MyCreateProcess(LPCWSTR imageName, const UString &params)
-{
- CProcess process;
- return process.Create(imageName, params, 0);
-}
-
-}