LibreOffice Module comphelper (master) 1
windowsStart.hxx
Go to the documentation of this file.
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/. */
5
6#ifndef INCLUDED_COMPHELPER_WINSTART_HXX
7#define INCLUDED_COMPHELPER_WINSTART_HXX
8
9#ifdef _WIN32
10#if !defined WIN32_LEAN_AND_MEAN
11# define WIN32_LEAN_AND_MEAN
12#endif
13#include <windows.h>
14#endif
15
20BOOL
21WinLaunchChild(const wchar_t *exePath, int argc,
22 wchar_t **argv, HANDLE userToken = nullptr,
23 HANDLE *hProcess = nullptr);
24
25wchar_t* MakeCommandLine(int argc, wchar_t **argv);
26
27#endif
const wchar_t *typedef BOOL
wchar_t * MakeCommandLine(int argc, wchar_t **argv)
Creates a command line from a list of arguments.
BOOL WinLaunchChild(const wchar_t *exePath, int argc, wchar_t **argv, HANDLE userToken=nullptr, HANDLE *hProcess=nullptr)
Launch a child process with the specified arguments.