5 inline constexpr auto CP_UTF8{
static_cast<unsigned int>(65001) };
9 inline constexpr auto MAX_PATH{
static_cast<std::uint32_t
>(260) };
10 inline constexpr auto MEM_RELEASE{
static_cast<std::uint32_t
>(0x00008000) };
69 std::uint32_t a_size) noexcept;
72 const
wchar_t* a_name,
74 std::uint32_t a_size) noexcept;
77 const
char* a_filename,
78 std::uint32_t a_handle,
80 void* a_data) noexcept;
83 const
wchar_t* a_filename,
84 std::uint32_t a_handle,
86 void* a_data) noexcept;
89 const
char* a_filename,
90 std::uint32_t* a_handle) noexcept;
93 const
wchar_t* a_filename,
94 std::uint32_t* a_handle) noexcept;
101 std::uint32_t a_size) noexcept;
106 std::uint32_t a_size) noexcept;
114 const
char* a_procName) noexcept;
119 const
char* a_caption,
120 unsigned int a_type) noexcept;
124 const
wchar_t* a_text,
125 const
wchar_t* a_caption,
126 unsigned int a_type) noexcept;
129 unsigned int a_codePage,
130 std::uint32_t a_flags,
131 const
char* a_multiByteStr,
133 wchar_t* a_wideCharStr,
137 const
char* a_outputString) noexcept;
140 const
wchar_t* a_outputString) noexcept;
144 unsigned int a_exitCode) noexcept;
149 std::uint32_t a_tlsIndex,
150 void* a_tlsValue) noexcept;
155 std::uint32_t a_freeType) noexcept;
159 const
char* a_subBlock,
161 unsigned int* a_len) noexcept;
165 const
wchar_t* a_subBlock,
167 unsigned int* a_len) noexcept;
172 std::uint32_t a_newProtect,
173 std::uint32_t* a_oldProtect) noexcept;
176 unsigned int a_codePage,
177 std::uint32_t a_flags,
178 const
wchar_t* a_wideCharStr,
180 char* a_multiByteStr,
182 const
char* a_defaultChar,
183 int* a_usedDefaultChar);
Definition: AbsorbEffect.h:6
std::uint32_t GetFileVersionInfoSize(const char *a_filename, std::uint32_t *a_handle) noexcept
std::uint32_t GetEnvironmentVariable(const char *a_name, char *a_buffer, std::uint32_t a_size) noexcept
bool VirtualProtect(void *a_address, std::size_t a_size, std::uint32_t a_newProtect, std::uint32_t *a_oldProtect) noexcept
void * GetCurrentProcess() noexcept
std::size_t GetMaxPath() noexcept
void OutputDebugString(const char *a_outputString) noexcept
constexpr auto IMAGE_SCN_MEM_WRITE
Definition: WinAPI.h:7
std::uint32_t GetModuleFileName(void *a_module, char *a_filename, std::uint32_t a_size) noexcept
void * GetCurrentModule() noexcept
std::uint32_t GetCurrentThreadID() noexcept
void * GetProcAddress(void *a_module, const char *a_procName) noexcept
constexpr auto MEM_RELEASE
Definition: WinAPI.h:10
constexpr auto PAGE_EXECUTE_READWRITE
Definition: WinAPI.h:11
HWND__ * HWND
Definition: WinAPI.h:37
void * TlsGetValue(std::uint32_t a_tlsIndex) noexcept
bool TlsSetValue(std::uint32_t a_tlsIndex, void *a_tlsValue) noexcept
void * GetModuleHandle(const char *a_moduleName) noexcept
bool GetFileVersionInfo(const char *a_filename, std::uint32_t a_handle, std::uint32_t a_len, void *a_data) noexcept
constexpr auto IMAGE_SCN_MEM_EXECUTE
Definition: WinAPI.h:6
int MultiByteToWideChar(unsigned int a_codePage, std::uint32_t a_flags, const char *a_multiByteStr, int a_multiByte, wchar_t *a_wideCharStr, int a_wideChar)
bool VerQueryValue(const void *a_block, const char *a_subBlock, void **a_buffer, unsigned int *a_len) noexcept
std::int32_t MessageBox(void *a_wnd, const char *a_text, const char *a_caption, unsigned int a_type) noexcept
constexpr auto CP_UTF8
Definition: WinAPI.h:5
const auto INVALID_HANDLE_VALUE
Definition: WinAPI.h:8
HINSTANCE__ * HINSTANCE
Definition: WinAPI.h:40
int WideCharToMultiByte(unsigned int a_codePage, std::uint32_t a_flags, const wchar_t *a_wideCharStr, int a_wideChar, char *a_multiByteStr, int a_multiByte, const char *a_defaultChar, int *a_usedDefaultChar)
void TerminateProcess(void *a_process, unsigned int a_exitCode) noexcept
bool VirtualFree(void *a_address, std::size_t a_size, std::uint32_t a_freeType) noexcept
constexpr auto MAX_PATH
Definition: WinAPI.h:9
Definition: NiBinaryStream.h:94
std::uint32_t dwLowDateTime
Definition: WinAPI.h:30
std::uint32_t dwHighDateTime
Definition: WinAPI.h:31
std::uint32_t nFileSizeLow
Definition: WinAPI.h:51
char cFileName[MAX_PATH]
Definition: WinAPI.h:54
std::uint32_t dwReserved1
Definition: WinAPI.h:53
std::uint32_t dwFileAttributes
Definition: WinAPI.h:46
std::uint32_t nFileSizeHigh
Definition: WinAPI.h:50
FILETIME ftCreationTime
Definition: WinAPI.h:47
char cAlternateFileName[14]
Definition: WinAPI.h:55
std::uint32_t dwReserved0
Definition: WinAPI.h:52
FILETIME ftLastAccessTime
Definition: WinAPI.h:48
FILETIME ftLastWriteTime
Definition: WinAPI.h:49
void * DebugInfo
Definition: WinAPI.h:17
void * LockSemaphore
Definition: WinAPI.h:21
std::uint64_t * SpinCount
Definition: WinAPI.h:22
std::int32_t LockCount
Definition: WinAPI.h:18
std::int32_t RecursionCount
Definition: WinAPI.h:19
void * OwningThread
Definition: WinAPI.h:20