Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/GenericPlatform
Inheritance Hierarchy
- FGenericPlatformProcess
- FUnixPlatformProcess
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformProcess.h |
| Include | #include "GenericPlatform/GenericPlatformProcess.h" |
Syntax
struct FGenericPlatformProcess
Remarks
Generic implementation for most platforms, these tend to be unused and unimplemented
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddDllDirectory
(
const TCHAR* Directory |
Adds a directory to search in when resolving implicitly loaded or filename-only DLLs. | |
| const TCHAR * | Get application settings directory. NOTE: Only one return value is valid at a time! | ||
| const TCHAR * | BaseDir () |
Get startup directory. NOTE: Only one return value is valid at a time! | |
| bool | CanLaunchURL
(
const TCHAR* URL |
Checks if the platform can launch a uniform resource locator (i.e. http://www.epicgames.com/unreal). | |
| void | Clean the shader working directory.Clean the shader working directory | ||
| void | ClosePipe
(
void* ReadPipe, |
Closes an anonymous pipe. | |
| void | CloseProc
(
FProcHandle& ProcessHandle |
Cleans up FProcHandle after we're done with it. | |
| const TCHAR * | ComputerName () |
Get computer name. NOTE: Only one return value is valid at a time! | |
| void | ConditionalSleep
(
TFunctionRef< bool()> Condition, |
Sleep thread until condition is satisfied. | |
| bool | CreatePipe
(
void*& ReadPipe, |
Creates a writable anonymous pipe. | |
| FProcHandle | Creates a new process and its primary thread, with separate std pipes. | ||
| FProcHandle | Creates a new process and its primary thread. | ||
| FRunnableThread * | Creates the platform-specific runnable thread. | ||
| FEvent * | CreateSynchEvent
(
bool bIsManualReset |
Creates a new event. | |
| bool | Daemonize () |
Makes process run as a system service (daemon), i.e. detaches it from whatever user session it was initially run from. | |
| bool | DeleteInterprocessSynchObject
(
FSemaphore* Object |
Deletes an interprocess synchronization object. | |
| void | DumpThreadInfo
(
const TCHAR* MarkerName |
Output information about the currently active thread | |
| bool | ExecElevatedProcess
(
const TCHAR* URL, |
Executes a process as administrator, requesting elevation as necessary. | |
| bool | Executes a process, returning the return code, stdout, and stderr. | ||
| const TCHAR * | ExecutableName
(
bool bRemoveExtension |
Return the name of the currently running executable | |
| const TCHAR * | Return the path to the currently running executable | ||
| void | ExploreFolder
(
const TCHAR* FilePath |
Attempt to "explore" the folder specified by the provided file path | |
| void | Deletes all the recycled sync events contained by the pools | ||
| void | FreeDllHandle
(
void* DllHandle |
Free a DLL. | |
| FString | GenerateApplicationPath
(
const FString& AppName, |
Generates the path to the specified application or game. | |
| bool | GetApplicationMemoryUsage
(
uint32 ProcessId, |
Outputs the virtual memory usage, of the process with the specified PID | |
| FString | GetApplicationName
(
uint32 ProcessId |
Returns the Name of process given by the PID. Returns Empty string "" if PID not found. | |
| FString | GetApplicationSettingsDir
(
const ApplicationSettingsContext& Settings |
Get application settings directory for a given context. | |
| const TCHAR * | Used only by platforms with DLLs, this gives the subdirectory from binaries to find the executables | ||
| uint32 | Retrieves the current hardware CPU core | ||
| uint32 | Retrieves the ProcessId of this process. | ||
| FString | Get the current working directory (only really makes sense on desktop platforms) | ||
| ENamedThreads::Type | Specifies the thread to use for UObject reference collection | ||
| void | GetDllDirectories
(
TArray< FString >& OutDllDirectories |
Get the list of registered directories to search in when resolving implicitly loaded or filename-only DLLs. | |
| void * | GetDllExport
(
void* DllHandle, |
Lookup the address of a DLL function. | |
| void * | GetDllHandle
(
const TCHAR* Filename |
Load a DLL. | |
| FString | Retrieves the platform-specific bundle identifier or package name of the game | ||
| const TCHAR * | Return the extension of dynamic library | ||
| const TCHAR * | Return the prefix of dynamic library (e.g. lib) | ||
| const FString | Used only by platforms with DLLs, this gives the full path to the main directory containing modules | ||
| bool | GetProcReturnCode
(
FProcHandle& ProcHandle, |
Retrieves the termination status of the specified process. | |
| uint32 | GetStackSize () |
Get the active stack size for the currently running thread | |
| FEvent * | GetSynchEventFromPool
(
bool bIsManualReset |
Gets an event from the pool or creates a new one if necessary. | |
| bool | IsApplicationRunning
(
const TCHAR* ProcName |
Returns true if the specified application is running | |
| bool | IsApplicationRunning
(
uint32 ProcessId |
Returns true if the specified application is running | |
| bool | Checks if we're the first instance. | ||
| bool | IsProcRunning
(
FProcHandle& ProcessHandle |
Returns true if the specified process is running | |
| bool | LaunchFileInDefaultExternalApplication
(
const TCHAR* FileName, |
Attempt to launch the provided file name in its default external application. | |
| void | Launch a uniform resource locator (i.e. http://www.epicgames.com/unreal). | ||
| bool | LaunchURLFiltered
(
const TCHAR* URL, |
Launch a uniform resource locator (i.e. http://www.epicgames.com/unreal). | |
| void | ModifyThreadAssignmentForUObjectReferenceCollector
(
int32& NumThreads, |
Allows a platform to override the threading configuration for reference collection | |
| FSemaphore * | NewInterprocessSynchObject
(
const TCHAR* Name, |
Creates or opens an interprocess synchronization object. | |
| FSemaphore * | NewInterprocessSynchObject
(
const FString& Name, |
Creates or opens an interprocess synchronization object. | |
| FProcHandle | OpenProcess
(
uint32 ProcessID |
Opens an existing process. | |
| void | PopDllDirectory
(
const TCHAR* Directory |
Unsets a directory to look for DLL files. | |
| void | PushDllDirectory
(
const TCHAR* Directory |
Set a directory to look for DLL files. NEEDS to have a Pop call when complete | |
| FString | ReadPipe
(
void* ReadPipe |
Reads all pending data from an anonymous pipe, such as STDOUT or STDERROR of a process. | |
| bool | ReadPipeToArray
(
void* ReadPipe, |
Reads all pending data from an anonymous pipe, such as STDOUT or STDERROR of a process. | |
| void | ReturnSynchEventToPool
(
FEvent* Event |
Returns an event to the pool. | |
| void | |||
| bool | SetProcessLimits
(
EProcessResource::Type Resource, |
Sets the process limits. | |
| void | Enables Real Time Mode on the current thread. | ||
| void | SetShaderDir
(
const TCHAR* Where |
||
| void | SetThreadAffinityMask
(
uint64 AffinityMask |
Change the thread processor affinity | |
| void | SetThreadName
(
const TCHAR* ThreadName |
Helper function to set thread name of the current thread. | |
| void | SetThreadPriority
(
EThreadPriority NewPriority |
Change the thread processor priority | |
| void | Allow the platform to do anything it needs for audio thread | ||
| void | Allow the platform to do anything it needs for game thread | ||
| void | Allow the platform to do anything it needs for render thread | ||
| void | Allow the platform to do anything it needs for the RHI thread | ||
| const TCHAR * | ShaderDir () |
||
| const FString | Get the shader working directory.Get the shader working directory | ||
| bool | Content saved to the game or engine directories should be rerouted to user directories instead | ||
| bool | Force skip calling FThreadStats::WaitForStats() | ||
| void | Sleep
(
float Seconds |
Sleep this thread for Seconds. | |
| void | Sleep this thread infinitely. | ||
| void | SleepNoStats
(
float Seconds |
Sleep this thread for Seconds. | |
| bool | Gets whether this platform can use multiple threads. | ||
| void | TearDown () |
Tears down allocated process resources. | |
| void | Allow the platform to tear down the audio thread | ||
| void | TerminateProc
(
FProcHandle& ProcessHandle, |
Terminates a process | |
| void | TerminateProcTreeWithPredicate
(
FProcHandle& ProcessHandle, |
Terminates a process tree | |
| bool | TryGetMemoryUsage
(
FProcHandle& ProcessHandle, |
Queries the memory usage of the process. Returns whether the operation is supported and succeeded. | |
| const TCHAR * | UserDir () |
Get user directory. NOTE: Only one return value is valid at a time! | |
| const TCHAR * | UserHomeDir () |
Get the user home directory. NOTE: Only one return value is valid at a time! | |
| const TCHAR * | UserName
(
bool bOnlyAlphaNumeric |
Get user name. NOTE: Only one return value is valid at a time! | |
| const TCHAR * | Get the user settings directory. NOTE: Only one return value is valid at a time! | ||
| const TCHAR * | UserTempDir () |
Get the user temporary directory. NOTE: Only one return value is valid at a time! | |
| EWaitAndForkResult | WaitAndFork () |
Waits for process signals and forks child processes. | |
| void | WaitForProc
(
FProcHandle& ProcessHandle |
Waits for a process to stop | |
| bool | Sends the message to process through pipe | ||
| bool | Sends data to process through pipe | ||
| void | Yield () |
Tells the processor to pause for implementation-specific amount of time. | |
| void | YieldCycles
(
uint64 Cycles |
Tells the processor to pause for at least the amount of cycles given. | |
| void | YieldThread () |
Yield this thread so another may run for a while. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| ApplicationSettingsContext | |||
| FSemaphore | Generic representation of a interprocess semaphore |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EWaitAndForkResult |