Avoid potential negative array index access to cached text.
[LibreOffice.git] / include / comphelper / windowsStart.hxx
bloba727733d92a3f3c3bba2bd9b5ab80a19ba5c3c14
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
9 #ifdef _WIN32
10 #if !defined WIN32_LEAN_AND_MEAN
11 # define WIN32_LEAN_AND_MEAN
12 #endif
13 #include <windows.h>
14 #endif
16 /**
17 * Launch a child process with the specified arguments.
18 * @note argv[0] is ignored
20 BOOL
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);
27 #endif