1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef INCLUDED_COMPHELPER_WINSTART_HXX
7 #define INCLUDED_COMPHELPER_WINSTART_HXX
10 #if !defined WIN32_LEAN_AND_MEAN
11 # define WIN32_LEAN_AND_MEAN
17 * Launch a child process with the specified arguments.
18 * @note argv[0] is ignored
21 WinLaunchChild(const wchar_t *exePath
, int argc
,
22 wchar_t **argv
, HANDLE userToken
= nullptr,
23 HANDLE
*hProcess
= nullptr);
25 wchar_t* MakeCommandLine(int argc
, wchar_t **argv
);