Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
PostWindowsApi.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3// HEADER_UNIT_SKIP - Not included directly
4
5// #TODO: redirect to platform-agnostic version for the time being. Eventually this will become an error
6#include "HAL/Platform.h"
8 #include "Microsoft/PostWindowsApi.h"
9#else
10
11// Re-enable warnings
13
14// Hide Windows-only types (same as HideWindowsPlatformTypes.h)
15#undef INT
16#undef UINT
17#undef DWORD
18#undef FLOAT
19
20// Undo any Windows defines.
21#undef uint8
22#undef uint16
23#undef uint32
24#undef int32
25#undef float
26#undef CDECL
27#undef PF_MAX
28#undef CaptureStackBackTrace
29#undef CopyFile
30#undef CreateDesktop
31#undef CreateDirectory
32#undef CreateFont
33#undef DeleteFile
34#undef DrawText
35#undef FindWindow
36#undef GetClassInfo
37#undef GetClassName
38#undef GetCommandLine
39#undef GetCurrentTime
40#undef GetEnvironmentVariable
41#undef GetFileAttributes
42#undef GetFreeSpace
43#undef GetMessage
44#undef GetNextSibling
45#undef GetObject
46#undef GetProp
47#undef GetTempFileName
48#undef IMediaEventSink
49#undef IsMaximized
50#undef IsMinimized
51#undef LoadString
52#undef MemoryBarrier
53#undef MoveFile
54#undef PlaySound
55#undef PostMessage
56#undef ReportEvent
57#undef SendMessage
58#undef SetPort
59#undef SetProp
60#undef UpdateResource
61#undef Yield
62
63// Undefine all the atomics. AllowWindowsPlatformAtomics/HideWindowsPlatformAtomics temporarily defining these macros.
64#undef InterlockedIncrement
65#undef InterlockedDecrement
66#undef InterlockedAdd
67#undef InterlockedExchange
68#undef InterlockedExchangeAdd
69#undef InterlockedCompareExchange
70#undef InterlockedCompareExchangePointer
71#undef InterlockedExchange64
72#undef InterlockedExchangeAdd64
73#undef InterlockedCompareExchange64
74#undef InterlockedIncrement64
75#undef InterlockedDecrement64
76#undef InterlockedAnd
77#undef InterlockedOr
78#undef InterlockedXor
79
80// Restore any previously defined macros
81#pragma pop_macro("MAX_uint8")
82#pragma pop_macro("MAX_uint16")
83#pragma pop_macro("MAX_uint32")
84#pragma pop_macro("MAX_int32")
85#pragma pop_macro("TEXT")
86#pragma pop_macro("TRUE")
87#pragma pop_macro("FALSE")
88
89// Restore the struct packing setting
91
92// Redefine CDECL to our version of the #define. <AJS> Is this really necessary?
93#define CDECL __cdecl /* Standard C function */
94
95// Make sure version is high enough for API to be defined. For CRITICAL_SECTION
96#if !defined(_XTL_) && (_WIN32_WINNT < 0x0403)
97 #error SetCriticalSectionSpinCount requires _WIN32_WINNT >= 0x0403
98#endif
99
100#endif //PLATFORM_*
#define PLATFORM_WINDOWS
Definition Platform.h:4
#define PRAGMA_POP_PLATFORM_DEFAULT_PACKING
#define THIRD_PARTY_INCLUDES_END