UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WindowsPlatformCrashContext.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
7
8
10{
15
16
17 CORE_API virtual void AddPlatformSpecificProperties() const override;
18 CORE_API virtual void CopyPlatformSpecificFiles(const TCHAR* OutputDirectory, void* Context) override;
19
20 // Windows crash contexts support "optional attachments", which are
21 // extra files copied into a subdirectory within the main crash report folder.
22 // Optional attachments are specifically distinguished from other attachments
23 // as they will not be uploaded by the crash report client by default.
25
26protected:
28 void WriteOptionalAttachmentsXML(const FString& Filepath) const;
29};
30
32
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ECrashContextType
Definition GenericPlatformCrashContext.h:112
FWindowsPlatformCrashContext FPlatformCrashContext
Definition WindowsPlatformCrashContext.h:31
Definition MicrosoftPlatformCrashContext.h:9
Definition WindowsPlatformCrashContext.h:10
virtual CORE_API void AddPlatformSpecificProperties() const override
Definition WindowsPlatformCrashContext.cpp:323
FWindowsPlatformCrashContext(ECrashContextType InType, const TCHAR *InErrorMessage)
Definition WindowsPlatformCrashContext.h:11
static CORE_API void AddOptionalAttachment(const FString &OptionalAttachmentFilepath)
Definition WindowsPlatformCrashContext.cpp:238
virtual CORE_API void CopyPlatformSpecificFiles(const TCHAR *OutputDirectory, void *Context) override
Definition WindowsPlatformCrashContext.cpp:359
void WriteOptionalAttachmentsXML(const FString &Filepath) const
Definition WindowsPlatformCrashContext.cpp:280
void CopyOptionalAttachments(const TCHAR *BaseOutputDirectory) const
Definition WindowsPlatformCrashContext.cpp:243