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.
- checksums.yaml +4 -4
- data/lib/win-ffi/enums/comdlg32/find_replace.rb +27 -27
- data/lib/win-ffi/enums/comdlg32/font.rb +32 -32
- data/lib/win-ffi/enums/system_info.rb +53 -53
- data/lib/win-ffi/enums/user32/pointer_flags.rb +81 -81
- data/lib/win-ffi/functions/advapi32/process.rb +32 -32
- data/lib/win-ffi/functions/advapi32/system_info.rb +16 -16
- data/lib/win-ffi/functions/comdlg32.rb +6 -6
- data/lib/win-ffi/functions/comdlg32/error.rb +5 -5
- data/lib/win-ffi/functions/comdlg32/find_replace.rb +9 -9
- data/lib/win-ffi/functions/msvcrt/handle.rb +12 -12
- data/lib/win-ffi/functions/ntdll/system_info.rb +13 -13
- data/lib/win-ffi/functions/secur32/system_info.rb +29 -29
- data/lib/win-ffi/functions/thread.rb +229 -229
- data/lib/win-ffi/functions/user32/cursor.rb +2 -0
- data/lib/win-ffi/functions/user32/mouse.rb +1 -1
- data/lib/win-ffi/functions/user32/window/window.rb +12 -11
- data/lib/win-ffi/functions/winmm.rb +546 -546
- data/lib/win-ffi/functions/wtsapi32/process.rb +11 -11
- data/lib/win-ffi/struct.rb +15 -15
- data/lib/win-ffi/structs/comdlg32/choose_color.rb +22 -22
- data/lib/win-ffi/structs/comdlg32/choose_font.rb +27 -27
- data/lib/win-ffi/structs/comdlg32/find_replace.rb +23 -23
- data/lib/win-ffi/structs/gdi32/abc.rb +8 -8
- data/lib/win-ffi/structs/gdi32/abcfloat.rb +10 -10
- data/lib/win-ffi/structs/gdi32/bitmap.rb +12 -12
- data/lib/win-ffi/structs/gdi32/bitmap_info.rb +10 -10
- data/lib/win-ffi/structs/gdi32/bitmap_info_header.rb +16 -16
- data/lib/win-ffi/structs/gdi32/blend_function.rb +9 -9
- data/lib/win-ffi/structs/gdi32/display_device.rb +11 -11
- data/lib/win-ffi/structs/gdi32/handle_table.rb +6 -6
- data/lib/win-ffi/structs/gdi32/kerning_pair.rb +8 -8
- data/lib/win-ffi/structs/gdi32/log_brush.rb +10 -10
- data/lib/win-ffi/structs/gdi32/meta_file_pict.rb +9 -9
- data/lib/win-ffi/structs/gdi32/palette_entry.rb +9 -9
- data/lib/win-ffi/structs/gdi32/pixel_format_descriptor.rb +56 -56
- data/lib/win-ffi/structs/gdi32/rgb_quad.rb +9 -9
- data/lib/win-ffi/structs/os_version_info.rb +9 -9
- data/lib/win-ffi/structs/point.rb +9 -9
- data/lib/win-ffi/structs/rect.rb +41 -27
- data/lib/win-ffi/structs/size.rb +5 -5
- data/lib/win-ffi/structs/user32/controls/combobox_info.rb +14 -12
- data/lib/win-ffi/structs/user32/controls/scroll_info.rb +12 -12
- data/lib/win-ffi/structs/user32/controls/scrollbar_info.rb +14 -12
- data/lib/win-ffi/structs/user32/cursor_info.rb +11 -9
- data/lib/win-ffi/structs/user32/display_device.rb +11 -11
- data/lib/win-ffi/structs/user32/draw_text_params.rb +10 -10
- data/lib/win-ffi/structs/user32/icon_info.rb +10 -10
- data/lib/win-ffi/structs/user32/icon_info_ex.rb +14 -14
- data/lib/win-ffi/structs/user32/last_input_info.rb +7 -7
- data/lib/win-ffi/structs/user32/mouse_move_point.rb +9 -9
- data/lib/win-ffi/structs/user32/msg.rb +18 -16
- data/lib/win-ffi/structs/user32/pointer_info.rb +24 -24
- data/lib/win-ffi/structs/user32/pointer_pen_info.rb +18 -18
- data/lib/win-ffi/structs/user32/pointer_touch_info.rb +18 -17
- data/lib/win-ffi/structs/user32/raw_input_device_list.rb +9 -9
- data/lib/win-ffi/structs/user32/raw_input_header.rb +9 -9
- data/lib/win-ffi/structs/user32/touch_hit_testing_input.rb +13 -10
- data/lib/win-ffi/structs/user32/touch_hit_testing_proximity_evaluation.rb +9 -7
- data/lib/win-ffi/structs/user32/track_mouse_event.rb +9 -9
- data/lib/win-ffi/structs/user32/window/alt_tab_info.rb +17 -17
- data/lib/win-ffi/structs/user32/window/bs_info.rb +11 -11
- data/lib/win-ffi/structs/user32/window/dlg_template.rb +13 -13
- data/lib/win-ffi/structs/user32/window/flashw_info.rb +1 -1
- data/lib/win-ffi/structs/user32/window/gui_thread_info.rb +17 -17
- data/lib/win-ffi/structs/user32/window/luid.rb +7 -7
- data/lib/win-ffi/structs/user32/window/menu_info.rb +12 -12
- data/lib/win-ffi/structs/user32/window/menu_item_info.rb +17 -17
- data/lib/win-ffi/structs/user32/window/menu_item_template.rb +8 -8
- data/lib/win-ffi/structs/user32/window/menubar_info.rb +13 -11
- data/lib/win-ffi/structs/user32/window/msgbox_params.rb +15 -15
- data/lib/win-ffi/structs/user32/window/title_bar_info.rb +3 -1
- data/lib/win-ffi/structs/user32/window/tpm_params.rb +9 -7
- data/lib/win-ffi/structs/user32/window/update_layered_window_info.rb +21 -21
- data/lib/win-ffi/structs/user32/window/window_placement.rb +32 -32
- data/lib/win-ffi/structs/user32/window/window_pos.rb +46 -46
- data/lib/win-ffi/version.rb +1 -1
- 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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
:
|
8
|
-
:
|
9
|
-
:
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
2
|
-
|
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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
:
|
11
|
-
:
|
12
|
-
:
|
13
|
-
:
|
14
|
-
:
|
15
|
-
|
16
|
-
|
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
|
-
|
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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
:
|
9
|
-
|
10
|
-
|
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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
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
|
-
|
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,17 +1,17 @@
|
|
1
|
-
require 'win-ffi/structs/rect'
|
2
|
-
|
3
|
-
module WinFFI
|
4
|
-
module User32
|
5
|
-
class
|
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
|