![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Platform.h>
Inheritance diagram for BuildPatchServices::IPlatform:Public Member Functions | |
| virtual | ~IPlatform () |
| virtual bool | ExecElevatedProcess (const TCHAR *URL, const TCHAR *Params, int32 *OutReturnCode)=0 |
| virtual void | Sleep (float Seconds)=0 |
| virtual uint32 | GetLastError ()=0 |
Class for wrapping platform functionality. We implement this using a template class, so that the class with platform dependency can easily be provided an implementation, and can still be nicely tested. Under normal circumstances, use FPlatform, which is a typedef below, and/or FPlatformFactory::Create.
|
inlinevirtual |
|
pure virtual |
Executes a process as administrator, requesting elevation as necessary. This call blocks until the process has returned.
| URL | IN The URL of the process to execute, typically the path to an executable file |
| Params | IN The params to pass to the invoked process |
| OutReturnCode | OUT Will be set to the return code of the executed process |
Implemented in BuildPatchServices::TPlatform< FPlatformProcessImpl, FPlatformMiscImpl >.
Implemented in BuildPatchServices::TPlatform< FPlatformProcessImpl, FPlatformMiscImpl >.
Sleep this thread for Seconds. 0.0 means release the current time slice to let other threads get some attention.
| Seconds | The time in seconds to sleep for. |
Implemented in BuildPatchServices::TPlatform< FPlatformProcessImpl, FPlatformMiscImpl >.