FGenericPlatformProcess::CreateProc

Creates a new process and its primary thread.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformProcess.h

Include

#include "GenericPlatform/GenericPlatformProcess.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformProcess.cpp

Syntax

static FProcHandle CreateProc
(
    const TCHAR * URL,
    const TCHAR * Parms,
    bool bLaunchDetached,
    bool bLaunchHidden,
    bool bLaunchReallyHidden,
    uint32 * OutProcessID,
    int32 PriorityModifier,
    const TCHAR * OptionalWorkingDirectory,
    void * PipeWriteChild,
    void * PipeReadChild
)

Remarks

Creates a new process and its primary thread. The new process runs the specified executable file in the security context of the calling process.

Returns

The process handle for use in other process functions

Parameters

Parameter

Description

URL

executable name

Parms

command line arguments

bLaunchDetached

if true, the new process will have its own window

bLaunchHidden

if true, the new process will be minimized in the task bar

bLaunchReallyHidden

if true, the new process will not have a window or be in the task bar

OutProcessId

if non-NULL, this will be filled in with the ProcessId

PriorityModifier

2 idle, -1 low, 0 normal, 1 high, 2 higher

OptionalWorkingDirectory

Directory to start in when running the program, or NULL to use the current working directory

PipeWrite

Optional HANDLE to pipe for redirecting output

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss