summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-07 15:35:30 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-08 07:07:21 +0200
commit5875fd0313cb0aeb7e63d5ea9455f83ea18787b5 (patch)
tree1e7ed70496f073d88bbaba3789a8e1160cd8f790 /include/comphelper
parent9d184e2cc9a9a78a61ae9b91a66e1153f778d9a4 (diff)
updater: move the windows process starting code to comphelper
Change-Id: I1a499f57d01ee28afdb2c4f85dc976f2e6837dfd Reviewed-on: https://gerrit.libreoffice.org/40837 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/windowsStart.hxx26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/comphelper/windowsStart.hxx b/include/comphelper/windowsStart.hxx
new file mode 100644
index 000000000000..ce66ef933b68
--- /dev/null
+++ b/include/comphelper/windowsStart.hxx
@@ -0,0 +1,26 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef INCLUDED_COMPHELPER_WINSTART_HXX
+#define INCLUDED_COMPHELPER_WINSTART_HXX
+
+#ifdef _WIN32
+#include <windows.h>
+#endif
+
+
+BOOL
+WinLaunchChild(const wchar_t *exePath, int argc,
+ wchar_t **argv, HANDLE userToken = nullptr,
+ HANDLE *hProcess = nullptr);
+
+BOOL
+WinLaunchChild(const wchar_t *exePath, int argc,
+ char **argv, HANDLE userToken = nullptr,
+ HANDLE *hProcess = nullptr);
+
+wchar_t* MakeCommandLine(int argc, WCHAR **argv);
+
+#endif