UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WindowsPlatformMisc.cpp File Reference
#include "Windows/WindowsPlatformMisc.h"
#include "Misc/DateTime.h"
#include "Misc/AssertionMacros.h"
#include "Logging/LogMacros.h"
#include "Misc/OutputDevice.h"
#include "HAL/PlatformStackWalk.h"
#include "HAL/PlatformProcess.h"
#include "HAL/UnrealMemory.h"
#include "Templates/UnrealTemplate.h"
#include "CoreGlobals.h"
#include "HAL/FileManager.h"
#include "Misc/CString.h"
#include "Misc/Parse.h"
#include "Misc/MessageDialog.h"
#include "Containers/StringConv.h"
#include "Containers/UnrealString.h"
#include "Misc/CommandLine.h"
#include "Misc/Paths.h"
#include "Internationalization/Text.h"
#include "Math/Color.h"
#include "Misc/OutputDeviceRedirector.h"
#include "Misc/OutputDeviceFile.h"
#include "Misc/OutputDeviceError.h"
#include "Misc/FeedbackContext.h"
#include "Misc/CoreDelegates.h"
#include "Misc/App.h"
#include "Misc/ScopeExit.h"
#include "HAL/ExceptionHandling.h"
#include "Misc/SecureHash.h"
#include "HAL/IConsoleManager.h"
#include "Misc/EngineVersion.h"
#include "GenericPlatform/GenericPlatformCrashContext.h"
#include "Windows/WindowsPlatformCrashContext.h"
#include "HAL/PlatformOutputDevices.h"
#include "AutoRTFM.h"
#include "GenericPlatform/GenericPlatformChunkInstall.h"
#include "GenericPlatform/GenericPlatformDriver.h"
#include "HAL/ThreadHeartBeat.h"
#include "ProfilingDebugging/ExternalProfiler.h"
#include "Runtime/Launch/Resources/Windows/resource.h"
#include "Windows/AllowWindowsPlatformTypes.h"
#include <time.h>
#include <mmsystem.h>
#include <rpcsal.h>
#include <gameux.h>
#include <ShlObj.h>
#include <IntShCut.h>
#include <shellapi.h>
#include <shlwapi.h>
#include <IPHlpApi.h>
#include <VersionHelpers.h>
#include "Windows/AllowWindowsPlatformAtomics.h"
#include <comdef.h>
#include <Wbemidl.h>
#include "Windows/HideWindowsPlatformAtomics.h"
#include "Windows/HideWindowsPlatformTypes.h"
#include "Modules/ModuleManager.h"
#include <Psapi.h>
#include <fcntl.h>
#include <io.h>
#include <intrin.h>
#include "FramePro/FrameProProfiler.h"
#include <tbs.h>
#include "winternl.h"
#include "ntstatus.h"
#include <SetupAPI.h>
#include <initguid.h>
#include <devguid.h>
#include <devpkey.h>

Classes

class  FWindowsDialog
 
struct  FGetMainWindowHandleData
 
class  FCPUIDQueriedData
 

Macros

#define ALLOW_COLLECT_STORAGE_INFORMATION   0
 
#define SM_CONVERTIBLESLATEMODE   0x2003
 
#define UE_CPUID(Info, FunctionID)   __cpuid(Info, FunctionID);
 
#define WITH_FIREWALL_SUPPORT   0
 
#define USE_SP_ALTPLATFORM_INFO_V1   0
 
#define USE_SP_ALTPLATFORM_INFO_V3   1
 
#define USE_SP_DRVINFO_DATA_V1   0
 
#define USE_SP_BACKUP_QUEUE_PARAMS_V1   0
 
#define USE_SP_INF_SIGNER_INFO_V1   0
 
#define DEVICEFAMILYDEVICEFORM_GAMING_HANDHELD   0x0000002E
 

Functions

int32 GetOSVersionsHelper (TCHAR *OutOSVersionLabel, int32 OSVersionLabelLength, TCHAR *OutOSSubVersionLabel, int32 OSSubVersionLabelLength)
 
const TCHARLexToString (EStorageDeviceType StorageType)
 
FProcessorGroupDesc NumberOfProcessorGroupsInternal ()
 
int32 CALLBACK GetMainWindowHandleCallback (HWND Handle, LPARAM lParam)
 

Variables

CORE_API Windows::HINSTANCE hInstance = NULL
 
_purecall_handler DefaultPureCallHandler
 

Macro Definition Documentation

◆ ALLOW_COLLECT_STORAGE_INFORMATION

#define ALLOW_COLLECT_STORAGE_INFORMATION   0

◆ DEVICEFAMILYDEVICEFORM_GAMING_HANDHELD

#define DEVICEFAMILYDEVICEFORM_GAMING_HANDHELD   0x0000002E

◆ SM_CONVERTIBLESLATEMODE

#define SM_CONVERTIBLESLATEMODE   0x2003

◆ UE_CPUID

#define UE_CPUID (   Info,
  FunctionID 
)    __cpuid(Info, FunctionID);

◆ USE_SP_ALTPLATFORM_INFO_V1

#define USE_SP_ALTPLATFORM_INFO_V1   0

◆ USE_SP_ALTPLATFORM_INFO_V3

#define USE_SP_ALTPLATFORM_INFO_V3   1

◆ USE_SP_BACKUP_QUEUE_PARAMS_V1

#define USE_SP_BACKUP_QUEUE_PARAMS_V1   0

◆ USE_SP_DRVINFO_DATA_V1

#define USE_SP_DRVINFO_DATA_V1   0

◆ USE_SP_INF_SIGNER_INFO_V1

#define USE_SP_INF_SIGNER_INFO_V1   0

◆ WITH_FIREWALL_SUPPORT

#define WITH_FIREWALL_SUPPORT   0

Whether support for integrating into the firewall is there

Function Documentation

◆ GetMainWindowHandleCallback()

int32 CALLBACK GetMainWindowHandleCallback ( HWND  Handle,
LPARAM  lParam 
)

◆ GetOSVersionsHelper()

int32 GetOSVersionsHelper ( TCHAR OutOSVersionLabel,
int32  OSVersionLabelLength,
TCHAR OutOSSubVersionLabel,
int32  OSSubVersionLabelLength 
)

◆ LexToString()

const TCHAR * LexToString ( EStorageDeviceType  StorageType)

◆ NumberOfProcessorGroupsInternal()

FProcessorGroupDesc NumberOfProcessorGroupsInternal ( )

Variable Documentation

◆ DefaultPureCallHandler

_purecall_handler DefaultPureCallHandler

Original C- Runtime pure virtual call handler that is being called in the (highly likely) case of a double fault

◆ hInstance