From 5875fd0313cb0aeb7e63d5ea9455f83ea18787b5 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 7 Aug 2017 15:35:30 +0200 Subject: updater: move the windows process starting code to comphelper Change-Id: I1a499f57d01ee28afdb2c4f85dc976f2e6837dfd Reviewed-on: https://gerrit.libreoffice.org/40837 Tested-by: Jenkins Reviewed-by: Markus Mohrhard --- include/comphelper/windowsStart.hxx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/comphelper/windowsStart.hxx (limited to 'include') 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 +#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 -- cgit