CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
SKSE::WinAPI Namespace Reference

Classes

struct  _FILETIME
 
struct  _WIN32_FIND_DATAA
 
struct  CRITICAL_SECTION
 

Typedefs

using FILETIME = _FILETIME
 
using HWND = HWND__ *
 
using HINSTANCE = HINSTANCE__ *
 
using WIN32_FIND_DATAA = _WIN32_FIND_DATAA
 

Functions

void * GetCurrentModule () noexcept
 
void * GetCurrentProcess () noexcept
 
std::uint32_t GetCurrentThreadID () noexcept
 
std::uint32_t GetEnvironmentVariable (const char *a_name, char *a_buffer, std::uint32_t a_size) noexcept
 
std::uint32_t GetEnvironmentVariable (const wchar_t *a_name, wchar_t *a_buffer, std::uint32_t a_size) noexcept
 
bool GetFileVersionInfo (const char *a_filename, std::uint32_t a_handle, std::uint32_t a_len, void *a_data) noexcept
 
bool GetFileVersionInfo (const wchar_t *a_filename, std::uint32_t a_handle, std::uint32_t a_len, void *a_data) noexcept
 
std::uint32_t GetFileVersionInfoSize (const char *a_filename, std::uint32_t *a_handle) noexcept
 
std::uint32_t GetFileVersionInfoSize (const wchar_t *a_filename, std::uint32_t *a_handle) noexcept
 
std::size_t GetMaxPath () noexcept
 
std::uint32_t GetModuleFileName (void *a_module, char *a_filename, std::uint32_t a_size) noexcept
 
std::uint32_t GetModuleFileName (void *a_module, wchar_t *a_filename, std::uint32_t a_size) noexcept
 
void * GetModuleHandle (const char *a_moduleName) noexcept
 
void * GetModuleHandle (const wchar_t *a_moduleName) noexcept
 
void * GetProcAddress (void *a_module, const char *a_procName) noexcept
 
std::int32_t MessageBox (void *a_wnd, const char *a_text, const char *a_caption, unsigned int a_type) noexcept
 
std::int32_t MessageBox (void *a_wnd, const wchar_t *a_text, const wchar_t *a_caption, unsigned int a_type) noexcept
 
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)
 
void OutputDebugString (const char *a_outputString) noexcept
 
void OutputDebugString (const wchar_t *a_outputString) noexcept
 
void TerminateProcess (void *a_process, unsigned int a_exitCode) noexcept
 
void * TlsGetValue (std::uint32_t a_tlsIndex) noexcept
 
bool TlsSetValue (std::uint32_t a_tlsIndex, void *a_tlsValue) noexcept
 
bool VirtualFree (void *a_address, std::size_t a_size, std::uint32_t a_freeType) noexcept
 
bool VerQueryValue (const void *a_block, const char *a_subBlock, void **a_buffer, unsigned int *a_len) noexcept
 
bool VerQueryValue (const void *a_block, const wchar_t *a_subBlock, void **a_buffer, unsigned int *a_len) noexcept
 
bool VirtualProtect (void *a_address, std::size_t a_size, std::uint32_t a_newProtect, std::uint32_t *a_oldProtect) noexcept
 
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)
 

Variables

constexpr auto CP_UTF8 { static_cast<unsigned int>(65001) }
 
constexpr auto IMAGE_SCN_MEM_EXECUTE { static_cast<std::uint32_t>(0x20000000) }
 
constexpr auto IMAGE_SCN_MEM_WRITE { static_cast<std::uint32_t>(0x80000000) }
 
const auto INVALID_HANDLE_VALUE { reinterpret_cast<void*>(static_cast<std::intptr_t>(-1)) }
 
constexpr auto MAX_PATH { static_cast<std::uint32_t>(260) }
 
constexpr auto MEM_RELEASE { static_cast<std::uint32_t>(0x00008000) }
 
constexpr auto PAGE_EXECUTE_READWRITE { static_cast<std::uint32_t>(0x40) }
 

Typedef Documentation

◆ FILETIME

◆ HINSTANCE

using SKSE::WinAPI::HINSTANCE = typedef HINSTANCE__*

◆ HWND

using SKSE::WinAPI::HWND = typedef HWND__*

◆ WIN32_FIND_DATAA

Function Documentation

◆ GetCurrentModule()

void * SKSE::WinAPI::GetCurrentModule ( )
noexcept

◆ GetCurrentProcess()

void * SKSE::WinAPI::GetCurrentProcess ( )
noexcept

◆ GetCurrentThreadID()

std::uint32_t SKSE::WinAPI::GetCurrentThreadID ( )
noexcept

◆ GetEnvironmentVariable() [1/2]

std::uint32_t SKSE::WinAPI::GetEnvironmentVariable ( const char *  a_name,
char *  a_buffer,
std::uint32_t  a_size 
)
noexcept

◆ GetEnvironmentVariable() [2/2]

std::uint32_t SKSE::WinAPI::GetEnvironmentVariable ( const wchar_t *  a_name,
wchar_t *  a_buffer,
std::uint32_t  a_size 
)
noexcept

◆ GetFileVersionInfo() [1/2]

bool SKSE::WinAPI::GetFileVersionInfo ( const char *  a_filename,
std::uint32_t  a_handle,
std::uint32_t  a_len,
void *  a_data 
)
noexcept

◆ GetFileVersionInfo() [2/2]

bool SKSE::WinAPI::GetFileVersionInfo ( const wchar_t *  a_filename,
std::uint32_t  a_handle,
std::uint32_t  a_len,
void *  a_data 
)
noexcept

◆ GetFileVersionInfoSize() [1/2]

std::uint32_t SKSE::WinAPI::GetFileVersionInfoSize ( const char *  a_filename,
std::uint32_t *  a_handle 
)
noexcept

◆ GetFileVersionInfoSize() [2/2]

std::uint32_t SKSE::WinAPI::GetFileVersionInfoSize ( const wchar_t *  a_filename,
std::uint32_t *  a_handle 
)
noexcept

◆ GetMaxPath()

std::size_t SKSE::WinAPI::GetMaxPath ( )
noexcept

◆ GetModuleFileName() [1/2]

std::uint32_t SKSE::WinAPI::GetModuleFileName ( void *  a_module,
char *  a_filename,
std::uint32_t  a_size 
)
noexcept

◆ GetModuleFileName() [2/2]

std::uint32_t SKSE::WinAPI::GetModuleFileName ( void *  a_module,
wchar_t *  a_filename,
std::uint32_t  a_size 
)
noexcept

◆ GetModuleHandle() [1/2]

void * SKSE::WinAPI::GetModuleHandle ( const char *  a_moduleName)
noexcept

◆ GetModuleHandle() [2/2]

void * SKSE::WinAPI::GetModuleHandle ( const wchar_t *  a_moduleName)
noexcept

◆ GetProcAddress()

void * SKSE::WinAPI::GetProcAddress ( void *  a_module,
const char *  a_procName 
)
noexcept

◆ MessageBox() [1/2]

std::int32_t SKSE::WinAPI::MessageBox ( void *  a_wnd,
const char *  a_text,
const char *  a_caption,
unsigned int  a_type 
)
noexcept

◆ MessageBox() [2/2]

std::int32_t SKSE::WinAPI::MessageBox ( void *  a_wnd,
const wchar_t *  a_text,
const wchar_t *  a_caption,
unsigned int  a_type 
)
noexcept

◆ MultiByteToWideChar()

int SKSE::WinAPI::MultiByteToWideChar ( unsigned int  a_codePage,
std::uint32_t  a_flags,
const char *  a_multiByteStr,
int  a_multiByte,
wchar_t *  a_wideCharStr,
int  a_wideChar 
)

◆ OutputDebugString() [1/2]

void SKSE::WinAPI::OutputDebugString ( const char *  a_outputString)
noexcept

◆ OutputDebugString() [2/2]

void SKSE::WinAPI::OutputDebugString ( const wchar_t *  a_outputString)
noexcept

◆ TerminateProcess()

void SKSE::WinAPI::TerminateProcess ( void *  a_process,
unsigned int  a_exitCode 
)
noexcept

◆ TlsGetValue()

void * SKSE::WinAPI::TlsGetValue ( std::uint32_t  a_tlsIndex)
noexcept

◆ TlsSetValue()

bool SKSE::WinAPI::TlsSetValue ( std::uint32_t  a_tlsIndex,
void *  a_tlsValue 
)
noexcept

◆ VerQueryValue() [1/2]

bool SKSE::WinAPI::VerQueryValue ( const void *  a_block,
const char *  a_subBlock,
void **  a_buffer,
unsigned int *  a_len 
)
noexcept

◆ VerQueryValue() [2/2]

bool SKSE::WinAPI::VerQueryValue ( const void *  a_block,
const wchar_t *  a_subBlock,
void **  a_buffer,
unsigned int *  a_len 
)
noexcept

◆ VirtualFree()

bool SKSE::WinAPI::VirtualFree ( void *  a_address,
std::size_t  a_size,
std::uint32_t  a_freeType 
)
noexcept

◆ VirtualProtect()

bool SKSE::WinAPI::VirtualProtect ( void *  a_address,
std::size_t  a_size,
std::uint32_t  a_newProtect,
std::uint32_t *  a_oldProtect 
)
noexcept

◆ WideCharToMultiByte()

int SKSE::WinAPI::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 
)

Variable Documentation

◆ CP_UTF8

constexpr auto SKSE::WinAPI::CP_UTF8 { static_cast<unsigned int>(65001) }
inlineconstexpr

◆ IMAGE_SCN_MEM_EXECUTE

constexpr auto SKSE::WinAPI::IMAGE_SCN_MEM_EXECUTE { static_cast<std::uint32_t>(0x20000000) }
inlineconstexpr

◆ IMAGE_SCN_MEM_WRITE

constexpr auto SKSE::WinAPI::IMAGE_SCN_MEM_WRITE { static_cast<std::uint32_t>(0x80000000) }
inlineconstexpr

◆ INVALID_HANDLE_VALUE

const auto SKSE::WinAPI::INVALID_HANDLE_VALUE { reinterpret_cast<void*>(static_cast<std::intptr_t>(-1)) }
inline

◆ MAX_PATH

constexpr auto SKSE::WinAPI::MAX_PATH { static_cast<std::uint32_t>(260) }
inlineconstexpr

◆ MEM_RELEASE

constexpr auto SKSE::WinAPI::MEM_RELEASE { static_cast<std::uint32_t>(0x00008000) }
inlineconstexpr

◆ PAGE_EXECUTE_READWRITE

constexpr auto SKSE::WinAPI::PAGE_EXECUTE_READWRITE { static_cast<std::uint32_t>(0x40) }
inlineconstexpr