LibreOffice Module comphelper (master) 1
Functions
windowsStart.hxx File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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. More...
 
wchar_t * MakeCommandLine (int argc, wchar_t **argv)
 Creates a command line from a list of arguments. More...
 

Function Documentation

◆ MakeCommandLine()

wchar_t * MakeCommandLine ( int  argc,
wchar_t **  argv 
)

Creates a command line from a list of arguments.

The returned string is allocated with "malloc" and should be "free"d.

argv is UTF8

Definition at line 133 of file windows_process.cxx.

References ArgStrLen(), ArgToString(), and i.

Referenced by WinLaunchChild().

◆ WinLaunchChild()

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.

Note
argv[0] is ignored

Definition at line 167 of file windows_process.cxx.

References FALSE, MakeCommandLine(), and TRUE.