aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/ffi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/ffi.rs')
-rw-r--r--src/win32/ffi.rs141
1 files changed, 141 insertions, 0 deletions
diff --git a/src/win32/ffi.rs b/src/win32/ffi.rs
index 937de67..f10ab0f 100644
--- a/src/win32/ffi.rs
+++ b/src/win32/ffi.rs
@@ -158,10 +158,151 @@ pub static SWP_NOSIZE: UINT = 0x0001;
pub static SWP_NOZORDER: UINT = 0x0004;
pub static SWP_SHOWWINDOW: UINT = 0x0040;
+// http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
+pub static VK_LBUTTON: WPARAM = 0x01;
+pub static VK_RBUTTON: WPARAM = 0x02;
+pub static VK_CANCEL: WPARAM = 0x03;
+pub static VK_MBUTTON: WPARAM = 0x04;
+pub static VK_XBUTTON1: WPARAM = 0x05;
+pub static VK_XBUTTON2: WPARAM = 0x06;
+pub static VK_BACK: WPARAM = 0x08;
+pub static VK_TAB: WPARAM = 0x09;
+pub static VK_CLEAR: WPARAM = 0x0C;
+pub static VK_RETURN: WPARAM = 0x0D;
+pub static VK_SHIFT: WPARAM = 0x10;
+pub static VK_CONTROL: WPARAM = 0x11;
+pub static VK_MENU: WPARAM = 0x12;
+pub static VK_PAUSE: WPARAM = 0x13;
+pub static VK_CAPITAL: WPARAM = 0x14;
+pub static VK_KANA: WPARAM = 0x15;
+pub static VK_HANGUEL: WPARAM = 0x15;
+pub static VK_HANGUL: WPARAM = 0x15;
+pub static VK_JUNJA: WPARAM = 0x17;
+pub static VK_FINAL: WPARAM = 0x18;
+pub static VK_HANJA: WPARAM = 0x19;
+pub static VK_KANJI: WPARAM = 0x19;
+pub static VK_ESCAPE: WPARAM = 0x1B;
+pub static VK_CONVERT: WPARAM = 0x1C;
+pub static VK_NONCONVERT: WPARAM = 0x1D;
+pub static VK_ACCEPT: WPARAM = 0x1E;
+pub static VK_MODECHANGE: WPARAM = 0x1F;
+pub static VK_SPACE: WPARAM = 0x20;
+pub static VK_PRIOR: WPARAM = 0x21;
+pub static VK_NEXT: WPARAM = 0x22;
+pub static VK_END: WPARAM = 0x23;
+pub static VK_HOME: WPARAM = 0x24;
+pub static VK_LEFT: WPARAM = 0x25;
+pub static VK_UP: WPARAM = 0x26;
+pub static VK_RIGHT: WPARAM = 0x27;
+pub static VK_DOWN: WPARAM = 0x28;
+pub static VK_SELECT: WPARAM = 0x29;
+pub static VK_PRINT: WPARAM = 0x2A;
+pub static VK_EXECUTE: WPARAM = 0x2B;
+pub static VK_SNAPSHOT: WPARAM = 0x2C;
+pub static VK_INSERT: WPARAM = 0x2D;
+pub static VK_DELETE: WPARAM = 0x2E;
+pub static VK_HELP: WPARAM = 0x2F;
+pub static VK_LWIN: WPARAM = 0x5B;
+pub static VK_RWIN: WPARAM = 0x5C;
+pub static VK_APPS: WPARAM = 0x5D;
+pub static VK_SLEEP: WPARAM = 0x5F;
+pub static VK_NUMPAD0: WPARAM = 0x60;
+pub static VK_NUMPAD1: WPARAM = 0x61;
+pub static VK_NUMPAD2: WPARAM = 0x62;
+pub static VK_NUMPAD3: WPARAM = 0x63;
+pub static VK_NUMPAD4: WPARAM = 0x64;
+pub static VK_NUMPAD5: WPARAM = 0x65;
+pub static VK_NUMPAD6: WPARAM = 0x66;
+pub static VK_NUMPAD7: WPARAM = 0x67;
+pub static VK_NUMPAD8: WPARAM = 0x68;
+pub static VK_NUMPAD9: WPARAM = 0x69;
+pub static VK_MULTIPLY: WPARAM = 0x6A;
+pub static VK_ADD: WPARAM = 0x6B;
+pub static VK_SEPARATOR: WPARAM = 0x6C;
+pub static VK_SUBTRACT: WPARAM = 0x6D;
+pub static VK_DECIMAL: WPARAM = 0x6E;
+pub static VK_DIVIDE: WPARAM = 0x6F;
+pub static VK_F1: WPARAM = 0x70;
+pub static VK_F2: WPARAM = 0x71;
+pub static VK_F3: WPARAM = 0x72;
+pub static VK_F4: WPARAM = 0x73;
+pub static VK_F5: WPARAM = 0x74;
+pub static VK_F6: WPARAM = 0x75;
+pub static VK_F7: WPARAM = 0x76;
+pub static VK_F8: WPARAM = 0x77;
+pub static VK_F9: WPARAM = 0x78;
+pub static VK_F10: WPARAM = 0x79;
+pub static VK_F11: WPARAM = 0x7A;
+pub static VK_F12: WPARAM = 0x7B;
+pub static VK_F13: WPARAM = 0x7C;
+pub static VK_F14: WPARAM = 0x7D;
+pub static VK_F15: WPARAM = 0x7E;
+pub static VK_F16: WPARAM = 0x7F;
+pub static VK_F17: WPARAM = 0x80;
+pub static VK_F18: WPARAM = 0x81;
+pub static VK_F19: WPARAM = 0x82;
+pub static VK_F20: WPARAM = 0x83;
+pub static VK_F21: WPARAM = 0x84;
+pub static VK_F22: WPARAM = 0x85;
+pub static VK_F23: WPARAM = 0x86;
+pub static VK_F24: WPARAM = 0x87;
+pub static VK_NUMLOCK: WPARAM = 0x90;
+pub static VK_SCROLL: WPARAM = 0x91;
+pub static VK_LSHIFT: WPARAM = 0xA0;
+pub static VK_RSHIFT: WPARAM = 0xA1;
+pub static VK_LCONTROL: WPARAM = 0xA2;
+pub static VK_RCONTROL: WPARAM = 0xA3;
+pub static VK_LMENU: WPARAM = 0xA4;
+pub static VK_RMENU: WPARAM = 0xA5;
+pub static VK_BROWSER_BACK: WPARAM = 0xA6;
+pub static VK_BROWSER_FORWARD: WPARAM = 0xA7;
+pub static VK_BROWSER_REFRESH: WPARAM = 0xA8;
+pub static VK_BROWSER_STOP: WPARAM = 0xA9;
+pub static VK_BROWSER_SEARCH: WPARAM = 0xAA;
+pub static VK_BROWSER_FAVORITES: WPARAM = 0xAB;
+pub static VK_BROWSER_HOME: WPARAM = 0xAC;
+pub static VK_VOLUME_MUTE: WPARAM = 0xAD;
+pub static VK_VOLUME_DOWN: WPARAM = 0xAE;
+pub static VK_VOLUME_UP: WPARAM = 0xAF;
+pub static VK_MEDIA_NEXT_TRACK: WPARAM = 0xB0;
+pub static VK_MEDIA_PREV_TRACK: WPARAM = 0xB1;
+pub static VK_MEDIA_STOP: WPARAM = 0xB2;
+pub static VK_MEDIA_PLAY_PAUSE: WPARAM = 0xB3;
+pub static VK_LAUNCH_MAIL: WPARAM = 0xB4;
+pub static VK_LAUNCH_MEDIA_SELECT: WPARAM = 0xB5;
+pub static VK_LAUNCH_APP1: WPARAM = 0xB6;
+pub static VK_LAUNCH_APP2: WPARAM = 0xB7;
+pub static VK_OEM_1: WPARAM = 0xBA;
+pub static VK_OEM_PLUS: WPARAM = 0xBB;
+pub static VK_OEM_COMMA: WPARAM = 0xBC;
+pub static VK_OEM_MINUS: WPARAM = 0xBD;
+pub static VK_OEM_PERIOD: WPARAM = 0xBE;
+pub static VK_OEM_2: WPARAM = 0xBF;
+pub static VK_OEM_3: WPARAM = 0xC0;
+pub static VK_OEM_4: WPARAM = 0xDB;
+pub static VK_OEM_5: WPARAM = 0xDC;
+pub static VK_OEM_6: WPARAM = 0xDD;
+pub static VK_OEM_7: WPARAM = 0xDE;
+pub static VK_OEM_8: WPARAM = 0xDF;
+pub static VK_OEM_102: WPARAM = 0xE2;
+pub static VK_PROCESSKEY: WPARAM = 0xE5;
+pub static VK_PACKET: WPARAM = 0xE7;
+pub static VK_ATTN: WPARAM = 0xF6;
+pub static VK_CRSEL: WPARAM = 0xF7;
+pub static VK_EXSEL: WPARAM = 0xF8;
+pub static VK_EREOF: WPARAM = 0xF9;
+pub static VK_PLAY: WPARAM = 0xFA;
+pub static VK_ZOOM: WPARAM = 0xFB;
+pub static VK_NONAME: WPARAM = 0xFC;
+pub static VK_PA1: WPARAM = 0xFD;
+pub static VK_OEM_CLEAR: WPARAM = 0xFE;
+
// messages
pub static WM_CHAR: UINT = 0x0102;
pub static WM_COMMAND: UINT = 0x0111;
pub static WM_DESTROY: UINT = 0x0002;
+pub static WM_KEYDOWN: UINT = 0x0100;
+pub static WM_KEYUP: UINT = 0x0101;
pub static WM_MOUSEMOVE: UINT = 0x0200;
pub static WM_PAINT: UINT = 0x000F;
pub static WM_SIZE: UINT = 0x0005;