win-ffi 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/lib/win-ffi/enums/comdlg32/find_replace.rb +27 -27
  3. data/lib/win-ffi/enums/comdlg32/font.rb +32 -32
  4. data/lib/win-ffi/enums/system_info.rb +53 -53
  5. data/lib/win-ffi/enums/user32/pointer_flags.rb +81 -81
  6. data/lib/win-ffi/functions/advapi32/process.rb +32 -32
  7. data/lib/win-ffi/functions/advapi32/system_info.rb +16 -16
  8. data/lib/win-ffi/functions/comdlg32.rb +6 -6
  9. data/lib/win-ffi/functions/comdlg32/error.rb +5 -5
  10. data/lib/win-ffi/functions/comdlg32/find_replace.rb +9 -9
  11. data/lib/win-ffi/functions/msvcrt/handle.rb +12 -12
  12. data/lib/win-ffi/functions/ntdll/system_info.rb +13 -13
  13. data/lib/win-ffi/functions/secur32/system_info.rb +29 -29
  14. data/lib/win-ffi/functions/thread.rb +229 -229
  15. data/lib/win-ffi/functions/user32/cursor.rb +2 -0
  16. data/lib/win-ffi/functions/user32/mouse.rb +1 -1
  17. data/lib/win-ffi/functions/user32/window/window.rb +12 -11
  18. data/lib/win-ffi/functions/winmm.rb +546 -546
  19. data/lib/win-ffi/functions/wtsapi32/process.rb +11 -11
  20. data/lib/win-ffi/struct.rb +15 -15
  21. data/lib/win-ffi/structs/comdlg32/choose_color.rb +22 -22
  22. data/lib/win-ffi/structs/comdlg32/choose_font.rb +27 -27
  23. data/lib/win-ffi/structs/comdlg32/find_replace.rb +23 -23
  24. data/lib/win-ffi/structs/gdi32/abc.rb +8 -8
  25. data/lib/win-ffi/structs/gdi32/abcfloat.rb +10 -10
  26. data/lib/win-ffi/structs/gdi32/bitmap.rb +12 -12
  27. data/lib/win-ffi/structs/gdi32/bitmap_info.rb +10 -10
  28. data/lib/win-ffi/structs/gdi32/bitmap_info_header.rb +16 -16
  29. data/lib/win-ffi/structs/gdi32/blend_function.rb +9 -9
  30. data/lib/win-ffi/structs/gdi32/display_device.rb +11 -11
  31. data/lib/win-ffi/structs/gdi32/handle_table.rb +6 -6
  32. data/lib/win-ffi/structs/gdi32/kerning_pair.rb +8 -8
  33. data/lib/win-ffi/structs/gdi32/log_brush.rb +10 -10
  34. data/lib/win-ffi/structs/gdi32/meta_file_pict.rb +9 -9
  35. data/lib/win-ffi/structs/gdi32/palette_entry.rb +9 -9
  36. data/lib/win-ffi/structs/gdi32/pixel_format_descriptor.rb +56 -56
  37. data/lib/win-ffi/structs/gdi32/rgb_quad.rb +9 -9
  38. data/lib/win-ffi/structs/os_version_info.rb +9 -9
  39. data/lib/win-ffi/structs/point.rb +9 -9
  40. data/lib/win-ffi/structs/rect.rb +41 -27
  41. data/lib/win-ffi/structs/size.rb +5 -5
  42. data/lib/win-ffi/structs/user32/controls/combobox_info.rb +14 -12
  43. data/lib/win-ffi/structs/user32/controls/scroll_info.rb +12 -12
  44. data/lib/win-ffi/structs/user32/controls/scrollbar_info.rb +14 -12
  45. data/lib/win-ffi/structs/user32/cursor_info.rb +11 -9
  46. data/lib/win-ffi/structs/user32/display_device.rb +11 -11
  47. data/lib/win-ffi/structs/user32/draw_text_params.rb +10 -10
  48. data/lib/win-ffi/structs/user32/icon_info.rb +10 -10
  49. data/lib/win-ffi/structs/user32/icon_info_ex.rb +14 -14
  50. data/lib/win-ffi/structs/user32/last_input_info.rb +7 -7
  51. data/lib/win-ffi/structs/user32/mouse_move_point.rb +9 -9
  52. data/lib/win-ffi/structs/user32/msg.rb +18 -16
  53. data/lib/win-ffi/structs/user32/pointer_info.rb +24 -24
  54. data/lib/win-ffi/structs/user32/pointer_pen_info.rb +18 -18
  55. data/lib/win-ffi/structs/user32/pointer_touch_info.rb +18 -17
  56. data/lib/win-ffi/structs/user32/raw_input_device_list.rb +9 -9
  57. data/lib/win-ffi/structs/user32/raw_input_header.rb +9 -9
  58. data/lib/win-ffi/structs/user32/touch_hit_testing_input.rb +13 -10
  59. data/lib/win-ffi/structs/user32/touch_hit_testing_proximity_evaluation.rb +9 -7
  60. data/lib/win-ffi/structs/user32/track_mouse_event.rb +9 -9
  61. data/lib/win-ffi/structs/user32/window/alt_tab_info.rb +17 -17
  62. data/lib/win-ffi/structs/user32/window/bs_info.rb +11 -11
  63. data/lib/win-ffi/structs/user32/window/dlg_template.rb +13 -13
  64. data/lib/win-ffi/structs/user32/window/flashw_info.rb +1 -1
  65. data/lib/win-ffi/structs/user32/window/gui_thread_info.rb +17 -17
  66. data/lib/win-ffi/structs/user32/window/luid.rb +7 -7
  67. data/lib/win-ffi/structs/user32/window/menu_info.rb +12 -12
  68. data/lib/win-ffi/structs/user32/window/menu_item_info.rb +17 -17
  69. data/lib/win-ffi/structs/user32/window/menu_item_template.rb +8 -8
  70. data/lib/win-ffi/structs/user32/window/menubar_info.rb +13 -11
  71. data/lib/win-ffi/structs/user32/window/msgbox_params.rb +15 -15
  72. data/lib/win-ffi/structs/user32/window/title_bar_info.rb +3 -1
  73. data/lib/win-ffi/structs/user32/window/tpm_params.rb +9 -7
  74. data/lib/win-ffi/structs/user32/window/update_layered_window_info.rb +21 -21
  75. data/lib/win-ffi/structs/user32/window/window_placement.rb +32 -32
  76. data/lib/win-ffi/structs/user32/window/window_pos.rb +46 -46
  77. data/lib/win-ffi/version.rb +1 -1
  78. metadata +5 -6
@@ -1,15 +1,15 @@
1
- module WinFFI
2
- module User32
3
- class ICONINFOEX < FFIStruct
4
- layout :cbSize, :dword,
5
- :fIcon, :bool,
6
- :xHotspot, :dword,
7
- :yHotspot, :dword,
8
- :hbmMask, :pointer,
9
- :hbmColor, :pointer,
10
- :wResID, :word,
11
- :szModName, :string,
12
- :szResName, :string
13
- end
14
- end
1
+ module WinFFI
2
+ module User32
3
+ class ICONINFOEX < FFIStruct
4
+ layout :cbSize, :dword,
5
+ :fIcon, :bool,
6
+ :xHotspot, :dword,
7
+ :yHotspot, :dword,
8
+ :hbmMask, :pointer,
9
+ :hbmColor, :pointer,
10
+ :wResID, :word,
11
+ :szModName, :string,
12
+ :szResName, :string
13
+ end
14
+ end
15
15
  end
@@ -1,8 +1,8 @@
1
- module WinFFI
2
- module User32
3
- class LASTINPUTINFO < FFIStruct
4
- layout :cbSize, :uint,
5
- :dwTime, :dword
6
- end
7
- end
1
+ module WinFFI
2
+ module User32
3
+ class LASTINPUTINFO < FFIStruct
4
+ layout :cbSize, :uint,
5
+ :dwTime, :dword
6
+ end
7
+ end
8
8
  end
@@ -1,10 +1,10 @@
1
- module WinFFI
2
- module User32
3
- class MOUSEMOVEPOINT < FFIStruct
4
- layout :x, :int,
5
- :y, :int,
6
- :time, :dword,
7
- :dwExtraInfo, :ulong
8
- end
9
- end
1
+ module WinFFI
2
+ module User32
3
+ class MOUSEMOVEPOINT < FFIStruct
4
+ layout :x, :int,
5
+ :y, :int,
6
+ :time, :dword,
7
+ :dwExtraInfo, :ulong
8
+ end
9
+ end
10
10
  end
@@ -1,16 +1,18 @@
1
- module WinFFI
2
- module User32
3
- class MSG < FFIStruct
4
- layout :hwnd, :pointer,
5
- :message, :uint,
6
- :ulong, :ulong,
7
- :long, :long,
8
- :time, :uint,
9
- :pt, POINT
10
-
11
- def to_s
12
- "<User32::MSG #{members.map { |m| "#{m} = #{self[m]}" }.join(', ')}>"
13
- end
14
- end
15
- end
16
- end
1
+ require 'win-ffi/structs/point'
2
+
3
+ module WinFFI
4
+ module User32
5
+ class MSG < FFIStruct
6
+ layout :hwnd, :pointer,
7
+ :message, :uint,
8
+ :ulong, :ulong,
9
+ :long, :long,
10
+ :time, :uint,
11
+ :pt, POINT
12
+
13
+ def to_s
14
+ "<User32::MSG #{members.map { |m| "#{m} = #{self[m]}" }.join(', ')}>"
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,25 +1,25 @@
1
- require_relative '../../enums/user32/pointer_input_type'
2
- require_relative '../../enums/user32/pointer_flags'
3
-
4
- module WinFFI
5
- module User32
6
- class POINTER_INFO < FFIStruct
7
- layout :pointerType, PointerInputType,
8
- :pointerId, :uint32,
9
- :frameId, :uint32,
10
- :pointerFlags, PointerFlags,
11
- :sourceDevice, :handle,
12
- :hwndTarget, :hwnd,
13
- :ptPixelLocation, POINT,
14
- :ptHimetricLocation, POINT,
15
- :ptPixelLocationRaw, POINT,
16
- :ptHimetricLocationRaw, POINT,
17
- :dwTime, :dword,
18
- :historyCount, :uint32,
19
- :inputData, :int32,
20
- :dwKeyStates, :dword,
21
- :PerformanceCount, :uint,
22
- :ButtonChangeType, :pointer
23
- end
24
- end
1
+ require 'win-ffi/enums/user32/pointer_input_type'
2
+ require 'win-ffi/enums/user32/pointer_flags'
3
+
4
+ module WinFFI
5
+ module User32
6
+ class POINTER_INFO < FFIStruct
7
+ layout :pointerType, PointerInputType,
8
+ :pointerId, :uint32,
9
+ :frameId, :uint32,
10
+ :pointerFlags, PointerFlags,
11
+ :sourceDevice, :handle,
12
+ :hwndTarget, :hwnd,
13
+ :ptPixelLocation, POINT,
14
+ :ptHimetricLocation, POINT,
15
+ :ptPixelLocationRaw, POINT,
16
+ :ptHimetricLocationRaw, POINT,
17
+ :dwTime, :dword,
18
+ :historyCount, :uint32,
19
+ :inputData, :int32,
20
+ :dwKeyStates, :dword,
21
+ :PerformanceCount, :uint,
22
+ :ButtonChangeType, :pointer
23
+ end
24
+ end
25
25
  end
@@ -1,18 +1,18 @@
1
- require_relative '../../enums/user32/pen_flags'
2
- require_relative '../../enums/user32/pen_mask'
3
-
4
- require_relative 'pointer_info'
5
-
6
- module WinFFI
7
- module User32
8
- class POINTER_PEN_INFO < FFIStruct
9
- layout :pointerInfo, POINTER_INFO,
10
- :penFlags, PenFlags,
11
- :penMask, PenMask,
12
- :pressure, :uint32,
13
- :rotation, :uint32,
14
- :tiltX, :int32,
15
- :tiltY, :int32
16
- end
17
- end
18
- end
1
+ require 'win-ffi/enums/user32/pen_flags'
2
+ require 'win-ffi/enums/user32/pen_mask'
3
+
4
+ require 'win-ffi/structs/user32/pointer_info'
5
+
6
+ module WinFFI
7
+ module User32
8
+ class POINTER_PEN_INFO < FFIStruct
9
+ layout :pointerInfo, POINTER_INFO,
10
+ :penFlags, PenFlags,
11
+ :penMask, PenMask,
12
+ :pressure, :uint32,
13
+ :rotation, :uint32,
14
+ :tiltX, :int32,
15
+ :tiltY, :int32
16
+ end
17
+ end
18
+ end
@@ -1,17 +1,18 @@
1
- require_relative '../../enums/user32/touch_mask'
2
-
3
- require_relative 'pointer_info'
4
-
5
- module WinFFI
6
- module User32
7
- class POINTER_TOUCH_INFO < FFIStruct
8
- layout :pointerInfo, POINTER_INFO,
9
- :touchFlags, :int,
10
- :touchMask, TouchMask,
11
- :rcContact, RECT,
12
- :rcContactRaw, RECT,
13
- :orientation, :uint32,
14
- :pressure, :uint32
15
- end
16
- end
17
- end
1
+ require 'win-ffi/enums/user32/touch_mask'
2
+
3
+ require 'win-ffi/structs/rect'
4
+ require 'win-ffi/structs/user32/pointer_info'
5
+
6
+ module WinFFI
7
+ module User32
8
+ class POINTER_TOUCH_INFO < FFIStruct
9
+ layout :pointerInfo, POINTER_INFO,
10
+ :touchFlags, :int,
11
+ :touchMask, TouchMask,
12
+ :rcContact, RECT,
13
+ :rcContactRaw, RECT,
14
+ :orientation, :uint32,
15
+ :pressure, :uint32
16
+ end
17
+ end
18
+ end
@@ -1,10 +1,10 @@
1
- require_relative '../../enums/user32/rim'
2
-
3
- module WinFFI
4
- module User32
5
- class RAWINPUTDEVICELIST < FFIStruct
6
- layout :hDevice, :handle,
7
- :dwType, RIM
8
- end
9
- end
1
+ require 'win-ffi/enums/user32/rim'
2
+
3
+ module WinFFI
4
+ module User32
5
+ class RAWINPUTDEVICELIST < FFIStruct
6
+ layout :hDevice, :handle,
7
+ :dwType, RIM
8
+ end
9
+ end
10
10
  end
@@ -1,10 +1,10 @@
1
- module WinFFI
2
- module User32
3
- class RAWINPUTHEADER < FFIStruct
4
- layout :dwType, :dword,
5
- :dwSize, :dword,
6
- :hDevice, :handle,
7
- :wParam, :wparam
8
- end
9
- end
1
+ module WinFFI
2
+ module User32
3
+ class RAWINPUTHEADER < FFIStruct
4
+ layout :dwType, :dword,
5
+ :dwSize, :dword,
6
+ :hDevice, :handle,
7
+ :wParam, :wparam
8
+ end
9
+ end
10
10
  end
@@ -1,11 +1,14 @@
1
- module WinFFI
2
- module User32
3
- class TOUCH_HIT_TESTING_INPUT < FFIStruct
4
- layout :pointerId, :uint32,
5
- :point, POINT,
6
- :boundingBox, RECT,
7
- :nonOccludedBoundingBox, RECT,
8
- :orientation, :uint32
9
- end
10
- end
1
+ require 'win-ffi/structs/point'
2
+ require 'win-ffi/structs/rect'
3
+
4
+ module WinFFI
5
+ module User32
6
+ class TOUCH_HIT_TESTING_INPUT < FFIStruct
7
+ layout :pointerId, :uint32,
8
+ :point, POINT,
9
+ :boundingBox, RECT,
10
+ :nonOccludedBoundingBox, RECT,
11
+ :orientation, :uint32
12
+ end
13
+ end
11
14
  end
@@ -1,8 +1,10 @@
1
- module WinFFI
2
- module User32
3
- class TOUCH_HIT_TESTING_PROXIMITY_EVALUATION < FFIStruct
4
- layout :score, :uint16,
5
- :adjustedPoint, POINT
6
- end
7
- end
1
+ require 'win-ffi/structs/point'
2
+
3
+ module WinFFI
4
+ module User32
5
+ class TOUCH_HIT_TESTING_PROXIMITY_EVALUATION < FFIStruct
6
+ layout :score, :uint16,
7
+ :adjustedPoint, POINT
8
+ end
9
+ end
8
10
  end
@@ -1,10 +1,10 @@
1
- module WinFFI
2
- module User32
3
- class TRACKMOUSEEVENT < FFIStruct
4
- layout :cbSize, :dword,
5
- :dwFlags, :dword,
6
- :hwndTrack, :hwnd,
7
- :dwHoverTime, :dword
8
- end
9
- end
1
+ module WinFFI
2
+ module User32
3
+ class TRACKMOUSEEVENT < FFIStruct
4
+ layout :cbSize, :dword,
5
+ :dwFlags, :dword,
6
+ :hwndTrack, :hwnd,
7
+ :dwHoverTime, :dword
8
+ end
9
+ end
10
10
  end
@@ -1,17 +1,17 @@
1
- require 'win-ffi/structs/point'
2
-
3
- module WinFFI
4
- module User32
5
- class AltTabInfo < FFIStruct
6
- layout :cbSize, :dword,
7
- :cItems, :int,
8
- :cColumns, :int,
9
- :cRows, :int,
10
- :iColFocus, :int,
11
- :iRowFocus, :int,
12
- :cxItem, :int,
13
- :cyItem, :int,
14
- :ptStart, POINT
15
- end
16
- end
17
- end
1
+ require 'win-ffi/structs/point'
2
+
3
+ module WinFFI
4
+ module User32
5
+ class ALTTABINFO < FFIStruct
6
+ layout :cbSize, :dword,
7
+ :cItems, :int,
8
+ :cColumns, :int,
9
+ :cRows, :int,
10
+ :iColFocus, :int,
11
+ :iRowFocus, :int,
12
+ :cxItem, :int,
13
+ :cyItem, :int,
14
+ :ptStart, POINT
15
+ end
16
+ end
17
+ end
@@ -1,12 +1,12 @@
1
- require_relative '../../../structs/user32/window/luid'
2
-
3
- module WinFFI
4
- module User32
5
- class BSINFO < FFIStruct
6
- layout :cItems, :int,
7
- :hdesk, :hdesk,
8
- :hwnd, :hwnd,
9
- :luid, LUID
10
- end
11
- end
1
+ require 'win-ffi/structs/user32/window/luid'
2
+
3
+ module WinFFI
4
+ module User32
5
+ class BSINFO < FFIStruct
6
+ layout :cItems, :int,
7
+ :hdesk, :hdesk,
8
+ :hwnd, :hwnd,
9
+ :luid, LUID
10
+ end
11
+ end
12
12
  end
@@ -1,13 +1,13 @@
1
- module WinFFI
2
- module User32
3
- class DLGTEMPLATE < FFIStruct
4
- layout :style, :dword,
5
- :dwExtendedStyle, :dword,
6
- :cdit, :word,
7
- :x, :short,
8
- :y, :short,
9
- :cx, :short,
10
- :cy, :short
11
- end
12
- end
13
- end
1
+ module WinFFI
2
+ module User32
3
+ class DLGTEMPLATE < FFIStruct
4
+ layout :style, :dword,
5
+ :dwExtendedStyle, :dword,
6
+ :cdit, :word,
7
+ :x, :short,
8
+ :y, :short,
9
+ :cx, :short,
10
+ :cy, :short
11
+ end
12
+ end
13
+ end
@@ -1,6 +1,6 @@
1
1
  module WinFFI
2
2
  module User32
3
- class FlashwInfo < FFIStruct
3
+ class FLASHWINFO < FFIStruct
4
4
  layout :cbSize, :uint,
5
5
  :hwnd, :hwnd,
6
6
  :dwFlags, :dword,
@@ -1,17 +1,17 @@
1
- require 'win-ffi/structs/rect'
2
-
3
- module WinFFI
4
- module User32
5
- class GuiThreadInfo < FFIStruct
6
- layout :cbSize, :dword,
7
- :flags, :dword,
8
- :hwndActive, :hwnd,
9
- :hwndFocus, :hwnd,
10
- :hwndCapture, :hwnd,
11
- :hwndMenuOwner, :hwnd,
12
- :hwndMoveSize, :hwnd,
13
- :hwndCaret, :hwnd,
14
- :rcCaret, RECT
15
- end
16
- end
17
- end
1
+ require 'win-ffi/structs/rect'
2
+
3
+ module WinFFI
4
+ module User32
5
+ class GUITHREADINFO < FFIStruct
6
+ layout :cbSize, :dword,
7
+ :flags, :dword,
8
+ :hwndActive, :hwnd,
9
+ :hwndFocus, :hwnd,
10
+ :hwndCapture, :hwnd,
11
+ :hwndMenuOwner, :hwnd,
12
+ :hwndMoveSize, :hwnd,
13
+ :hwndCaret, :hwnd,
14
+ :rcCaret, RECT
15
+ end
16
+ end
17
+ end