CommonLibVR
USER32.h File Reference
#include "REX/W32/BASE.h"

Go to the source code of this file.

Namespaces

 REX
 
 REX::W32
 

Typedefs

using REX::W32::WNDPROC = std::intptr_t(*)(HWND, std::uint32_t, std::uintptr_t, std::intptr_t)
 

Enumerations

enum  REX::W32::GWLP : std::int32_t {
  REX::W32::GWLP_USERDATA = -21 , REX::W32::GWLP_ID = -12 , REX::W32::GWLP_HWNDPARENT = -8 , REX::W32::GWLP_HINSTANCE = -6 ,
  REX::W32::GWLP_WNDPROC = -4
}
 
enum  REX::W32::WM : std::uint32_t {
  REX::W32::WM_NULL = 0x0000u , REX::W32::WM_CREATE = 0x0001u , REX::W32::WM_DESTROY = 0x0002u , REX::W32::WM_MOVE = 0x0003u ,
  REX::W32::WM_SIZE = 0x0005u , REX::W32::WM_ACTIVATE = 0x0006u , REX::W32::WM_SETFOCUS = 0x0007u , REX::W32::WM_KILLFOCUS = 0x0008u ,
  REX::W32::WM_ENABLE = 0x000Au , REX::W32::WM_SETREDRAW = 0x000Bu , REX::W32::WM_SETTEXT = 0x000Cu , REX::W32::WM_GETTEXT = 0x000Du ,
  REX::W32::WM_GETTEXTLENGTH = 0x000Eu , REX::W32::WM_PAINT = 0x000Fu , REX::W32::WM_CLOSE = 0x0010u , REX::W32::WM_QUIT = 0x0012u ,
  REX::W32::WM_ERASEBKGND = 0x0014u , REX::W32::WM_SHOWWINDOW = 0x0018u , REX::W32::WM_ACTIVATEAPP = 0x001Cu , REX::W32::WM_FONTCHANGE = 0x001Du ,
  REX::W32::WM_TIMECHANGE = 0x001Eu , REX::W32::WM_CANCELMODE = 0x001Fu , REX::W32::WM_SETCURSOR = 0x0020u , REX::W32::WM_MOUSEACTIVATE = 0x0021u ,
  REX::W32::WM_CHILDACTIVATE = 0x0022u
}
 
enum  REX::W32::VK : std::uint32_t {
  REX::W32::VK_LBUTTON = 0x1 , REX::W32::VK_RBUTTON = 0x2 , REX::W32::VK_CANCEL = 0x3 , REX::W32::VK_MBUTTON = 0x4 ,
  REX::W32::VK_XBUTTON1 = 0x5 , REX::W32::VK_XBUTTON2 = 0x6 , REX::W32::VK_BACK = 0x8 , REX::W32::VK_TAB = 0x9 ,
  REX::W32::VK_RESERVED_0A = 0xA , REX::W32::VK_RESERVED_0B = 0xB , REX::W32::VK_CLEAR = 0xC , REX::W32::VK_RETURN = 0xD ,
  REX::W32::VK_SHIFT = 0x10 , REX::W32::VK_CONTROL = 0x11 , REX::W32::VK_MENU = 0x12 , REX::W32::VK_PAUSE = 0x13 ,
  REX::W32::VK_CAPITAL = 0x14 , REX::W32::VK_KANA = 0x15 , REX::W32::VK_HANGUEL = 0x15 , REX::W32::VK_HANGUL = 0x15 ,
  REX::W32::VK_IME_ON = 0x16 , REX::W32::VK_JUNJA = 0x17 , REX::W32::VK_FINAL = 0x18 , REX::W32::VK_HANJA = 0x19 ,
  REX::W32::VK_KANJI = VK_HANJA , REX::W32::VK_IME_OFF = 0x1A , REX::W32::VK_ESCAPE = 0x1B , REX::W32::VK_CONVERT = 0x1C ,
  REX::W32::VK_NONCONVERT = 0x1D , REX::W32::VK_ACCEPT = 0x1E , REX::W32::VK_MODECHANGE = 0x1F , REX::W32::VK_SPACE = 0x20 ,
  REX::W32::VK_PRIOR = 0x21 , REX::W32::VK_NEXT = 0x22 , REX::W32::VK_END = 0x23 , REX::W32::VK_HOME = 0x24 ,
  REX::W32::VK_LEFT = 0x25 , REX::W32::VK_UP = 0x26 , REX::W32::VK_RIGHT = 0x27 , REX::W32::VK_DOWN = 0x28 ,
  REX::W32::VK_SELECT = 0x29 , REX::W32::VK_PRINT = 0x2A , REX::W32::VK_EXECUTE = 0x2B , REX::W32::VK_SNAPSHOT = 0x2C ,
  REX::W32::VK_INSERT = 0x2D , REX::W32::VK_DELETE = 0x2E , REX::W32::VK_HELP = 0x2F , REX::W32::VK_0 = 0x30 ,
  REX::W32::VK_1 = 0x31 , REX::W32::VK_2 = 0x32 , REX::W32::VK_3 = 0x33 , REX::W32::VK_4 = 0x34 ,
  REX::W32::VK_5 = 0x35 , REX::W32::VK_6 = 0x36 , REX::W32::VK_7 = 0x37 , REX::W32::VK_8 = 0x38 ,
  REX::W32::VK_9 = 0x39 , REX::W32::VK_A = 0x41 , REX::W32::VK_B = 0x42 , REX::W32::VK_C = 0x43 ,
  REX::W32::VK_D = 0x44 , REX::W32::VK_E = 0x45 , REX::W32::VK_F = 0x46 , REX::W32::VK_G = 0x47 ,
  REX::W32::VK_H = 0x48 , REX::W32::VK_I = 0x49 , REX::W32::VK_J = 0x4A , REX::W32::VK_K = 0x4B ,
  REX::W32::VK_L = 0x4C , REX::W32::VK_M = 0x4D , REX::W32::VK_N = 0x4E , REX::W32::VK_O = 0x4F ,
  REX::W32::VK_P = 0x50 , REX::W32::VK_Q = 0x51 , REX::W32::VK_R = 0x52 , REX::W32::VK_S = 0x53 ,
  REX::W32::VK_T = 0x54 , REX::W32::VK_U = 0x55 , REX::W32::VK_V = 0x56 , REX::W32::VK_W = 0x57 ,
  REX::W32::VK_X = 0x58 , REX::W32::VK_Y = 0x59 , REX::W32::VK_Z = 0x5A , REX::W32::VK_LWIN = 0x5B ,
  REX::W32::VK_RWIN = 0x5C , REX::W32::VK_APPS = 0x5D , REX::W32::VK_RESERVED_5E = 0x5E , REX::W32::VK_SLEEP = 0x5F ,
  REX::W32::VK_NUMPAD0 = 0x60 , REX::W32::VK_NUMPAD1 = 0x61 , REX::W32::VK_NUMPAD2 = 0x62 , REX::W32::VK_NUMPAD3 = 0x63 ,
  REX::W32::VK_NUMPAD4 = 0x64 , REX::W32::VK_NUMPAD5 = 0x65 , REX::W32::VK_NUMPAD6 = 0x66 , REX::W32::VK_NUMPAD7 = 0x67 ,
  REX::W32::VK_NUMPAD8 = 0x68 , REX::W32::VK_NUMPAD9 = 0x69 , REX::W32::VK_MULTIPLY = 0x6A , REX::W32::VK_ADD = 0x6B ,
  REX::W32::VK_SEPARATOR = 0x6C , REX::W32::VK_SUBTRACT = 0x6D , REX::W32::VK_DECIMAL = 0x6E , REX::W32::VK_DIVIDE = 0x6F ,
  REX::W32::VK_F1 = 0x70 , REX::W32::VK_F2 = 0x71 , REX::W32::VK_F3 = 0x72 , REX::W32::VK_F4 = 0x73 ,
  REX::W32::VK_F5 = 0x74 , REX::W32::VK_F6 = 0x75 , REX::W32::VK_F7 = 0x76 , REX::W32::VK_F8 = 0x77 ,
  REX::W32::VK_F9 = 0x78 , REX::W32::VK_F10 = 0x79 , REX::W32::VK_F11 = 0x7A , REX::W32::VK_F12 = 0x7B ,
  REX::W32::VK_F13 = 0x7C , REX::W32::VK_F14 = 0x7D , REX::W32::VK_F15 = 0x7E , REX::W32::VK_F16 = 0x7F ,
  REX::W32::VK_F17 = 0x80 , REX::W32::VK_F18 = 0x81 , REX::W32::VK_F19 = 0x82 , REX::W32::VK_F20 = 0x83 ,
  REX::W32::VK_F21 = 0x84 , REX::W32::VK_F22 = 0x85 , REX::W32::VK_F23 = 0x86 , REX::W32::VK_F24 = 0x87 ,
  REX::W32::VK_NUMLOCK = 0x90 , REX::W32::VK_SCROLL = 0x91 , REX::W32::VK_OEMSPECIFIC_92 = 0x92 , REX::W32::VK_OEMSPECIFIC_93 = 0x93 ,
  REX::W32::VK_OEMSPECIFIC_94 = 0x94 , REX::W32::VK_OEMSPECIFIC_95 = 0x95 , REX::W32::VK_OEMSPECIFIC_96 = 0x96 , REX::W32::VK_LSHIFT = 0xA0 ,
  REX::W32::VK_RSHIFT = 0xA1 , REX::W32::VK_LCONTROL = 0xA2 , REX::W32::VK_RCONTROL = 0xA3 , REX::W32::VK_LMENU = 0xA4 ,
  REX::W32::VK_RMENU = 0xA5 , REX::W32::VK_BROWSER_BACK = 0xA6 , REX::W32::VK_BROWSER_FORWARD = 0xA7 , REX::W32::VK_BROWSER_REFRESH = 0xA8 ,
  REX::W32::VK_BROWSER_STOP = 0xA9 , REX::W32::VK_BROWSER_SEARCH = 0xAA , REX::W32::VK_BROWSER_FAVORITES = 0xAB , REX::W32::VK_BROWSER_HOME = 0xAC ,
  REX::W32::VK_VOLUME_MUTE = 0xAD , REX::W32::VK_VOLUME_DOWN = 0xAE , REX::W32::VK_VOLUME_UP = 0xAF , REX::W32::VK_MEDIA_NEXT_TRACK = 0xB0 ,
  REX::W32::VK_MEDIA_PREV_TRACK = 0xB1 , REX::W32::VK_MEDIA_STOP = 0xB2 , REX::W32::VK_MEDIA_PLAY_PAUSE = 0xB3 , REX::W32::VK_LAUNCH_MAIL = 0xB4 ,
  REX::W32::VK_LAUNCH_MEDIA_SELECT = 0xB5 , REX::W32::VK_LAUNCH_APP1 = 0xB6 , REX::W32::VK_LAUNCH_APP2 = 0xB7 , REX::W32::VK_RESERVED_B8 = 0xB8 ,
  REX::W32::VK_RESERVED_B9 = 0xB9 , REX::W32::VK_OEM_1 = 0xBA , REX::W32::VK_OEM_PLUS = 0xBB , REX::W32::VK_OEM_COMMA = 0xBC ,
  REX::W32::VK_OEM_MINUS = 0xBD , REX::W32::VK_OEM_PERIOD = 0xBE , REX::W32::VK_OEM_2 = 0xBF , REX::W32::VK_OEM_3 = 0xC0 ,
  REX::W32::VK_RESERVED_C1 = 0xC1 , REX::W32::VK_RESERVED_C2 = 0xC2 , REX::W32::VK_RESERVED_C3 = 0xC3 , REX::W32::VK_RESERVED_C4 = 0xC4 ,
  REX::W32::VK_RESERVED_C5 = 0xC5 , REX::W32::VK_RESERVED_C6 = 0xC6 , REX::W32::VK_RESERVED_C7 = 0xC7 , REX::W32::VK_RESERVED_C8 = 0xC8 ,
  REX::W32::VK_RESERVED_C9 = 0xC9 , REX::W32::VK_RESERVED_CA = 0xCA , REX::W32::VK_RESERVED_CB = 0xCB , REX::W32::VK_RESERVED_CC = 0xCC ,
  REX::W32::VK_RESERVED_CD = 0xCD , REX::W32::VK_RESERVED_CE = 0xCE , REX::W32::VK_RESERVED_CF = 0xCF , REX::W32::VK_RESERVED_D0 = 0xD0 ,
  REX::W32::VK_RESERVED_D1 = 0xD1 , REX::W32::VK_RESERVED_D2 = 0xD2 , REX::W32::VK_RESERVED_D3 = 0xD3 , REX::W32::VK_RESERVED_D4 = 0xD4 ,
  REX::W32::VK_RESERVED_D5 = 0xD5 , REX::W32::VK_RESERVED_D6 = 0xD6 , REX::W32::VK_RESERVED_D7 = 0xD7 , REX::W32::VK_OEM_4 = 0xDB ,
  REX::W32::VK_OEM_5 = 0xDC , REX::W32::VK_OEM_6 = 0xDD , REX::W32::VK_OEM_7 = 0xDE , REX::W32::VK_OEM_8 = 0xDF ,
  REX::W32::VK_RESERVED_E0 = 0xE0 , REX::W32::VK_OEMSPECIFIC_E1 = 0xE1 , REX::W32::VK_OEM_102 = 0xE2 , REX::W32::VK_OEMSPECIFIC_E3 = 0xE3 ,
  REX::W32::VK_OEMSPECIFIC_E4 = 0xE4 , REX::W32::VK_PROCESSKEY = 0xE5 , REX::W32::VK_OEMSPECIFIC_E6 = 0xE6 , REX::W32::VK_PACKET = 0xE7 ,
  REX::W32::VK_OEMSPECIFIC_E9 = 0xE9 , REX::W32::VK_OEMSPECIFIC_EA = 0xEA , REX::W32::VK_OEMSPECIFIC_EB = 0xEB , REX::W32::VK_OEMSPECIFIC_EC = 0xEC ,
  REX::W32::VK_OEMSPECIFIC_ED = 0xED , REX::W32::VK_OEMSPECIFIC_EE = 0xEE , REX::W32::VK_OEMSPECIFIC_EF = 0xEF , REX::W32::VK_OEMSPECIFIC_F0 = 0xF0 ,
  REX::W32::VK_OEMSPECIFIC_F1 = 0xF1 , REX::W32::VK_OEMSPECIFIC_F2 = 0xF2 , REX::W32::VK_OEMSPECIFIC_F3 = 0xF3 , REX::W32::VK_OEMSPECIFIC_F4 = 0xF4 ,
  REX::W32::VK_OEMSPECIFIC_F5 = 0xF5 , REX::W32::VK_ATTN = 0xF6 , REX::W32::VK_CRSEL = 0xF7 , REX::W32::VK_EXSEL = 0xF8 ,
  REX::W32::VK_EREOF = 0xF9 , REX::W32::VK_PLAY = 0xFA , REX::W32::VK_ZOOM = 0xFB , REX::W32::VK_NONAME = 0xFC ,
  REX::W32::VK_PA1 = 0xFD , REX::W32::VK_OEM_CLEAR = 0xFE , REX::W32::VK_RESERVED_FF = 0xFF
}
 

Functions

bool REX::W32::GetClientRect (HWND a_wnd, RECT *a_rect) noexcept
 
std::int32_t REX::W32::GetKeyNameTextA (std::int32_t a_param, char *a_buf, std::int32_t a_bufLen) noexcept
 
std::int32_t REX::W32::GetKeyNameTextW (std::int32_t a_param, wchar_t *a_buf, std::int32_t a_bufLen) noexcept
 
std::int16_t REX::W32::GetKeyState (std::int32_t a_key) noexcept
 
bool REX::W32::GetWindowRect (HWND a_wnd, RECT *a_rect) noexcept
 
std::int32_t REX::W32::MessageBoxA (HWND a_wnd, const char *a_text, const char *a_caption, std::uint32_t a_type) noexcept
 
std::int32_t REX::W32::MessageBoxW (HWND a_wnd, const wchar_t *a_text, const wchar_t *a_caption, std::uint32_t a_type) noexcept
 
std::intptr_t REX::W32::SetWindowLongPtrA (HWND a_wnd, std::int32_t a_index, std::intptr_t a_newPtr) noexcept
 
std::int32_t REX::W32::ShowCursor (bool a_show) noexcept