CommonLibSSE (Parapets fork)
WinAPI.h File Reference

Go to the source code of this file.

Classes

struct  SKSE::WinAPI::CRITICAL_SECTION
 
struct  SKSE::WinAPI::_FILETIME
 
struct  SKSE::WinAPI::_WIN32_FIND_DATAA
 
struct  SKSE::WinAPI::SECURITY_ATTRIBUTES
 
struct  SKSE::WinAPI::HandleCloser
 
struct  SKSE::WinAPI::_GUID
 
struct  SKSE::WinAPI::_DEV_BROADCAST_HDR
 
struct  SKSE::WinAPI::_DEV_BROADCAST_DEVICEINTERFACE_A
 
struct  SKSE::WinAPI::DEVICE_NOTIFY
 
struct  SKSE::WinAPI::DeviceNotifyCloser
 
struct  RE::DirectX::XMFLOAT4X4
 
struct  RE::XInput::XINPUT_GAMEPAD
 
struct  RE::XInput::XINPUT_STATE
 
struct  RE::XInput::XINPUT_VIBRATION
 

Namespaces

 SKSE
 
 SKSE::WinAPI
 
 SKSE::WinAPI::DBT
 
 RE
 
 RE::DirectX
 
 RE::XInput
 

Typedefs

using SKSE::WinAPI::FILETIME = _FILETIME
 
using SKSE::WinAPI::HWND = HWND__ *
 
using SKSE::WinAPI::HINSTANCE = HINSTANCE__ *
 
using SKSE::WinAPI::WIN32_FIND_DATAA = _WIN32_FIND_DATAA
 
using SKSE::WinAPI::WNDPROC = std::intptr_t(*)(HWND, std::uint32_t, std::uintptr_t, std::intptr_t)
 
using SKSE::WinAPI::GWL = GetWindowLongIndex
 
using SKSE::WinAPI::ScopedHandle = std::unique_ptr< void, HandleCloser >
 
using SKSE::WinAPI::GUID = _GUID
 
using SKSE::WinAPI::IID = GUID
 
using SKSE::WinAPI::REFIID = const IID &
 
using SKSE::WinAPI::CLSID = GUID
 
using SKSE::WinAPI::REFCLSID = const IID &
 
using SKSE::WinAPI::DBT::DEVTYP = DeviceType
 
using SKSE::WinAPI::DEV_BROADCAST_HDR = _DEV_BROADCAST_HDR
 
using SKSE::WinAPI::DEV_BROADCAST_DEVICEINTERFACE_A = _DEV_BROADCAST_DEVICEINTERFACE_A
 
using SKSE::WinAPI::DEV_BROADCAST_DEVICEINTERFACE = DEV_BROADCAST_DEVICEINTERFACE_A
 
using SKSE::WinAPI::ScopedDeviceNotify = std::unique_ptr< void, DeviceNotifyCloser >
 

Enumerations

enum class  SKSE::WinAPI::GetWindowLongIndex {
  SKSE::WinAPI::EXSTYLE = -20 , SKSE::WinAPI::HINSTANCE = -6 , SKSE::WinAPI::HWNDPARENT = -8 , SKSE::WinAPI::ID = -12 ,
  SKSE::WinAPI::STYLE = -16 , SKSE::WinAPI::USERDATA = -21 , SKSE::WinAPI::WNDPROC = -4
}
 
enum  SKSE::WinAPI::DBT::DeviceChangeMessage : std::uintptr_t {
  SKSE::WinAPI::DBT::DEVICEARRIVAL = 0x8000 , SKSE::WinAPI::DBT::DEVICEQUERYREMOVE = 0x8001 , SKSE::WinAPI::DBT::DEVICEQUERYREMOVEFAILED = 0x8002 , SKSE::WinAPI::DBT::DEVICEREMOVEPENDING = 0x8003 ,
  SKSE::WinAPI::DBT::DEVICEREMOVECOMPLETE = 0x8004 , SKSE::WinAPI::DBT::DEVICETYPESPECIFIC = 0x8005
}
 
enum class  SKSE::WinAPI::DBT::DeviceType : std::uint32_t {
  SKSE::WinAPI::DBT::OEM = 0x00000000 , SKSE::WinAPI::DBT::DEVNODE = 0x00000001 , SKSE::WinAPI::DBT::VOLUME = 0x00000002 , SKSE::WinAPI::DBT::PORT = 0x00000003 ,
  SKSE::WinAPI::DBT::NET = 0x00000004 , SKSE::WinAPI::DBT::DEVICEINTERFACE = 0x00000005 , SKSE::WinAPI::DBT::HANDLE = 0x00000006
}
 

Functions

std::intptr_t SKSE::WinAPI::CallWindowProc (WNDPROC a_prevWndFunc, void *a_wnd, std::uint32_t a_msg, std::uintptr_t a_wParam, std::intptr_t a_lParam)
 
ScopedHandle SKSE::WinAPI::CreateEventEx (SECURITY_ATTRIBUTES *a_eventAttributes, char *a_name, std::uint32_t a_flags, std::uint32_t a_desiredAccess)
 
ScopedHandle SKSE::WinAPI::CreateEventEx (SECURITY_ATTRIBUTES *a_eventAttributes, wchar_t *a_name, std::uint32_t a_flags, std::uint32_t a_desiredAccess)
 
void * SKSE::WinAPI::GetCurrentModule () noexcept
 
void * SKSE::WinAPI::GetCurrentProcess () noexcept
 
std::uint32_t SKSE::WinAPI::GetCurrentThreadID () noexcept
 
std::uint32_t SKSE::WinAPI::GetEnvironmentVariable (const char *a_name, char *a_buffer, std::uint32_t a_size) noexcept
 
std::uint32_t SKSE::WinAPI::GetEnvironmentVariable (const wchar_t *a_name, wchar_t *a_buffer, std::uint32_t a_size) noexcept
 
bool SKSE::WinAPI::GetFileVersionInfo (const char *a_filename, std::uint32_t a_handle, std::uint32_t a_len, void *a_data) noexcept
 
bool SKSE::WinAPI::GetFileVersionInfo (const wchar_t *a_filename, std::uint32_t a_handle, std::uint32_t a_len, void *a_data) noexcept
 
std::uint32_t SKSE::WinAPI::GetFileVersionInfoSize (const char *a_filename, std::uint32_t *a_handle) noexcept
 
std::uint32_t SKSE::WinAPI::GetFileVersionInfoSize (const wchar_t *a_filename, std::uint32_t *a_handle) noexcept
 
std::size_t SKSE::WinAPI::GetMaxPath () noexcept
 
std::uint32_t SKSE::WinAPI::GetModuleFileName (void *a_module, char *a_filename, std::uint32_t a_size) noexcept
 
std::uint32_t SKSE::WinAPI::GetModuleFileName (void *a_module, wchar_t *a_filename, std::uint32_t a_size) noexcept
 
void * SKSE::WinAPI::GetModuleHandle (const char *a_moduleName) noexcept
 
void * SKSE::WinAPI::GetModuleHandle (const wchar_t *a_moduleName) noexcept
 
void * SKSE::WinAPI::GetProcAddress (void *a_module, const char *a_procName) noexcept
 
std::intptr_t SKSE::WinAPI::GetWindowLongPtr (HWND a_wnd, GetWindowLongIndex a_index) noexcept
 
std::int32_t SKSE::WinAPI::MessageBox (void *a_wnd, const char *a_text, const char *a_caption, unsigned int a_type) noexcept
 
std::int32_t SKSE::WinAPI::MessageBox (void *a_wnd, const wchar_t *a_text, const wchar_t *a_caption, unsigned int a_type) noexcept
 
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)
 
void SKSE::WinAPI::OutputDebugString (const char *a_outputString) noexcept
 
void SKSE::WinAPI::OutputDebugString (const wchar_t *a_outputString) noexcept
 
ScopedDeviceNotify SKSE::WinAPI::RegisterDeviceNotification (void *a_recipient, void *a_notificationFilter, std::uint32_t a_flags) noexcept
 
bool SKSE::WinAPI::SetEvent (ScopedHandle &a_event) noexcept
 
std::intptr_t SKSE::WinAPI::SetWindowLongPtr (HWND a_wnd, GetWindowLongIndex a_index, std::intptr_t a_newLong) noexcept
 
void * SKSE::WinAPI::SetWindowLongPtr (HWND a_wnd, GetWindowLongIndex a_index, void *a_newLong) noexcept
 
void SKSE::WinAPI::TerminateProcess (void *a_process, unsigned int a_exitCode) noexcept
 
void * SKSE::WinAPI::TlsGetValue (std::uint32_t a_tlsIndex) noexcept
 
bool SKSE::WinAPI::TlsSetValue (std::uint32_t a_tlsIndex, void *a_tlsValue) noexcept
 
bool SKSE::WinAPI::VirtualFree (void *a_address, std::size_t a_size, std::uint32_t a_freeType) noexcept
 
bool SKSE::WinAPI::VerQueryValue (const void *a_block, const char *a_subBlock, void **a_buffer, unsigned int *a_len) noexcept
 
bool SKSE::WinAPI::VerQueryValue (const void *a_block, const wchar_t *a_subBlock, void **a_buffer, unsigned int *a_len) noexcept
 
bool SKSE::WinAPI::VirtualProtect (void *a_address, std::size_t a_size, std::uint32_t a_newProtect, std::uint32_t *a_oldProtect) noexcept
 
std::uint32_t SKSE::WinAPI::WaitForMultipleObjectsEx (std::span< void *const > a_handles, bool a_waitAll, std::uint32_t a_milliseconds, bool a_alertable)
 
std::uint32_t SKSE::WinAPI::WaitForSingleObjectEx (ScopedHandle &a_handle, std::uint32_t a_milliseconds, bool a_alertable) noexcept
 
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)
 

Variables

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