librex 0.0.42 → 0.0.43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/README.markdown +1 -1
  2. data/lib/rex/compat.rb +10 -0
  3. data/lib/rex/post/meterpreter/channels/pools/file.rb +1 -1
  4. data/lib/rex/post/meterpreter/extensions/stdapi/fs/dir.rb +20 -18
  5. data/lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb +11 -22
  6. data/lib/rex/post/meterpreter/extensions/stdapi/fs/file_stat.rb +2 -1
  7. data/lib/rex/post/meterpreter/extensions/stdapi/railgun.rb.ts.rb +4 -0
  8. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb +27 -0
  9. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb +7 -0
  10. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_advapi32.rb +498 -242
  11. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_iphlpapi.rb +18 -18
  12. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_kernel32.rb +695 -694
  13. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_netapi32.rb +6 -5
  14. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_ntdll.rb +24 -24
  15. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_shell32.rb +5 -4
  16. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_user32.rb +551 -551
  17. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_ws2_32.rb +93 -93
  18. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/dll.rb +56 -42
  19. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/dll.rb.ut.rb +4 -4
  20. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_helper.rb.ut.rb +5 -5
  21. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_wrapper.rb +26 -0
  22. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/dll_wrapper.rb.ut.rb +63 -0
  23. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/multicall.rb +4 -4
  24. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/railgun.rb +151 -96
  25. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/railgun.rb.ut.rb +80 -5
  26. data/lib/rex/post/meterpreter/extensions/stdapi/sys/config.rb +3 -3
  27. data/lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb +11 -11
  28. data/lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb +3 -3
  29. data/lib/rex/post/meterpreter/packet.rb +12 -11
  30. data/lib/rex/proto/dhcp/server.rb +36 -42
  31. data/lib/rex/socket/range_walker.rb +1 -1
  32. data/lib/rex/text.rb +18 -1
  33. data/lib/rex/ui/text/table.rb +1 -1
  34. metadata +5 -3
@@ -8,20 +8,21 @@ module Def
8
8
 
9
9
  class Def_netapi32
10
10
 
11
- def self.add_imports(railgun)
12
-
13
- railgun.add_dll('netapi32')
11
+ def self.create_dll(dll_path = 'netapi32')
12
+ dll = DLL.new(dll_path, ApiConstants.manager)
14
13
 
15
- railgun.add_function( 'netapi32', 'NetUserDel', 'DWORD',[
14
+ dll.add_function('NetUserDel', 'DWORD',[
16
15
  ["PWCHAR","servername","in"],
17
16
  ["PWCHAR","username","in"],
18
17
  ])
19
18
 
20
- railgun.add_function( 'netapi32', 'NetGetJoinInformation', 'DWORD',[
19
+ dll.add_function('NetGetJoinInformation', 'DWORD',[
21
20
  ["PBLOB","lpServer","in"],
22
21
  ["PDWORD","lpNameBugger","out"],
23
22
  ["PDWORD","BufferType","out"]
24
23
  ])
24
+
25
+ return dll
25
26
  end
26
27
 
27
28
  end
@@ -8,15 +8,14 @@ module Def
8
8
 
9
9
  class Def_ntdll
10
10
 
11
- def self.add_imports(railgun)
12
-
13
- railgun.add_dll('ntdll')
11
+ def self.create_dll(dll_path = 'ntdll')
12
+ dll = DLL.new(dll_path, ApiConstants.manager)
14
13
 
15
- railgun.add_function( 'ntdll', 'NtClose', 'DWORD',[
14
+ dll.add_function('NtClose', 'DWORD',[
16
15
  ["DWORD","Handle","in"],
17
16
  ])
18
17
 
19
- railgun.add_function( 'ntdll', 'NtCreateFile', 'DWORD',[
18
+ dll.add_function('NtCreateFile', 'DWORD',[
20
19
  ["PDWORD","FileHandle","inout"],
21
20
  ["DWORD","DesiredAccess","in"],
22
21
  ["PBLOB","ObjectAttributes","in"],
@@ -30,7 +29,7 @@ class Def_ntdll
30
29
  ["DWORD","EaLength","in"],
31
30
  ])
32
31
 
33
- railgun.add_function( 'ntdll', 'NtDeviceIoControlFile', 'DWORD',[
32
+ dll.add_function('NtDeviceIoControlFile', 'DWORD',[
34
33
  ["DWORD","FileHandle","in"],
35
34
  ["DWORD","Event","in"],
36
35
  ["PBLOB","ApcRoutine","in"],
@@ -43,7 +42,7 @@ class Def_ntdll
43
42
  ["DWORD","OutputBufferLength","in"],
44
43
  ])
45
44
 
46
- railgun.add_function( 'ntdll', 'NtOpenFile', 'DWORD',[
45
+ dll.add_function('NtOpenFile', 'DWORD',[
47
46
  ["PDWORD","FileHandle","inout"],
48
47
  ["DWORD","DesiredAccess","in"],
49
48
  ["PBLOB","ObjectAttributes","in"],
@@ -52,7 +51,7 @@ class Def_ntdll
52
51
  ["DWORD","OpenOptions","in"],
53
52
  ])
54
53
 
55
- railgun.add_function( 'ntdll', 'NtQueryInformationProcess', 'DWORD',[
54
+ dll.add_function('NtQueryInformationProcess', 'DWORD',[
56
55
  ["DWORD","ProcessHandle","in"],
57
56
  ["DWORD","ProcessInformationClass","in"],
58
57
  ["PBLOB","ProcessInformation","inout"],
@@ -60,7 +59,7 @@ class Def_ntdll
60
59
  ["PDWORD","ReturnLength","inout"],
61
60
  ])
62
61
 
63
- railgun.add_function( 'ntdll', 'NtQueryInformationThread', 'DWORD',[
62
+ dll.add_function('NtQueryInformationThread', 'DWORD',[
64
63
  ["DWORD","ThreadHandle","in"],
65
64
  ["DWORD","ThreadInformationClass","in"],
66
65
  ["PBLOB","ThreadInformation","inout"],
@@ -68,82 +67,83 @@ class Def_ntdll
68
67
  ["PDWORD","ReturnLength","inout"],
69
68
  ])
70
69
 
71
- railgun.add_function( 'ntdll', 'NtQuerySystemInformation', 'DWORD',[
70
+ dll.add_function('NtQuerySystemInformation', 'DWORD',[
72
71
  ["DWORD","SystemInformationClass","in"],
73
72
  ["PBLOB","SystemInformation","inout"],
74
73
  ["DWORD","SystemInformationLength","in"],
75
74
  ["PDWORD","ReturnLength","inout"],
76
75
  ])
77
76
 
78
- railgun.add_function( 'ntdll', 'NtQuerySystemTime', 'DWORD',[
77
+ dll.add_function('NtQuerySystemTime', 'DWORD',[
79
78
  ["PBLOB","SystemTime","inout"],
80
79
  ])
81
80
 
82
- railgun.add_function( 'ntdll', 'NtWaitForSingleObject', 'DWORD',[
81
+ dll.add_function('NtWaitForSingleObject', 'DWORD',[
83
82
  ["DWORD","Handle","in"],
84
83
  ["BOOL","Alertable","in"],
85
84
  ["PBLOB","Timeout","in"],
86
85
  ])
87
86
 
88
- railgun.add_function( 'ntdll', 'RtlCharToInteger', 'DWORD',[
87
+ dll.add_function('RtlCharToInteger', 'DWORD',[
89
88
  ["PBLOB","String","inout"],
90
89
  ["DWORD","Base","in"],
91
90
  ["PDWORD","Value","inout"],
92
91
  ])
93
92
 
94
- railgun.add_function( 'ntdll', 'RtlConvertSidToUnicodeString', 'DWORD',[
93
+ dll.add_function('RtlConvertSidToUnicodeString', 'DWORD',[
95
94
  ["PBLOB","UnicodeString","inout"],
96
95
  ["PBLOB","Sid","inout"],
97
96
  ["BOOL","AllocateDestinationString","in"],
98
97
  ])
99
98
 
100
- railgun.add_function( 'ntdll', 'RtlFreeAnsiString', 'VOID',[
99
+ dll.add_function('RtlFreeAnsiString', 'VOID',[
101
100
  ["PBLOB","AnsiString","inout"],
102
101
  ])
103
102
 
104
- railgun.add_function( 'ntdll', 'RtlFreeOemString', 'VOID',[
103
+ dll.add_function('RtlFreeOemString', 'VOID',[
105
104
  ["PBLOB","OemString","inout"],
106
105
  ])
107
106
 
108
- railgun.add_function( 'ntdll', 'RtlFreeUnicodeString', 'VOID',[
107
+ dll.add_function('RtlFreeUnicodeString', 'VOID',[
109
108
  ["PBLOB","UnicodeString","inout"],
110
109
  ])
111
110
 
112
- railgun.add_function( 'ntdll', 'RtlInitAnsiString', 'VOID',[
111
+ dll.add_function('RtlInitAnsiString', 'VOID',[
113
112
  ["PBLOB","DestinationString","inout"],
114
113
  ["PBLOB","SourceString","inout"],
115
114
  ])
116
115
 
117
- railgun.add_function( 'ntdll', 'RtlInitString', 'VOID',[
116
+ dll.add_function('RtlInitString', 'VOID',[
118
117
  ["PBLOB","DestinationString","inout"],
119
118
  ["PBLOB","SourceString","inout"],
120
119
  ])
121
120
 
122
- railgun.add_function( 'ntdll', 'RtlLocalTimeToSystemTime', 'DWORD',[
121
+ dll.add_function('RtlLocalTimeToSystemTime', 'DWORD',[
123
122
  ["PBLOB","LocalTime","in"],
124
123
  ["PBLOB","SystemTime","inout"],
125
124
  ])
126
125
 
127
- railgun.add_function( 'ntdll', 'RtlNtStatusToDosError', 'DWORD',[
126
+ dll.add_function('RtlNtStatusToDosError', 'DWORD',[
128
127
  ["DWORD","Status","in"],
129
128
  ])
130
129
 
131
- railgun.add_function( 'ntdll', 'RtlTimeToSecondsSince1970', 'BOOL',[
130
+ dll.add_function('RtlTimeToSecondsSince1970', 'BOOL',[
132
131
  ["PBLOB","Time","inout"],
133
132
  ["PDWORD","ElapsedSeconds","inout"],
134
133
  ])
135
134
 
136
- railgun.add_function( 'ntdll', 'RtlUniform', 'DWORD',[
135
+ dll.add_function('RtlUniform', 'DWORD',[
137
136
  ["PDWORD","Seed","inout"],
138
137
  ])
139
138
 
140
- railgun.add_function( 'ntdll', 'RtlUnwind', 'VOID',[
139
+ dll.add_function('RtlUnwind', 'VOID',[
141
140
  ["PBLOB","TargetFrame","in"],
142
141
  ["PBLOB","TargetIp","in"],
143
142
  ["PBLOB","ExceptionRecord","in"],
144
143
  ["PBLOB","ReturnValue","in"],
145
144
  ])
146
145
 
146
+ return dll
147
147
  end
148
148
 
149
149
  end
@@ -8,12 +8,13 @@ module Def
8
8
 
9
9
  class Def_shell32
10
10
 
11
- def self.add_imports(railgun)
12
-
13
- railgun.add_dll('shell32')
11
+ def self.create_dll(dll_path = 'shell32')
12
+ dll = DLL.new(dll_path, ApiConstants.manager)
14
13
 
15
- railgun.add_function( 'shell32', 'IsUserAnAdmin', 'BOOL', [
14
+ dll.add_function('IsUserAnAdmin', 'BOOL', [
16
15
  ])
16
+
17
+ return dll
17
18
  end
18
19
 
19
20
  end
@@ -8,79 +8,78 @@ module Def
8
8
 
9
9
  class Def_user32
10
10
 
11
- def self.add_imports(railgun)
11
+ def self.create_dll(dll_path = 'user32')
12
+ dll = DLL.new(dll_path, ApiConstants.manager)
12
13
 
13
- railgun.add_dll('user32')
14
-
15
- railgun.add_function( 'user32', 'ActivateKeyboardLayout', 'DWORD',[
14
+ dll.add_function('ActivateKeyboardLayout', 'DWORD',[
16
15
  ["DWORD","hkl","in"],
17
16
  ["DWORD","Flags","in"],
18
17
  ])
19
18
 
20
- railgun.add_function( 'user32', 'AdjustWindowRect', 'BOOL',[
19
+ dll.add_function('AdjustWindowRect', 'BOOL',[
21
20
  ["PBLOB","lpRect","inout"],
22
21
  ["DWORD","dwStyle","in"],
23
22
  ["BOOL","bMenu","in"],
24
23
  ])
25
24
 
26
- railgun.add_function( 'user32', 'AdjustWindowRectEx', 'BOOL',[
25
+ dll.add_function('AdjustWindowRectEx', 'BOOL',[
27
26
  ["PBLOB","lpRect","inout"],
28
27
  ["DWORD","dwStyle","in"],
29
28
  ["BOOL","bMenu","in"],
30
29
  ["DWORD","dwExStyle","in"],
31
30
  ])
32
31
 
33
- railgun.add_function( 'user32', 'AllowSetForegroundWindow', 'BOOL',[
32
+ dll.add_function('AllowSetForegroundWindow', 'BOOL',[
34
33
  ["DWORD","dwProcessId","in"],
35
34
  ])
36
35
 
37
- railgun.add_function( 'user32', 'AnimateWindow', 'BOOL',[
36
+ dll.add_function('AnimateWindow', 'BOOL',[
38
37
  ["DWORD","hWnd","in"],
39
38
  ["DWORD","dwTime","in"],
40
39
  ["DWORD","dwFlags","in"],
41
40
  ])
42
41
 
43
- railgun.add_function( 'user32', 'AnyPopup', 'BOOL',[
42
+ dll.add_function('AnyPopup', 'BOOL',[
44
43
  ])
45
44
 
46
- railgun.add_function( 'user32', 'AppendMenuA', 'BOOL',[
45
+ dll.add_function('AppendMenuA', 'BOOL',[
47
46
  ["DWORD","hMenu","in"],
48
47
  ["DWORD","uFlags","in"],
49
48
  ["DWORD","uIDNewItem","in"],
50
49
  ["PCHAR","lpNewItem","in"],
51
50
  ])
52
51
 
53
- railgun.add_function( 'user32', 'AppendMenuW', 'BOOL',[
52
+ dll.add_function('AppendMenuW', 'BOOL',[
54
53
  ["DWORD","hMenu","in"],
55
54
  ["DWORD","uFlags","in"],
56
55
  ["DWORD","uIDNewItem","in"],
57
56
  ["PWCHAR","lpNewItem","in"],
58
57
  ])
59
58
 
60
- railgun.add_function( 'user32', 'ArrangeIconicWindows', 'DWORD',[
59
+ dll.add_function('ArrangeIconicWindows', 'DWORD',[
61
60
  ["DWORD","hWnd","in"],
62
61
  ])
63
62
 
64
- railgun.add_function( 'user32', 'AttachThreadInput', 'BOOL',[
63
+ dll.add_function('AttachThreadInput', 'BOOL',[
65
64
  ["DWORD","idAttach","in"],
66
65
  ["DWORD","idAttachTo","in"],
67
66
  ["BOOL","fAttach","in"],
68
67
  ])
69
68
 
70
- railgun.add_function( 'user32', 'BeginDeferWindowPos', 'DWORD',[
69
+ dll.add_function('BeginDeferWindowPos', 'DWORD',[
71
70
  ["DWORD","nNumWindows","in"],
72
71
  ])
73
72
 
74
- railgun.add_function( 'user32', 'BeginPaint', 'DWORD',[
73
+ dll.add_function('BeginPaint', 'DWORD',[
75
74
  ["DWORD","hWnd","in"],
76
75
  ["PBLOB","lpPaint","out"],
77
76
  ])
78
77
 
79
- railgun.add_function( 'user32', 'BringWindowToTop', 'BOOL',[
78
+ dll.add_function('BringWindowToTop', 'BOOL',[
80
79
  ["DWORD","hWnd","in"],
81
80
  ])
82
81
 
83
- railgun.add_function( 'user32', 'BroadcastSystemMessage', 'DWORD',[
82
+ dll.add_function('BroadcastSystemMessage', 'DWORD',[
84
83
  ["DWORD","flags","in"],
85
84
  ["PDWORD","lpInfo","inout"],
86
85
  ["DWORD","Msg","in"],
@@ -88,7 +87,7 @@ class Def_user32
88
87
  ["DWORD","lParam","in"],
89
88
  ])
90
89
 
91
- railgun.add_function( 'user32', 'BroadcastSystemMessageA', 'DWORD',[
90
+ dll.add_function('BroadcastSystemMessageA', 'DWORD',[
92
91
  ["DWORD","flags","in"],
93
92
  ["PDWORD","lpInfo","inout"],
94
93
  ["DWORD","Msg","in"],
@@ -96,7 +95,7 @@ class Def_user32
96
95
  ["DWORD","lParam","in"],
97
96
  ])
98
97
 
99
- railgun.add_function( 'user32', 'BroadcastSystemMessageExA', 'DWORD',[
98
+ dll.add_function('BroadcastSystemMessageExA', 'DWORD',[
100
99
  ["DWORD","flags","in"],
101
100
  ["PDWORD","lpInfo","inout"],
102
101
  ["DWORD","Msg","in"],
@@ -105,7 +104,7 @@ class Def_user32
105
104
  ["PBLOB","pbsmInfo","out"],
106
105
  ])
107
106
 
108
- railgun.add_function( 'user32', 'BroadcastSystemMessageExW', 'DWORD',[
107
+ dll.add_function('BroadcastSystemMessageExW', 'DWORD',[
109
108
  ["DWORD","flags","in"],
110
109
  ["PDWORD","lpInfo","inout"],
111
110
  ["DWORD","Msg","in"],
@@ -114,7 +113,7 @@ class Def_user32
114
113
  ["PBLOB","pbsmInfo","out"],
115
114
  ])
116
115
 
117
- railgun.add_function( 'user32', 'BroadcastSystemMessageW', 'DWORD',[
116
+ dll.add_function('BroadcastSystemMessageW', 'DWORD',[
118
117
  ["DWORD","flags","in"],
119
118
  ["PDWORD","lpInfo","inout"],
120
119
  ["DWORD","Msg","in"],
@@ -122,24 +121,24 @@ class Def_user32
122
121
  ["DWORD","lParam","in"],
123
122
  ])
124
123
 
125
- railgun.add_function( 'user32', 'CallMsgFilterA', 'BOOL',[
124
+ dll.add_function('CallMsgFilterA', 'BOOL',[
126
125
  ["PBLOB","lpMsg","in"],
127
126
  ["DWORD","nCode","in"],
128
127
  ])
129
128
 
130
- railgun.add_function( 'user32', 'CallMsgFilterW', 'BOOL',[
129
+ dll.add_function('CallMsgFilterW', 'BOOL',[
131
130
  ["PBLOB","lpMsg","in"],
132
131
  ["DWORD","nCode","in"],
133
132
  ])
134
133
 
135
- railgun.add_function( 'user32', 'CallNextHookEx', 'DWORD',[
134
+ dll.add_function('CallNextHookEx', 'DWORD',[
136
135
  ["DWORD","hhk","in"],
137
136
  ["DWORD","nCode","in"],
138
137
  ["WORD","wParam","in"],
139
138
  ["DWORD","lParam","in"],
140
139
  ])
141
140
 
142
- railgun.add_function( 'user32', 'CallWindowProcA', 'DWORD',[
141
+ dll.add_function('CallWindowProcA', 'DWORD',[
143
142
  ["PBLOB","lpPrevWndFunc","in"],
144
143
  ["DWORD","hWnd","in"],
145
144
  ["DWORD","Msg","in"],
@@ -147,7 +146,7 @@ class Def_user32
147
146
  ["DWORD","lParam","in"],
148
147
  ])
149
148
 
150
- railgun.add_function( 'user32', 'CallWindowProcW', 'DWORD',[
149
+ dll.add_function('CallWindowProcW', 'DWORD',[
151
150
  ["PBLOB","lpPrevWndFunc","in"],
152
151
  ["DWORD","hWnd","in"],
153
152
  ["DWORD","Msg","in"],
@@ -155,7 +154,7 @@ class Def_user32
155
154
  ["DWORD","lParam","in"],
156
155
  ])
157
156
 
158
- railgun.add_function( 'user32', 'CascadeWindows', 'WORD',[
157
+ dll.add_function('CascadeWindows', 'WORD',[
159
158
  ["DWORD","hwndParent","in"],
160
159
  ["DWORD","wHow","in"],
161
160
  ["PBLOB","lpRect","in"],
@@ -163,17 +162,17 @@ class Def_user32
163
162
  ["PDWORD","lpKids","in"],
164
163
  ])
165
164
 
166
- railgun.add_function( 'user32', 'ChangeClipboardChain', 'BOOL',[
165
+ dll.add_function('ChangeClipboardChain', 'BOOL',[
167
166
  ["DWORD","hWndRemove","in"],
168
167
  ["DWORD","hWndNewNext","in"],
169
168
  ])
170
169
 
171
- railgun.add_function( 'user32', 'ChangeDisplaySettingsA', 'DWORD',[
170
+ dll.add_function('ChangeDisplaySettingsA', 'DWORD',[
172
171
  ["PBLOB","lpDevMode","in"],
173
172
  ["DWORD","dwFlags","in"],
174
173
  ])
175
174
 
176
- railgun.add_function( 'user32', 'ChangeDisplaySettingsExA', 'DWORD',[
175
+ dll.add_function('ChangeDisplaySettingsExA', 'DWORD',[
177
176
  ["PCHAR","lpszDeviceName","in"],
178
177
  ["PBLOB","lpDevMode","in"],
179
178
  ["DWORD","hwnd","inout"],
@@ -181,7 +180,7 @@ class Def_user32
181
180
  ["PBLOB","lParam","in"],
182
181
  ])
183
182
 
184
- railgun.add_function( 'user32', 'ChangeDisplaySettingsExW', 'DWORD',[
183
+ dll.add_function('ChangeDisplaySettingsExW', 'DWORD',[
185
184
  ["PWCHAR","lpszDeviceName","in"],
186
185
  ["PBLOB","lpDevMode","in"],
187
186
  ["DWORD","hwnd","inout"],
@@ -189,12 +188,12 @@ class Def_user32
189
188
  ["PBLOB","lParam","in"],
190
189
  ])
191
190
 
192
- railgun.add_function( 'user32', 'ChangeDisplaySettingsW', 'DWORD',[
191
+ dll.add_function('ChangeDisplaySettingsW', 'DWORD',[
193
192
  ["PBLOB","lpDevMode","in"],
194
193
  ["DWORD","dwFlags","in"],
195
194
  ])
196
195
 
197
- railgun.add_function( 'user32', 'ChangeMenuA', 'BOOL',[
196
+ dll.add_function('ChangeMenuA', 'BOOL',[
198
197
  ["DWORD","hMenu","in"],
199
198
  ["DWORD","cmd","in"],
200
199
  ["PCHAR","lpszNewItem","in"],
@@ -202,7 +201,7 @@ class Def_user32
202
201
  ["DWORD","flags","in"],
203
202
  ])
204
203
 
205
- railgun.add_function( 'user32', 'ChangeMenuW', 'BOOL',[
204
+ dll.add_function('ChangeMenuW', 'BOOL',[
206
205
  ["DWORD","hMenu","in"],
207
206
  ["DWORD","cmd","in"],
208
207
  ["PWCHAR","lpszNewItem","in"],
@@ -210,61 +209,61 @@ class Def_user32
210
209
  ["DWORD","flags","in"],
211
210
  ])
212
211
 
213
- railgun.add_function( 'user32', 'CharLowerBuffA', 'DWORD',[
212
+ dll.add_function('CharLowerBuffA', 'DWORD',[
214
213
  ["PCHAR","lpsz","in"],
215
214
  ["DWORD","cchLength","in"],
216
215
  ])
217
216
 
218
- railgun.add_function( 'user32', 'CharLowerBuffW', 'DWORD',[
217
+ dll.add_function('CharLowerBuffW', 'DWORD',[
219
218
  ["PWCHAR","lpsz","in"],
220
219
  ["DWORD","cchLength","in"],
221
220
  ])
222
221
 
223
- railgun.add_function( 'user32', 'CharToOemA', 'BOOL',[
222
+ dll.add_function('CharToOemA', 'BOOL',[
224
223
  ["PCHAR","lpszSrc","in"],
225
224
  ["PCHAR","lpszDst","out"],
226
225
  ])
227
226
 
228
- railgun.add_function( 'user32', 'CharToOemBuffA', 'BOOL',[
227
+ dll.add_function('CharToOemBuffA', 'BOOL',[
229
228
  ["PCHAR","lpszSrc","in"],
230
229
  ["PCHAR","lpszDst","out"],
231
230
  ["DWORD","cchDstLength","in"],
232
231
  ])
233
232
 
234
- railgun.add_function( 'user32', 'CharToOemBuffW', 'BOOL',[
233
+ dll.add_function('CharToOemBuffW', 'BOOL',[
235
234
  ["PWCHAR","lpszSrc","in"],
236
235
  ["PCHAR","lpszDst","out"],
237
236
  ["DWORD","cchDstLength","in"],
238
237
  ])
239
238
 
240
- railgun.add_function( 'user32', 'CharToOemW', 'BOOL',[
239
+ dll.add_function('CharToOemW', 'BOOL',[
241
240
  ["PWCHAR","lpszSrc","in"],
242
241
  ["PCHAR","lpszDst","out"],
243
242
  ])
244
243
 
245
- railgun.add_function( 'user32', 'CharUpperBuffA', 'DWORD',[
244
+ dll.add_function('CharUpperBuffA', 'DWORD',[
246
245
  ["PCHAR","lpsz","in"],
247
246
  ["DWORD","cchLength","in"],
248
247
  ])
249
248
 
250
- railgun.add_function( 'user32', 'CharUpperBuffW', 'DWORD',[
249
+ dll.add_function('CharUpperBuffW', 'DWORD',[
251
250
  ["PWCHAR","lpsz","in"],
252
251
  ["DWORD","cchLength","in"],
253
252
  ])
254
253
 
255
- railgun.add_function( 'user32', 'CheckDlgButton', 'BOOL',[
254
+ dll.add_function('CheckDlgButton', 'BOOL',[
256
255
  ["DWORD","hDlg","in"],
257
256
  ["DWORD","nIDButton","in"],
258
257
  ["DWORD","uCheck","in"],
259
258
  ])
260
259
 
261
- railgun.add_function( 'user32', 'CheckMenuItem', 'DWORD',[
260
+ dll.add_function('CheckMenuItem', 'DWORD',[
262
261
  ["DWORD","hMenu","in"],
263
262
  ["DWORD","uIDCheckItem","in"],
264
263
  ["DWORD","uCheck","in"],
265
264
  ])
266
265
 
267
- railgun.add_function( 'user32', 'CheckMenuRadioItem', 'BOOL',[
266
+ dll.add_function('CheckMenuRadioItem', 'BOOL',[
268
267
  ["DWORD","hmenu","in"],
269
268
  ["DWORD","first","in"],
270
269
  ["DWORD","last","in"],
@@ -272,65 +271,65 @@ class Def_user32
272
271
  ["DWORD","flags","in"],
273
272
  ])
274
273
 
275
- railgun.add_function( 'user32', 'CheckRadioButton', 'BOOL',[
274
+ dll.add_function('CheckRadioButton', 'BOOL',[
276
275
  ["DWORD","hDlg","in"],
277
276
  ["DWORD","nIDFirstButton","in"],
278
277
  ["DWORD","nIDLastButton","in"],
279
278
  ["DWORD","nIDCheckButton","in"],
280
279
  ])
281
280
 
282
- railgun.add_function( 'user32', 'ChildWindowFromPoint', 'DWORD',[
281
+ dll.add_function('ChildWindowFromPoint', 'DWORD',[
283
282
  ["DWORD","hWndParent","in"],
284
283
  ["PBLOB","Point","in"],
285
284
  ])
286
285
 
287
- railgun.add_function( 'user32', 'ChildWindowFromPointEx', 'DWORD',[
286
+ dll.add_function('ChildWindowFromPointEx', 'DWORD',[
288
287
  ["DWORD","hwnd","in"],
289
288
  ["PBLOB","pt","in"],
290
289
  ["DWORD","flags","in"],
291
290
  ])
292
291
 
293
- railgun.add_function( 'user32', 'ClientToScreen', 'BOOL',[
292
+ dll.add_function('ClientToScreen', 'BOOL',[
294
293
  ["DWORD","hWnd","in"],
295
294
  ["PBLOB","lpPoint","inout"],
296
295
  ])
297
296
 
298
- railgun.add_function( 'user32', 'ClipCursor', 'BOOL',[
297
+ dll.add_function('ClipCursor', 'BOOL',[
299
298
  ["PBLOB","lpRect","in"],
300
299
  ])
301
300
 
302
- railgun.add_function( 'user32', 'CloseClipboard', 'BOOL',[
301
+ dll.add_function('CloseClipboard', 'BOOL',[
303
302
  ])
304
303
 
305
- railgun.add_function( 'user32', 'CloseDesktop', 'BOOL',[
304
+ dll.add_function('CloseDesktop', 'BOOL',[
306
305
  ["DWORD","hDesktop","in"],
307
306
  ])
308
307
 
309
- railgun.add_function( 'user32', 'CloseWindow', 'BOOL',[
308
+ dll.add_function('CloseWindow', 'BOOL',[
310
309
  ["DWORD","hWnd","in"],
311
310
  ])
312
311
 
313
- railgun.add_function( 'user32', 'CloseWindowStation', 'BOOL',[
312
+ dll.add_function('CloseWindowStation', 'BOOL',[
314
313
  ["DWORD","hWinSta","in"],
315
314
  ])
316
315
 
317
- railgun.add_function( 'user32', 'CopyAcceleratorTableA', 'DWORD',[
316
+ dll.add_function('CopyAcceleratorTableA', 'DWORD',[
318
317
  ["DWORD","hAccelSrc","in"],
319
318
  ["PBLOB","lpAccelDst","out"],
320
319
  ["DWORD","cAccelEntries","in"],
321
320
  ])
322
321
 
323
- railgun.add_function( 'user32', 'CopyAcceleratorTableW', 'DWORD',[
322
+ dll.add_function('CopyAcceleratorTableW', 'DWORD',[
324
323
  ["DWORD","hAccelSrc","in"],
325
324
  ["PBLOB","lpAccelDst","out"],
326
325
  ["DWORD","cAccelEntries","in"],
327
326
  ])
328
327
 
329
- railgun.add_function( 'user32', 'CopyIcon', 'DWORD',[
328
+ dll.add_function('CopyIcon', 'DWORD',[
330
329
  ["DWORD","hIcon","in"],
331
330
  ])
332
331
 
333
- railgun.add_function( 'user32', 'CopyImage', 'DWORD',[
332
+ dll.add_function('CopyImage', 'DWORD',[
334
333
  ["DWORD","h","in"],
335
334
  ["DWORD","type","in"],
336
335
  ["DWORD","cx","in"],
@@ -338,32 +337,32 @@ class Def_user32
338
337
  ["DWORD","flags","in"],
339
338
  ])
340
339
 
341
- railgun.add_function( 'user32', 'CopyRect', 'BOOL',[
340
+ dll.add_function('CopyRect', 'BOOL',[
342
341
  ["PBLOB","lprcDst","out"],
343
342
  ["PBLOB","lprcSrc","in"],
344
343
  ])
345
344
 
346
- railgun.add_function( 'user32', 'CountClipboardFormats', 'DWORD',[
345
+ dll.add_function('CountClipboardFormats', 'DWORD',[
347
346
  ])
348
347
 
349
- railgun.add_function( 'user32', 'CreateAcceleratorTableA', 'DWORD',[
348
+ dll.add_function('CreateAcceleratorTableA', 'DWORD',[
350
349
  ["PBLOB","paccel","in"],
351
350
  ["DWORD","cAccel","in"],
352
351
  ])
353
352
 
354
- railgun.add_function( 'user32', 'CreateAcceleratorTableW', 'DWORD',[
353
+ dll.add_function('CreateAcceleratorTableW', 'DWORD',[
355
354
  ["PBLOB","paccel","in"],
356
355
  ["DWORD","cAccel","in"],
357
356
  ])
358
357
 
359
- railgun.add_function( 'user32', 'CreateCaret', 'BOOL',[
358
+ dll.add_function('CreateCaret', 'BOOL',[
360
359
  ["DWORD","hWnd","in"],
361
360
  ["DWORD","hBitmap","in"],
362
361
  ["DWORD","nWidth","in"],
363
362
  ["DWORD","nHeight","in"],
364
363
  ])
365
364
 
366
- railgun.add_function( 'user32', 'CreateCursor', 'DWORD',[
365
+ dll.add_function('CreateCursor', 'DWORD',[
367
366
  ["DWORD","hInst","in"],
368
367
  ["DWORD","xHotSpot","in"],
369
368
  ["DWORD","yHotSpot","in"],
@@ -371,7 +370,7 @@ class Def_user32
371
370
  ["DWORD","nHeight","in"],
372
371
  ])
373
372
 
374
- railgun.add_function( 'user32', 'CreateDesktopA', 'DWORD',[
373
+ dll.add_function('CreateDesktopA', 'DWORD',[
375
374
  ["PCHAR","lpszDesktop","in"],
376
375
  ["PCHAR","lpszDevice","inout"],
377
376
  ["PBLOB","pDevmode","inout"],
@@ -380,7 +379,7 @@ class Def_user32
380
379
  ["PBLOB","lpsa","in"],
381
380
  ])
382
381
 
383
- railgun.add_function( 'user32', 'CreateDesktopW', 'DWORD',[
382
+ dll.add_function('CreateDesktopW', 'DWORD',[
384
383
  ["PWCHAR","lpszDesktop","in"],
385
384
  ["PWCHAR","lpszDevice","inout"],
386
385
  ["PBLOB","pDevmode","inout"],
@@ -389,7 +388,7 @@ class Def_user32
389
388
  ["PBLOB","lpsa","in"],
390
389
  ])
391
390
 
392
- railgun.add_function( 'user32', 'CreateDialogIndirectParamA', 'DWORD',[
391
+ dll.add_function('CreateDialogIndirectParamA', 'DWORD',[
393
392
  ["DWORD","hInstance","in"],
394
393
  ["PBLOB","lpTemplate","in"],
395
394
  ["DWORD","hWndParent","in"],
@@ -397,7 +396,7 @@ class Def_user32
397
396
  ["DWORD","dwInitParam","in"],
398
397
  ])
399
398
 
400
- railgun.add_function( 'user32', 'CreateDialogIndirectParamW', 'DWORD',[
399
+ dll.add_function('CreateDialogIndirectParamW', 'DWORD',[
401
400
  ["DWORD","hInstance","in"],
402
401
  ["PBLOB","lpTemplate","in"],
403
402
  ["DWORD","hWndParent","in"],
@@ -405,7 +404,7 @@ class Def_user32
405
404
  ["DWORD","dwInitParam","in"],
406
405
  ])
407
406
 
408
- railgun.add_function( 'user32', 'CreateDialogParamA', 'DWORD',[
407
+ dll.add_function('CreateDialogParamA', 'DWORD',[
409
408
  ["DWORD","hInstance","in"],
410
409
  ["PCHAR","lpTemplateName","in"],
411
410
  ["DWORD","hWndParent","in"],
@@ -413,7 +412,7 @@ class Def_user32
413
412
  ["DWORD","dwInitParam","in"],
414
413
  ])
415
414
 
416
- railgun.add_function( 'user32', 'CreateDialogParamW', 'DWORD',[
415
+ dll.add_function('CreateDialogParamW', 'DWORD',[
417
416
  ["DWORD","hInstance","in"],
418
417
  ["PWCHAR","lpTemplateName","in"],
419
418
  ["DWORD","hWndParent","in"],
@@ -421,7 +420,7 @@ class Def_user32
421
420
  ["DWORD","dwInitParam","in"],
422
421
  ])
423
422
 
424
- railgun.add_function( 'user32', 'CreateIcon', 'DWORD',[
423
+ dll.add_function('CreateIcon', 'DWORD',[
425
424
  ["DWORD","hInstance","in"],
426
425
  ["DWORD","nWidth","in"],
427
426
  ["DWORD","nHeight","in"],
@@ -431,14 +430,14 @@ class Def_user32
431
430
  ["PBLOB","lpbXORbits","in"],
432
431
  ])
433
432
 
434
- railgun.add_function( 'user32', 'CreateIconFromResource', 'DWORD',[
433
+ dll.add_function('CreateIconFromResource', 'DWORD',[
435
434
  ["PBLOB","presbits","in"],
436
435
  ["DWORD","dwResSize","in"],
437
436
  ["BOOL","fIcon","in"],
438
437
  ["DWORD","dwVer","in"],
439
438
  ])
440
439
 
441
- railgun.add_function( 'user32', 'CreateIconFromResourceEx', 'DWORD',[
440
+ dll.add_function('CreateIconFromResourceEx', 'DWORD',[
442
441
  ["PBLOB","presbits","in"],
443
442
  ["DWORD","dwResSize","in"],
444
443
  ["BOOL","fIcon","in"],
@@ -448,11 +447,11 @@ class Def_user32
448
447
  ["DWORD","Flags","in"],
449
448
  ])
450
449
 
451
- railgun.add_function( 'user32', 'CreateIconIndirect', 'DWORD',[
450
+ dll.add_function('CreateIconIndirect', 'DWORD',[
452
451
  ["PBLOB","piconinfo","in"],
453
452
  ])
454
453
 
455
- railgun.add_function( 'user32', 'CreateMDIWindowA', 'DWORD',[
454
+ dll.add_function('CreateMDIWindowA', 'DWORD',[
456
455
  ["PCHAR","lpClassName","in"],
457
456
  ["PCHAR","lpWindowName","in"],
458
457
  ["DWORD","dwStyle","in"],
@@ -465,7 +464,7 @@ class Def_user32
465
464
  ["DWORD","lParam","in"],
466
465
  ])
467
466
 
468
- railgun.add_function( 'user32', 'CreateMDIWindowW', 'DWORD',[
467
+ dll.add_function('CreateMDIWindowW', 'DWORD',[
469
468
  ["PWCHAR","lpClassName","in"],
470
469
  ["PWCHAR","lpWindowName","in"],
471
470
  ["DWORD","dwStyle","in"],
@@ -478,13 +477,13 @@ class Def_user32
478
477
  ["DWORD","lParam","in"],
479
478
  ])
480
479
 
481
- railgun.add_function( 'user32', 'CreateMenu', 'DWORD',[
480
+ dll.add_function('CreateMenu', 'DWORD',[
482
481
  ])
483
482
 
484
- railgun.add_function( 'user32', 'CreatePopupMenu', 'DWORD',[
483
+ dll.add_function('CreatePopupMenu', 'DWORD',[
485
484
  ])
486
485
 
487
- railgun.add_function( 'user32', 'CreateWindowExA', 'DWORD',[
486
+ dll.add_function('CreateWindowExA', 'DWORD',[
488
487
  ["DWORD","dwExStyle","in"],
489
488
  ["PCHAR","lpClassName","in"],
490
489
  ["PCHAR","lpWindowName","in"],
@@ -499,7 +498,7 @@ class Def_user32
499
498
  ["PBLOB","lpParam","in"],
500
499
  ])
501
500
 
502
- railgun.add_function( 'user32', 'CreateWindowExW', 'DWORD',[
501
+ dll.add_function('CreateWindowExW', 'DWORD',[
503
502
  ["DWORD","dwExStyle","in"],
504
503
  ["PWCHAR","lpClassName","in"],
505
504
  ["PWCHAR","lpWindowName","in"],
@@ -514,35 +513,35 @@ class Def_user32
514
513
  ["PBLOB","lpParam","in"],
515
514
  ])
516
515
 
517
- railgun.add_function( 'user32', 'CreateWindowStationA', 'DWORD',[
516
+ dll.add_function('CreateWindowStationA', 'DWORD',[
518
517
  ["PCHAR","lpwinsta","in"],
519
518
  ["DWORD","dwFlags","in"],
520
519
  ["DWORD","dwDesiredAccess","in"],
521
520
  ["PBLOB","lpsa","in"],
522
521
  ])
523
522
 
524
- railgun.add_function( 'user32', 'CreateWindowStationW', 'DWORD',[
523
+ dll.add_function('CreateWindowStationW', 'DWORD',[
525
524
  ["PWCHAR","lpwinsta","in"],
526
525
  ["DWORD","dwFlags","in"],
527
526
  ["DWORD","dwDesiredAccess","in"],
528
527
  ["PBLOB","lpsa","in"],
529
528
  ])
530
529
 
531
- railgun.add_function( 'user32', 'DefDlgProcA', 'DWORD',[
530
+ dll.add_function('DefDlgProcA', 'DWORD',[
532
531
  ["DWORD","hDlg","in"],
533
532
  ["DWORD","Msg","in"],
534
533
  ["WORD","wParam","in"],
535
534
  ["DWORD","lParam","in"],
536
535
  ])
537
536
 
538
- railgun.add_function( 'user32', 'DefDlgProcW', 'DWORD',[
537
+ dll.add_function('DefDlgProcW', 'DWORD',[
539
538
  ["DWORD","hDlg","in"],
540
539
  ["DWORD","Msg","in"],
541
540
  ["WORD","wParam","in"],
542
541
  ["DWORD","lParam","in"],
543
542
  ])
544
543
 
545
- railgun.add_function( 'user32', 'DefFrameProcA', 'DWORD',[
544
+ dll.add_function('DefFrameProcA', 'DWORD',[
546
545
  ["DWORD","hWnd","in"],
547
546
  ["DWORD","hWndMDIClient","in"],
548
547
  ["DWORD","uMsg","in"],
@@ -550,7 +549,7 @@ class Def_user32
550
549
  ["DWORD","lParam","in"],
551
550
  ])
552
551
 
553
- railgun.add_function( 'user32', 'DefFrameProcW', 'DWORD',[
552
+ dll.add_function('DefFrameProcW', 'DWORD',[
554
553
  ["DWORD","hWnd","in"],
555
554
  ["DWORD","hWndMDIClient","in"],
556
555
  ["DWORD","uMsg","in"],
@@ -558,41 +557,41 @@ class Def_user32
558
557
  ["DWORD","lParam","in"],
559
558
  ])
560
559
 
561
- railgun.add_function( 'user32', 'DefMDIChildProcA', 'DWORD',[
560
+ dll.add_function('DefMDIChildProcA', 'DWORD',[
562
561
  ["DWORD","hWnd","in"],
563
562
  ["DWORD","uMsg","in"],
564
563
  ["WORD","wParam","in"],
565
564
  ["DWORD","lParam","in"],
566
565
  ])
567
566
 
568
- railgun.add_function( 'user32', 'DefMDIChildProcW', 'DWORD',[
567
+ dll.add_function('DefMDIChildProcW', 'DWORD',[
569
568
  ["DWORD","hWnd","in"],
570
569
  ["DWORD","uMsg","in"],
571
570
  ["WORD","wParam","in"],
572
571
  ["DWORD","lParam","in"],
573
572
  ])
574
573
 
575
- railgun.add_function( 'user32', 'DefRawInputProc', 'DWORD',[
574
+ dll.add_function('DefRawInputProc', 'DWORD',[
576
575
  ["PBLOB","paRawInput","in"],
577
576
  ["DWORD","nInput","in"],
578
577
  ["DWORD","cbSizeHeader","in"],
579
578
  ])
580
579
 
581
- railgun.add_function( 'user32', 'DefWindowProcA', 'DWORD',[
580
+ dll.add_function('DefWindowProcA', 'DWORD',[
582
581
  ["DWORD","hWnd","in"],
583
582
  ["DWORD","Msg","in"],
584
583
  ["WORD","wParam","in"],
585
584
  ["DWORD","lParam","in"],
586
585
  ])
587
586
 
588
- railgun.add_function( 'user32', 'DefWindowProcW', 'DWORD',[
587
+ dll.add_function('DefWindowProcW', 'DWORD',[
589
588
  ["DWORD","hWnd","in"],
590
589
  ["DWORD","Msg","in"],
591
590
  ["WORD","wParam","in"],
592
591
  ["DWORD","lParam","in"],
593
592
  ])
594
593
 
595
- railgun.add_function( 'user32', 'DeferWindowPos', 'DWORD',[
594
+ dll.add_function('DeferWindowPos', 'DWORD',[
596
595
  ["DWORD","hWinPosInfo","in"],
597
596
  ["DWORD","hWnd","in"],
598
597
  ["DWORD","hWndInsertAfter","in"],
@@ -603,51 +602,51 @@ class Def_user32
603
602
  ["DWORD","uFlags","in"],
604
603
  ])
605
604
 
606
- railgun.add_function( 'user32', 'DeleteMenu', 'BOOL',[
605
+ dll.add_function('DeleteMenu', 'BOOL',[
607
606
  ["DWORD","hMenu","in"],
608
607
  ["DWORD","uPosition","in"],
609
608
  ["DWORD","uFlags","in"],
610
609
  ])
611
610
 
612
- railgun.add_function( 'user32', 'DeregisterShellHookWindow', 'BOOL',[
611
+ dll.add_function('DeregisterShellHookWindow', 'BOOL',[
613
612
  ["DWORD","hwnd","in"],
614
613
  ])
615
614
 
616
- railgun.add_function( 'user32', 'DestroyAcceleratorTable', 'BOOL',[
615
+ dll.add_function('DestroyAcceleratorTable', 'BOOL',[
617
616
  ["DWORD","hAccel","in"],
618
617
  ])
619
618
 
620
- railgun.add_function( 'user32', 'DestroyCaret', 'BOOL',[
619
+ dll.add_function('DestroyCaret', 'BOOL',[
621
620
  ])
622
621
 
623
- railgun.add_function( 'user32', 'DestroyCursor', 'BOOL',[
622
+ dll.add_function('DestroyCursor', 'BOOL',[
624
623
  ["DWORD","hCursor","in"],
625
624
  ])
626
625
 
627
- railgun.add_function( 'user32', 'DestroyIcon', 'BOOL',[
626
+ dll.add_function('DestroyIcon', 'BOOL',[
628
627
  ["DWORD","hIcon","in"],
629
628
  ])
630
629
 
631
- railgun.add_function( 'user32', 'DestroyMenu', 'BOOL',[
630
+ dll.add_function('DestroyMenu', 'BOOL',[
632
631
  ["DWORD","hMenu","in"],
633
632
  ])
634
633
 
635
- railgun.add_function( 'user32', 'DestroyWindow', 'BOOL',[
634
+ dll.add_function('DestroyWindow', 'BOOL',[
636
635
  ["DWORD","hWnd","in"],
637
636
  ])
638
637
 
639
- railgun.add_function( 'user32', 'DisableProcessWindowsGhosting', 'VOID',[
638
+ dll.add_function('DisableProcessWindowsGhosting', 'VOID',[
640
639
  ])
641
640
 
642
- railgun.add_function( 'user32', 'DispatchMessageA', 'DWORD',[
641
+ dll.add_function('DispatchMessageA', 'DWORD',[
643
642
  ["PBLOB","lpMsg","in"],
644
643
  ])
645
644
 
646
- railgun.add_function( 'user32', 'DispatchMessageW', 'DWORD',[
645
+ dll.add_function('DispatchMessageW', 'DWORD',[
647
646
  ["PBLOB","lpMsg","in"],
648
647
  ])
649
648
 
650
- railgun.add_function( 'user32', 'DlgDirListA', 'DWORD',[
649
+ dll.add_function('DlgDirListA', 'DWORD',[
651
650
  ["DWORD","hDlg","in"],
652
651
  ["PCHAR","lpPathSpec","inout"],
653
652
  ["DWORD","nIDListBox","in"],
@@ -655,7 +654,7 @@ class Def_user32
655
654
  ["DWORD","uFileType","in"],
656
655
  ])
657
656
 
658
- railgun.add_function( 'user32', 'DlgDirListComboBoxA', 'DWORD',[
657
+ dll.add_function('DlgDirListComboBoxA', 'DWORD',[
659
658
  ["DWORD","hDlg","in"],
660
659
  ["PCHAR","lpPathSpec","inout"],
661
660
  ["DWORD","nIDComboBox","in"],
@@ -663,7 +662,7 @@ class Def_user32
663
662
  ["DWORD","uFiletype","in"],
664
663
  ])
665
664
 
666
- railgun.add_function( 'user32', 'DlgDirListComboBoxW', 'DWORD',[
665
+ dll.add_function('DlgDirListComboBoxW', 'DWORD',[
667
666
  ["DWORD","hDlg","in"],
668
667
  ["PWCHAR","lpPathSpec","inout"],
669
668
  ["DWORD","nIDComboBox","in"],
@@ -671,7 +670,7 @@ class Def_user32
671
670
  ["DWORD","uFiletype","in"],
672
671
  ])
673
672
 
674
- railgun.add_function( 'user32', 'DlgDirListW', 'DWORD',[
673
+ dll.add_function('DlgDirListW', 'DWORD',[
675
674
  ["DWORD","hDlg","in"],
676
675
  ["PWCHAR","lpPathSpec","inout"],
677
676
  ["DWORD","nIDListBox","in"],
@@ -679,40 +678,40 @@ class Def_user32
679
678
  ["DWORD","uFileType","in"],
680
679
  ])
681
680
 
682
- railgun.add_function( 'user32', 'DlgDirSelectComboBoxExA', 'BOOL',[
681
+ dll.add_function('DlgDirSelectComboBoxExA', 'BOOL',[
683
682
  ["DWORD","hwndDlg","in"],
684
683
  ["PCHAR","lpString","out"],
685
684
  ["DWORD","cchOut","in"],
686
685
  ["DWORD","idComboBox","in"],
687
686
  ])
688
687
 
689
- railgun.add_function( 'user32', 'DlgDirSelectComboBoxExW', 'BOOL',[
688
+ dll.add_function('DlgDirSelectComboBoxExW', 'BOOL',[
690
689
  ["DWORD","hwndDlg","in"],
691
690
  ["PWCHAR","lpString","out"],
692
691
  ["DWORD","cchOut","in"],
693
692
  ["DWORD","idComboBox","in"],
694
693
  ])
695
694
 
696
- railgun.add_function( 'user32', 'DlgDirSelectExA', 'BOOL',[
695
+ dll.add_function('DlgDirSelectExA', 'BOOL',[
697
696
  ["DWORD","hwndDlg","in"],
698
697
  ["PCHAR","lpString","out"],
699
698
  ["DWORD","chCount","in"],
700
699
  ["DWORD","idListBox","in"],
701
700
  ])
702
701
 
703
- railgun.add_function( 'user32', 'DlgDirSelectExW', 'BOOL',[
702
+ dll.add_function('DlgDirSelectExW', 'BOOL',[
704
703
  ["DWORD","hwndDlg","in"],
705
704
  ["PWCHAR","lpString","out"],
706
705
  ["DWORD","chCount","in"],
707
706
  ["DWORD","idListBox","in"],
708
707
  ])
709
708
 
710
- railgun.add_function( 'user32', 'DragDetect', 'BOOL',[
709
+ dll.add_function('DragDetect', 'BOOL',[
711
710
  ["DWORD","hwnd","in"],
712
711
  ["PBLOB","pt","in"],
713
712
  ])
714
713
 
715
- railgun.add_function( 'user32', 'DragObject', 'DWORD',[
714
+ dll.add_function('DragObject', 'DWORD',[
716
715
  ["DWORD","hwndParent","in"],
717
716
  ["DWORD","hwndFrom","in"],
718
717
  ["DWORD","fmt","in"],
@@ -720,40 +719,40 @@ class Def_user32
720
719
  ["DWORD","hcur","in"],
721
720
  ])
722
721
 
723
- railgun.add_function( 'user32', 'DrawAnimatedRects', 'BOOL',[
722
+ dll.add_function('DrawAnimatedRects', 'BOOL',[
724
723
  ["DWORD","hwnd","in"],
725
724
  ["DWORD","idAni","in"],
726
725
  ["PBLOB","lprcFrom","in"],
727
726
  ["PBLOB","lprcTo","in"],
728
727
  ])
729
728
 
730
- railgun.add_function( 'user32', 'DrawCaption', 'BOOL',[
729
+ dll.add_function('DrawCaption', 'BOOL',[
731
730
  ["DWORD","hwnd","in"],
732
731
  ["DWORD","hdc","in"],
733
732
  ["PBLOB","lprect","in"],
734
733
  ["DWORD","flags","in"],
735
734
  ])
736
735
 
737
- railgun.add_function( 'user32', 'DrawEdge', 'BOOL',[
736
+ dll.add_function('DrawEdge', 'BOOL',[
738
737
  ["DWORD","hdc","in"],
739
738
  ["PBLOB","qrc","inout"],
740
739
  ["DWORD","edge","in"],
741
740
  ["DWORD","grfFlags","in"],
742
741
  ])
743
742
 
744
- railgun.add_function( 'user32', 'DrawFocusRect', 'BOOL',[
743
+ dll.add_function('DrawFocusRect', 'BOOL',[
745
744
  ["DWORD","hDC","in"],
746
745
  ["PBLOB","lprc","in"],
747
746
  ])
748
747
 
749
- railgun.add_function( 'user32', 'DrawIcon', 'BOOL',[
748
+ dll.add_function('DrawIcon', 'BOOL',[
750
749
  ["DWORD","hDC","in"],
751
750
  ["DWORD","X","in"],
752
751
  ["DWORD","Y","in"],
753
752
  ["DWORD","hIcon","in"],
754
753
  ])
755
754
 
756
- railgun.add_function( 'user32', 'DrawIconEx', 'BOOL',[
755
+ dll.add_function('DrawIconEx', 'BOOL',[
757
756
  ["DWORD","hdc","in"],
758
757
  ["DWORD","xLeft","in"],
759
758
  ["DWORD","yTop","in"],
@@ -765,11 +764,11 @@ class Def_user32
765
764
  ["DWORD","diFlags","in"],
766
765
  ])
767
766
 
768
- railgun.add_function( 'user32', 'DrawMenuBar', 'BOOL',[
767
+ dll.add_function('DrawMenuBar', 'BOOL',[
769
768
  ["DWORD","hWnd","in"],
770
769
  ])
771
770
 
772
- railgun.add_function( 'user32', 'DrawStateA', 'BOOL',[
771
+ dll.add_function('DrawStateA', 'BOOL',[
773
772
  ["DWORD","hdc","in"],
774
773
  ["DWORD","hbrFore","in"],
775
774
  ["PBLOB","qfnCallBack","in"],
@@ -782,7 +781,7 @@ class Def_user32
782
781
  ["DWORD","uFlags","in"],
783
782
  ])
784
783
 
785
- railgun.add_function( 'user32', 'DrawStateW', 'BOOL',[
784
+ dll.add_function('DrawStateW', 'BOOL',[
786
785
  ["DWORD","hdc","in"],
787
786
  ["DWORD","hbrFore","in"],
788
787
  ["PBLOB","qfnCallBack","in"],
@@ -795,7 +794,7 @@ class Def_user32
795
794
  ["DWORD","uFlags","in"],
796
795
  ])
797
796
 
798
- railgun.add_function( 'user32', 'DrawTextA', 'DWORD',[
797
+ dll.add_function('DrawTextA', 'DWORD',[
799
798
  ["DWORD","hdc","in"],
800
799
  ["PCHAR","lpchText","in"],
801
800
  ["DWORD","cchText","in"],
@@ -803,7 +802,7 @@ class Def_user32
803
802
  ["DWORD","format","in"],
804
803
  ])
805
804
 
806
- railgun.add_function( 'user32', 'DrawTextExA', 'DWORD',[
805
+ dll.add_function('DrawTextExA', 'DWORD',[
807
806
  ["DWORD","hdc","in"],
808
807
  ["PCHAR","lpchText","in"],
809
808
  ["DWORD","cchText","in"],
@@ -812,7 +811,7 @@ class Def_user32
812
811
  ["PBLOB","lpdtp","in"],
813
812
  ])
814
813
 
815
- railgun.add_function( 'user32', 'DrawTextExW', 'DWORD',[
814
+ dll.add_function('DrawTextExW', 'DWORD',[
816
815
  ["DWORD","hdc","in"],
817
816
  ["PWCHAR","lpchText","in"],
818
817
  ["DWORD","cchText","in"],
@@ -821,7 +820,7 @@ class Def_user32
821
820
  ["PBLOB","lpdtp","in"],
822
821
  ])
823
822
 
824
- railgun.add_function( 'user32', 'DrawTextW', 'DWORD',[
823
+ dll.add_function('DrawTextW', 'DWORD',[
825
824
  ["DWORD","hdc","in"],
826
825
  ["PWCHAR","lpchText","in"],
827
826
  ["DWORD","cchText","in"],
@@ -829,231 +828,231 @@ class Def_user32
829
828
  ["DWORD","format","in"],
830
829
  ])
831
830
 
832
- railgun.add_function( 'user32', 'EmptyClipboard', 'BOOL',[
831
+ dll.add_function('EmptyClipboard', 'BOOL',[
833
832
  ])
834
833
 
835
- railgun.add_function( 'user32', 'EnableMenuItem', 'BOOL',[
834
+ dll.add_function('EnableMenuItem', 'BOOL',[
836
835
  ["DWORD","hMenu","in"],
837
836
  ["DWORD","uIDEnableItem","in"],
838
837
  ["DWORD","uEnable","in"],
839
838
  ])
840
839
 
841
- railgun.add_function( 'user32', 'EnableScrollBar', 'BOOL',[
840
+ dll.add_function('EnableScrollBar', 'BOOL',[
842
841
  ["DWORD","hWnd","in"],
843
842
  ["DWORD","wSBflags","in"],
844
843
  ["DWORD","wArrows","in"],
845
844
  ])
846
845
 
847
- railgun.add_function( 'user32', 'EnableWindow', 'BOOL',[
846
+ dll.add_function('EnableWindow', 'BOOL',[
848
847
  ["DWORD","hWnd","in"],
849
848
  ["BOOL","bEnable","in"],
850
849
  ])
851
850
 
852
- railgun.add_function( 'user32', 'EndDeferWindowPos', 'BOOL',[
851
+ dll.add_function('EndDeferWindowPos', 'BOOL',[
853
852
  ["DWORD","hWinPosInfo","in"],
854
853
  ])
855
854
 
856
- railgun.add_function( 'user32', 'EndDialog', 'BOOL',[
855
+ dll.add_function('EndDialog', 'BOOL',[
857
856
  ["DWORD","hDlg","in"],
858
857
  ["PDWORD","nResult","in"],
859
858
  ])
860
859
 
861
- railgun.add_function( 'user32', 'EndMenu', 'BOOL',[
860
+ dll.add_function('EndMenu', 'BOOL',[
862
861
  ])
863
862
 
864
- railgun.add_function( 'user32', 'EndPaint', 'BOOL',[
863
+ dll.add_function('EndPaint', 'BOOL',[
865
864
  ["DWORD","hWnd","in"],
866
865
  ["PBLOB","lpPaint","in"],
867
866
  ])
868
867
 
869
- railgun.add_function( 'user32', 'EndTask', 'BOOL',[
868
+ dll.add_function('EndTask', 'BOOL',[
870
869
  ["DWORD","hWnd","in"],
871
870
  ["BOOL","fShutDown","in"],
872
871
  ["BOOL","fForce","in"],
873
872
  ])
874
873
 
875
- railgun.add_function( 'user32', 'EnumChildWindows', 'BOOL',[
874
+ dll.add_function('EnumChildWindows', 'BOOL',[
876
875
  ["DWORD","hWndParent","in"],
877
876
  ["PBLOB","lpEnumFunc","in"],
878
877
  ["DWORD","lParam","in"],
879
878
  ])
880
879
 
881
- railgun.add_function( 'user32', 'EnumClipboardFormats', 'DWORD',[
880
+ dll.add_function('EnumClipboardFormats', 'DWORD',[
882
881
  ["DWORD","format","in"],
883
882
  ])
884
883
 
885
- railgun.add_function( 'user32', 'EnumDesktopWindows', 'BOOL',[
884
+ dll.add_function('EnumDesktopWindows', 'BOOL',[
886
885
  ["DWORD","hDesktop","in"],
887
886
  ["PBLOB","lpfn","in"],
888
887
  ["DWORD","lParam","in"],
889
888
  ])
890
889
 
891
- railgun.add_function( 'user32', 'EnumDesktopsA', 'BOOL',[
890
+ dll.add_function('EnumDesktopsA', 'BOOL',[
892
891
  ["DWORD","hwinsta","in"],
893
892
  ["PBLOB","lpEnumFunc","in"],
894
893
  ["DWORD","lParam","in"],
895
894
  ])
896
895
 
897
- railgun.add_function( 'user32', 'EnumDesktopsW', 'BOOL',[
896
+ dll.add_function('EnumDesktopsW', 'BOOL',[
898
897
  ["DWORD","hwinsta","in"],
899
898
  ["PBLOB","lpEnumFunc","in"],
900
899
  ["DWORD","lParam","in"],
901
900
  ])
902
901
 
903
- railgun.add_function( 'user32', 'EnumDisplayDevicesA', 'BOOL',[
902
+ dll.add_function('EnumDisplayDevicesA', 'BOOL',[
904
903
  ["PCHAR","lpDevice","in"],
905
904
  ["DWORD","iDevNum","in"],
906
905
  ["PBLOB","lpDisplayDevice","inout"],
907
906
  ["DWORD","dwFlags","in"],
908
907
  ])
909
908
 
910
- railgun.add_function( 'user32', 'EnumDisplayDevicesW', 'BOOL',[
909
+ dll.add_function('EnumDisplayDevicesW', 'BOOL',[
911
910
  ["PWCHAR","lpDevice","in"],
912
911
  ["DWORD","iDevNum","in"],
913
912
  ["PBLOB","lpDisplayDevice","inout"],
914
913
  ["DWORD","dwFlags","in"],
915
914
  ])
916
915
 
917
- railgun.add_function( 'user32', 'EnumDisplayMonitors', 'BOOL',[
916
+ dll.add_function('EnumDisplayMonitors', 'BOOL',[
918
917
  ["DWORD","hdc","in"],
919
918
  ["PBLOB","lprcClip","in"],
920
919
  ["PBLOB","lpfnEnum","in"],
921
920
  ["DWORD","dwData","in"],
922
921
  ])
923
922
 
924
- railgun.add_function( 'user32', 'EnumDisplaySettingsA', 'BOOL',[
923
+ dll.add_function('EnumDisplaySettingsA', 'BOOL',[
925
924
  ["PCHAR","lpszDeviceName","in"],
926
925
  ["DWORD","iModeNum","in"],
927
926
  ["PBLOB","lpDevMode","out"],
928
927
  ])
929
928
 
930
- railgun.add_function( 'user32', 'EnumDisplaySettingsExA', 'BOOL',[
929
+ dll.add_function('EnumDisplaySettingsExA', 'BOOL',[
931
930
  ["PCHAR","lpszDeviceName","in"],
932
931
  ["DWORD","iModeNum","in"],
933
932
  ["PBLOB","lpDevMode","out"],
934
933
  ["DWORD","dwFlags","in"],
935
934
  ])
936
935
 
937
- railgun.add_function( 'user32', 'EnumDisplaySettingsExW', 'BOOL',[
936
+ dll.add_function('EnumDisplaySettingsExW', 'BOOL',[
938
937
  ["PWCHAR","lpszDeviceName","in"],
939
938
  ["DWORD","iModeNum","in"],
940
939
  ["PBLOB","lpDevMode","out"],
941
940
  ["DWORD","dwFlags","in"],
942
941
  ])
943
942
 
944
- railgun.add_function( 'user32', 'EnumDisplaySettingsW', 'BOOL',[
943
+ dll.add_function('EnumDisplaySettingsW', 'BOOL',[
945
944
  ["PWCHAR","lpszDeviceName","in"],
946
945
  ["DWORD","iModeNum","in"],
947
946
  ["PBLOB","lpDevMode","out"],
948
947
  ])
949
948
 
950
- railgun.add_function( 'user32', 'EnumPropsA', 'DWORD',[
949
+ dll.add_function('EnumPropsA', 'DWORD',[
951
950
  ["DWORD","hWnd","in"],
952
951
  ["PBLOB","lpEnumFunc","in"],
953
952
  ])
954
953
 
955
- railgun.add_function( 'user32', 'EnumPropsExA', 'DWORD',[
954
+ dll.add_function('EnumPropsExA', 'DWORD',[
956
955
  ["DWORD","hWnd","in"],
957
956
  ["PBLOB","lpEnumFunc","in"],
958
957
  ["DWORD","lParam","in"],
959
958
  ])
960
959
 
961
- railgun.add_function( 'user32', 'EnumPropsExW', 'DWORD',[
960
+ dll.add_function('EnumPropsExW', 'DWORD',[
962
961
  ["DWORD","hWnd","in"],
963
962
  ["PBLOB","lpEnumFunc","in"],
964
963
  ["DWORD","lParam","in"],
965
964
  ])
966
965
 
967
- railgun.add_function( 'user32', 'EnumPropsW', 'DWORD',[
966
+ dll.add_function('EnumPropsW', 'DWORD',[
968
967
  ["DWORD","hWnd","in"],
969
968
  ["PBLOB","lpEnumFunc","in"],
970
969
  ])
971
970
 
972
- railgun.add_function( 'user32', 'EnumThreadWindows', 'BOOL',[
971
+ dll.add_function('EnumThreadWindows', 'BOOL',[
973
972
  ["DWORD","dwThreadId","in"],
974
973
  ["PBLOB","lpfn","in"],
975
974
  ["DWORD","lParam","in"],
976
975
  ])
977
976
 
978
- railgun.add_function( 'user32', 'EnumWindowStationsA', 'BOOL',[
977
+ dll.add_function('EnumWindowStationsA', 'BOOL',[
979
978
  ["PBLOB","lpEnumFunc","in"],
980
979
  ["DWORD","lParam","in"],
981
980
  ])
982
981
 
983
- railgun.add_function( 'user32', 'EnumWindowStationsW', 'BOOL',[
982
+ dll.add_function('EnumWindowStationsW', 'BOOL',[
984
983
  ["PBLOB","lpEnumFunc","in"],
985
984
  ["DWORD","lParam","in"],
986
985
  ])
987
986
 
988
- railgun.add_function( 'user32', 'EnumWindows', 'BOOL',[
987
+ dll.add_function('EnumWindows', 'BOOL',[
989
988
  ["PBLOB","lpEnumFunc","in"],
990
989
  ["DWORD","lParam","in"],
991
990
  ])
992
991
 
993
- railgun.add_function( 'user32', 'EqualRect', 'BOOL',[
992
+ dll.add_function('EqualRect', 'BOOL',[
994
993
  ["PBLOB","lprc1","in"],
995
994
  ["PBLOB","lprc2","in"],
996
995
  ])
997
996
 
998
- railgun.add_function( 'user32', 'ExcludeUpdateRgn', 'DWORD',[
997
+ dll.add_function('ExcludeUpdateRgn', 'DWORD',[
999
998
  ["DWORD","hDC","in"],
1000
999
  ["DWORD","hWnd","in"],
1001
1000
  ])
1002
1001
 
1003
- railgun.add_function( 'user32', 'ExitWindowsEx', 'BOOL',[
1002
+ dll.add_function('ExitWindowsEx', 'BOOL',[
1004
1003
  ["DWORD","uFlags","in"],
1005
1004
  ["DWORD","dwReason","in"],
1006
1005
  ])
1007
1006
 
1008
- railgun.add_function( 'user32', 'FillRect', 'DWORD',[
1007
+ dll.add_function('FillRect', 'DWORD',[
1009
1008
  ["DWORD","hDC","in"],
1010
1009
  ["PBLOB","lprc","in"],
1011
1010
  ["DWORD","hbr","in"],
1012
1011
  ])
1013
1012
 
1014
- railgun.add_function( 'user32', 'FindWindowA', 'DWORD',[
1013
+ dll.add_function('FindWindowA', 'DWORD',[
1015
1014
  ["PCHAR","lpClassName","in"],
1016
1015
  ["PCHAR","lpWindowName","in"],
1017
1016
  ])
1018
1017
 
1019
- railgun.add_function( 'user32', 'FindWindowExA', 'DWORD',[
1018
+ dll.add_function('FindWindowExA', 'DWORD',[
1020
1019
  ["DWORD","hWndParent","in"],
1021
1020
  ["DWORD","hWndChildAfter","in"],
1022
1021
  ["PCHAR","lpszClass","in"],
1023
1022
  ["PCHAR","lpszWindow","in"],
1024
1023
  ])
1025
1024
 
1026
- railgun.add_function( 'user32', 'FindWindowExW', 'DWORD',[
1025
+ dll.add_function('FindWindowExW', 'DWORD',[
1027
1026
  ["DWORD","hWndParent","in"],
1028
1027
  ["DWORD","hWndChildAfter","in"],
1029
1028
  ["PWCHAR","lpszClass","in"],
1030
1029
  ["PWCHAR","lpszWindow","in"],
1031
1030
  ])
1032
1031
 
1033
- railgun.add_function( 'user32', 'FindWindowW', 'DWORD',[
1032
+ dll.add_function('FindWindowW', 'DWORD',[
1034
1033
  ["PWCHAR","lpClassName","in"],
1035
1034
  ["PWCHAR","lpWindowName","in"],
1036
1035
  ])
1037
1036
 
1038
- railgun.add_function( 'user32', 'FlashWindow', 'BOOL',[
1037
+ dll.add_function('FlashWindow', 'BOOL',[
1039
1038
  ["DWORD","hWnd","in"],
1040
1039
  ["BOOL","bInvert","in"],
1041
1040
  ])
1042
1041
 
1043
- railgun.add_function( 'user32', 'FlashWindowEx', 'BOOL',[
1042
+ dll.add_function('FlashWindowEx', 'BOOL',[
1044
1043
  ["PBLOB","pfwi","in"],
1045
1044
  ])
1046
1045
 
1047
- railgun.add_function( 'user32', 'FrameRect', 'DWORD',[
1046
+ dll.add_function('FrameRect', 'DWORD',[
1048
1047
  ["DWORD","hDC","in"],
1049
1048
  ["PBLOB","lprc","in"],
1050
1049
  ["DWORD","hbr","in"],
1051
1050
  ])
1052
1051
 
1053
- railgun.add_function( 'user32', 'GetActiveWindow', 'DWORD',[
1052
+ dll.add_function('GetActiveWindow', 'DWORD',[
1054
1053
  ])
1055
1054
 
1056
- railgun.add_function( 'user32', 'GetAltTabInfoA', 'BOOL',[
1055
+ dll.add_function('GetAltTabInfoA', 'BOOL',[
1057
1056
  ["DWORD","hwnd","in"],
1058
1057
  ["DWORD","iItem","in"],
1059
1058
  ["PBLOB","pati","inout"],
@@ -1061,7 +1060,7 @@ class Def_user32
1061
1060
  ["DWORD","cchItemText","in"],
1062
1061
  ])
1063
1062
 
1064
- railgun.add_function( 'user32', 'GetAltTabInfoW', 'BOOL',[
1063
+ dll.add_function('GetAltTabInfoW', 'BOOL',[
1065
1064
  ["DWORD","hwnd","in"],
1066
1065
  ["DWORD","iItem","in"],
1067
1066
  ["PBLOB","pati","inout"],
@@ -1069,307 +1068,307 @@ class Def_user32
1069
1068
  ["DWORD","cchItemText","in"],
1070
1069
  ])
1071
1070
 
1072
- railgun.add_function( 'user32', 'GetAncestor', 'DWORD',[
1071
+ dll.add_function('GetAncestor', 'DWORD',[
1073
1072
  ["DWORD","hwnd","in"],
1074
1073
  ["DWORD","gaFlags","in"],
1075
1074
  ])
1076
1075
 
1077
- railgun.add_function( 'user32', 'GetAsyncKeyState', 'WORD',[
1076
+ dll.add_function('GetAsyncKeyState', 'WORD',[
1078
1077
  ["DWORD","vKey","in"],
1079
1078
  ])
1080
1079
 
1081
- railgun.add_function( 'user32', 'GetCapture', 'DWORD',[
1080
+ dll.add_function('GetCapture', 'DWORD',[
1082
1081
  ])
1083
1082
 
1084
- railgun.add_function( 'user32', 'GetCaretBlinkTime', 'DWORD',[
1083
+ dll.add_function('GetCaretBlinkTime', 'DWORD',[
1085
1084
  ])
1086
1085
 
1087
- railgun.add_function( 'user32', 'GetCaretPos', 'BOOL',[
1086
+ dll.add_function('GetCaretPos', 'BOOL',[
1088
1087
  ["PBLOB","lpPoint","out"],
1089
1088
  ])
1090
1089
 
1091
- railgun.add_function( 'user32', 'GetClassInfoA', 'BOOL',[
1090
+ dll.add_function('GetClassInfoA', 'BOOL',[
1092
1091
  ["DWORD","hInstance","in"],
1093
1092
  ["PCHAR","lpClassName","in"],
1094
1093
  ["PBLOB","lpWndClass","out"],
1095
1094
  ])
1096
1095
 
1097
- railgun.add_function( 'user32', 'GetClassInfoExA', 'BOOL',[
1096
+ dll.add_function('GetClassInfoExA', 'BOOL',[
1098
1097
  ["DWORD","hInstance","in"],
1099
1098
  ["PCHAR","lpszClass","in"],
1100
1099
  ["PBLOB","lpwcx","out"],
1101
1100
  ])
1102
1101
 
1103
- railgun.add_function( 'user32', 'GetClassInfoExW', 'BOOL',[
1102
+ dll.add_function('GetClassInfoExW', 'BOOL',[
1104
1103
  ["DWORD","hInstance","in"],
1105
1104
  ["PWCHAR","lpszClass","in"],
1106
1105
  ["PBLOB","lpwcx","out"],
1107
1106
  ])
1108
1107
 
1109
- railgun.add_function( 'user32', 'GetClassInfoW', 'BOOL',[
1108
+ dll.add_function('GetClassInfoW', 'BOOL',[
1110
1109
  ["DWORD","hInstance","in"],
1111
1110
  ["PWCHAR","lpClassName","in"],
1112
1111
  ["PBLOB","lpWndClass","out"],
1113
1112
  ])
1114
1113
 
1115
- railgun.add_function( 'user32', 'GetClassLongA', 'DWORD',[
1114
+ dll.add_function('GetClassLongA', 'DWORD',[
1116
1115
  ["DWORD","hWnd","in"],
1117
1116
  ["DWORD","nIndex","in"],
1118
1117
  ])
1119
1118
 
1120
- railgun.add_function( 'user32', 'GetClassLongW', 'DWORD',[
1119
+ dll.add_function('GetClassLongW', 'DWORD',[
1121
1120
  ["DWORD","hWnd","in"],
1122
1121
  ["DWORD","nIndex","in"],
1123
1122
  ])
1124
1123
 
1125
- railgun.add_function( 'user32', 'GetClassNameA', 'DWORD',[
1124
+ dll.add_function('GetClassNameA', 'DWORD',[
1126
1125
  ["DWORD","hWnd","in"],
1127
1126
  ["PCHAR","lpClassName","out"],
1128
1127
  ["DWORD","nMaxCount","in"],
1129
1128
  ])
1130
1129
 
1131
- railgun.add_function( 'user32', 'GetClassNameW', 'DWORD',[
1130
+ dll.add_function('GetClassNameW', 'DWORD',[
1132
1131
  ["DWORD","hWnd","in"],
1133
1132
  ["PWCHAR","lpClassName","out"],
1134
1133
  ["DWORD","nMaxCount","in"],
1135
1134
  ])
1136
1135
 
1137
- railgun.add_function( 'user32', 'GetClassWord', 'WORD',[
1136
+ dll.add_function('GetClassWord', 'WORD',[
1138
1137
  ["DWORD","hWnd","in"],
1139
1138
  ["DWORD","nIndex","in"],
1140
1139
  ])
1141
1140
 
1142
- railgun.add_function( 'user32', 'GetClientRect', 'BOOL',[
1141
+ dll.add_function('GetClientRect', 'BOOL',[
1143
1142
  ["DWORD","hWnd","in"],
1144
1143
  ["PBLOB","lpRect","out"],
1145
1144
  ])
1146
1145
 
1147
- railgun.add_function( 'user32', 'GetClipCursor', 'BOOL',[
1146
+ dll.add_function('GetClipCursor', 'BOOL',[
1148
1147
  ["PBLOB","lpRect","out"],
1149
1148
  ])
1150
1149
 
1151
- railgun.add_function( 'user32', 'GetClipboardData', 'DWORD',[
1150
+ dll.add_function('GetClipboardData', 'DWORD',[
1152
1151
  ["DWORD","uFormat","in"],
1153
1152
  ])
1154
1153
 
1155
- railgun.add_function( 'user32', 'GetClipboardFormatNameA', 'DWORD',[
1154
+ dll.add_function('GetClipboardFormatNameA', 'DWORD',[
1156
1155
  ["DWORD","format","in"],
1157
1156
  ["PCHAR","lpszFormatName","out"],
1158
1157
  ["DWORD","cchMaxCount","in"],
1159
1158
  ])
1160
1159
 
1161
- railgun.add_function( 'user32', 'GetClipboardFormatNameW', 'DWORD',[
1160
+ dll.add_function('GetClipboardFormatNameW', 'DWORD',[
1162
1161
  ["DWORD","format","in"],
1163
1162
  ["PWCHAR","lpszFormatName","out"],
1164
1163
  ["DWORD","cchMaxCount","in"],
1165
1164
  ])
1166
1165
 
1167
- railgun.add_function( 'user32', 'GetClipboardOwner', 'DWORD',[
1166
+ dll.add_function('GetClipboardOwner', 'DWORD',[
1168
1167
  ])
1169
1168
 
1170
- railgun.add_function( 'user32', 'GetClipboardSequenceNumber', 'DWORD',[
1169
+ dll.add_function('GetClipboardSequenceNumber', 'DWORD',[
1171
1170
  ])
1172
1171
 
1173
- railgun.add_function( 'user32', 'GetClipboardViewer', 'DWORD',[
1172
+ dll.add_function('GetClipboardViewer', 'DWORD',[
1174
1173
  ])
1175
1174
 
1176
- railgun.add_function( 'user32', 'GetComboBoxInfo', 'BOOL',[
1175
+ dll.add_function('GetComboBoxInfo', 'BOOL',[
1177
1176
  ["DWORD","hwndCombo","in"],
1178
1177
  ["PBLOB","pcbi","inout"],
1179
1178
  ])
1180
1179
 
1181
- railgun.add_function( 'user32', 'GetCursor', 'DWORD',[
1180
+ dll.add_function('GetCursor', 'DWORD',[
1182
1181
  ])
1183
1182
 
1184
- railgun.add_function( 'user32', 'GetCursorInfo', 'BOOL',[
1183
+ dll.add_function('GetCursorInfo', 'BOOL',[
1185
1184
  ["PBLOB","pci","inout"],
1186
1185
  ])
1187
1186
 
1188
- railgun.add_function( 'user32', 'GetCursorPos', 'BOOL',[
1187
+ dll.add_function('GetCursorPos', 'BOOL',[
1189
1188
  ["PBLOB","lpPoint","out"],
1190
1189
  ])
1191
1190
 
1192
- railgun.add_function( 'user32', 'GetDC', 'DWORD',[
1191
+ dll.add_function('GetDC', 'DWORD',[
1193
1192
  ["DWORD","hWnd","in"],
1194
1193
  ])
1195
1194
 
1196
- railgun.add_function( 'user32', 'GetDCEx', 'DWORD',[
1195
+ dll.add_function('GetDCEx', 'DWORD',[
1197
1196
  ["DWORD","hWnd","in"],
1198
1197
  ["DWORD","hrgnClip","in"],
1199
1198
  ["DWORD","flags","in"],
1200
1199
  ])
1201
1200
 
1202
- railgun.add_function( 'user32', 'GetDesktopWindow', 'DWORD',[
1201
+ dll.add_function('GetDesktopWindow', 'DWORD',[
1203
1202
  ])
1204
1203
 
1205
- railgun.add_function( 'user32', 'GetDialogBaseUnits', 'DWORD',[
1204
+ dll.add_function('GetDialogBaseUnits', 'DWORD',[
1206
1205
  ])
1207
1206
 
1208
- railgun.add_function( 'user32', 'GetDlgCtrlID', 'DWORD',[
1207
+ dll.add_function('GetDlgCtrlID', 'DWORD',[
1209
1208
  ["DWORD","hWnd","in"],
1210
1209
  ])
1211
1210
 
1212
- railgun.add_function( 'user32', 'GetDlgItem', 'DWORD',[
1211
+ dll.add_function('GetDlgItem', 'DWORD',[
1213
1212
  ["DWORD","hDlg","in"],
1214
1213
  ["DWORD","nIDDlgItem","in"],
1215
1214
  ])
1216
1215
 
1217
- railgun.add_function( 'user32', 'GetDlgItemInt', 'DWORD',[
1216
+ dll.add_function('GetDlgItemInt', 'DWORD',[
1218
1217
  ["DWORD","hDlg","in"],
1219
1218
  ["DWORD","nIDDlgItem","in"],
1220
1219
  ["PBLOB","lpTranslated","out"],
1221
1220
  ["BOOL","bSigned","in"],
1222
1221
  ])
1223
1222
 
1224
- railgun.add_function( 'user32', 'GetDlgItemTextA', 'DWORD',[
1223
+ dll.add_function('GetDlgItemTextA', 'DWORD',[
1225
1224
  ["DWORD","hDlg","in"],
1226
1225
  ["DWORD","nIDDlgItem","in"],
1227
1226
  ["PCHAR","lpString","out"],
1228
1227
  ["DWORD","cchMax","in"],
1229
1228
  ])
1230
1229
 
1231
- railgun.add_function( 'user32', 'GetDlgItemTextW', 'DWORD',[
1230
+ dll.add_function('GetDlgItemTextW', 'DWORD',[
1232
1231
  ["DWORD","hDlg","in"],
1233
1232
  ["DWORD","nIDDlgItem","in"],
1234
1233
  ["PWCHAR","lpString","out"],
1235
1234
  ["DWORD","cchMax","in"],
1236
1235
  ])
1237
1236
 
1238
- railgun.add_function( 'user32', 'GetDoubleClickTime', 'DWORD',[
1237
+ dll.add_function('GetDoubleClickTime', 'DWORD',[
1239
1238
  ])
1240
1239
 
1241
- railgun.add_function( 'user32', 'GetFocus', 'DWORD',[
1240
+ dll.add_function('GetFocus', 'DWORD',[
1242
1241
  ])
1243
1242
 
1244
- railgun.add_function( 'user32', 'GetForegroundWindow', 'DWORD',[
1243
+ dll.add_function('GetForegroundWindow', 'DWORD',[
1245
1244
  ])
1246
1245
 
1247
- railgun.add_function( 'user32', 'GetGUIThreadInfo', 'BOOL',[
1246
+ dll.add_function('GetGUIThreadInfo', 'BOOL',[
1248
1247
  ["DWORD","idThread","in"],
1249
1248
  ["PBLOB","pgui","inout"],
1250
1249
  ])
1251
1250
 
1252
- railgun.add_function( 'user32', 'GetGuiResources', 'DWORD',[
1251
+ dll.add_function('GetGuiResources', 'DWORD',[
1253
1252
  ["DWORD","hProcess","in"],
1254
1253
  ["DWORD","uiFlags","in"],
1255
1254
  ])
1256
1255
 
1257
- railgun.add_function( 'user32', 'GetIconInfo', 'BOOL',[
1256
+ dll.add_function('GetIconInfo', 'BOOL',[
1258
1257
  ["DWORD","hIcon","in"],
1259
1258
  ["PBLOB","piconinfo","out"],
1260
1259
  ])
1261
1260
 
1262
- railgun.add_function( 'user32', 'GetInputState', 'BOOL',[
1261
+ dll.add_function('GetInputState', 'BOOL',[
1263
1262
  ])
1264
1263
 
1265
- railgun.add_function( 'user32', 'GetKBCodePage', 'DWORD',[
1264
+ dll.add_function('GetKBCodePage', 'DWORD',[
1266
1265
  ])
1267
1266
 
1268
- railgun.add_function( 'user32', 'GetKeyNameTextA', 'DWORD',[
1267
+ dll.add_function('GetKeyNameTextA', 'DWORD',[
1269
1268
  ["DWORD","lParam","in"],
1270
1269
  ["PCHAR","lpString","out"],
1271
1270
  ["DWORD","cchSize","in"],
1272
1271
  ])
1273
1272
 
1274
- railgun.add_function( 'user32', 'GetKeyNameTextW', 'DWORD',[
1273
+ dll.add_function('GetKeyNameTextW', 'DWORD',[
1275
1274
  ["DWORD","lParam","in"],
1276
1275
  ["PWCHAR","lpString","out"],
1277
1276
  ["DWORD","cchSize","in"],
1278
1277
  ])
1279
1278
 
1280
- railgun.add_function( 'user32', 'GetKeyState', 'WORD',[
1279
+ dll.add_function('GetKeyState', 'WORD',[
1281
1280
  ["DWORD","nVirtKey","in"],
1282
1281
  ])
1283
1282
 
1284
- railgun.add_function( 'user32', 'GetKeyboardLayout', 'DWORD',[
1283
+ dll.add_function('GetKeyboardLayout', 'DWORD',[
1285
1284
  ["DWORD","idThread","in"],
1286
1285
  ])
1287
1286
 
1288
- railgun.add_function( 'user32', 'GetKeyboardType', 'DWORD',[
1287
+ dll.add_function('GetKeyboardType', 'DWORD',[
1289
1288
  ["DWORD","nTypeFlag","in"],
1290
1289
  ])
1291
1290
 
1292
- railgun.add_function( 'user32', 'GetLastActivePopup', 'DWORD',[
1291
+ dll.add_function('GetLastActivePopup', 'DWORD',[
1293
1292
  ["DWORD","hWnd","in"],
1294
1293
  ])
1295
1294
 
1296
- railgun.add_function( 'user32', 'GetLastInputInfo', 'BOOL',[
1295
+ dll.add_function('GetLastInputInfo', 'BOOL',[
1297
1296
  ["PBLOB","plii","out"],
1298
1297
  ])
1299
1298
 
1300
- railgun.add_function( 'user32', 'GetLayeredWindowAttributes', 'BOOL',[
1299
+ dll.add_function('GetLayeredWindowAttributes', 'BOOL',[
1301
1300
  ["DWORD","hwnd","in"],
1302
1301
  ["PDWORD","pcrKey","out"],
1303
1302
  ["PBLOB","pbAlpha","out"],
1304
1303
  ["PDWORD","pdwFlags","out"],
1305
1304
  ])
1306
1305
 
1307
- railgun.add_function( 'user32', 'GetListBoxInfo', 'DWORD',[
1306
+ dll.add_function('GetListBoxInfo', 'DWORD',[
1308
1307
  ["DWORD","hwnd","in"],
1309
1308
  ])
1310
1309
 
1311
- railgun.add_function( 'user32', 'GetMenu', 'DWORD',[
1310
+ dll.add_function('GetMenu', 'DWORD',[
1312
1311
  ["DWORD","hWnd","in"],
1313
1312
  ])
1314
1313
 
1315
- railgun.add_function( 'user32', 'GetMenuBarInfo', 'BOOL',[
1314
+ dll.add_function('GetMenuBarInfo', 'BOOL',[
1316
1315
  ["DWORD","hwnd","in"],
1317
1316
  ["DWORD","idObject","in"],
1318
1317
  ["DWORD","idItem","in"],
1319
1318
  ["PBLOB","pmbi","inout"],
1320
1319
  ])
1321
1320
 
1322
- railgun.add_function( 'user32', 'GetMenuCheckMarkDimensions', 'DWORD',[
1321
+ dll.add_function('GetMenuCheckMarkDimensions', 'DWORD',[
1323
1322
  ])
1324
1323
 
1325
- railgun.add_function( 'user32', 'GetMenuDefaultItem', 'DWORD',[
1324
+ dll.add_function('GetMenuDefaultItem', 'DWORD',[
1326
1325
  ["DWORD","hMenu","in"],
1327
1326
  ["DWORD","fByPos","in"],
1328
1327
  ["DWORD","gmdiFlags","in"],
1329
1328
  ])
1330
1329
 
1331
- railgun.add_function( 'user32', 'GetMenuInfo', 'BOOL',[
1330
+ dll.add_function('GetMenuInfo', 'BOOL',[
1332
1331
  ["DWORD","param0","in"],
1333
1332
  ["PBLOB","param1","inout"],
1334
1333
  ])
1335
1334
 
1336
- railgun.add_function( 'user32', 'GetMenuItemCount', 'DWORD',[
1335
+ dll.add_function('GetMenuItemCount', 'DWORD',[
1337
1336
  ["DWORD","hMenu","in"],
1338
1337
  ])
1339
1338
 
1340
- railgun.add_function( 'user32', 'GetMenuItemID', 'DWORD',[
1339
+ dll.add_function('GetMenuItemID', 'DWORD',[
1341
1340
  ["DWORD","hMenu","in"],
1342
1341
  ["DWORD","nPos","in"],
1343
1342
  ])
1344
1343
 
1345
- railgun.add_function( 'user32', 'GetMenuItemInfoA', 'BOOL',[
1344
+ dll.add_function('GetMenuItemInfoA', 'BOOL',[
1346
1345
  ["DWORD","hmenu","in"],
1347
1346
  ["DWORD","item","in"],
1348
1347
  ["BOOL","fByPosition","in"],
1349
1348
  ["PBLOB","lpmii","inout"],
1350
1349
  ])
1351
1350
 
1352
- railgun.add_function( 'user32', 'GetMenuItemInfoW', 'BOOL',[
1351
+ dll.add_function('GetMenuItemInfoW', 'BOOL',[
1353
1352
  ["DWORD","hmenu","in"],
1354
1353
  ["DWORD","item","in"],
1355
1354
  ["BOOL","fByPosition","in"],
1356
1355
  ["PBLOB","lpmii","inout"],
1357
1356
  ])
1358
1357
 
1359
- railgun.add_function( 'user32', 'GetMenuItemRect', 'BOOL',[
1358
+ dll.add_function('GetMenuItemRect', 'BOOL',[
1360
1359
  ["DWORD","hWnd","in"],
1361
1360
  ["DWORD","hMenu","in"],
1362
1361
  ["DWORD","uItem","in"],
1363
1362
  ["PBLOB","lprcItem","out"],
1364
1363
  ])
1365
1364
 
1366
- railgun.add_function( 'user32', 'GetMenuState', 'DWORD',[
1365
+ dll.add_function('GetMenuState', 'DWORD',[
1367
1366
  ["DWORD","hMenu","in"],
1368
1367
  ["DWORD","uId","in"],
1369
1368
  ["DWORD","uFlags","in"],
1370
1369
  ])
1371
1370
 
1372
- railgun.add_function( 'user32', 'GetMenuStringA', 'DWORD',[
1371
+ dll.add_function('GetMenuStringA', 'DWORD',[
1373
1372
  ["DWORD","hMenu","in"],
1374
1373
  ["DWORD","uIDItem","in"],
1375
1374
  ["PCHAR","lpString","out"],
@@ -1377,7 +1376,7 @@ class Def_user32
1377
1376
  ["DWORD","flags","in"],
1378
1377
  ])
1379
1378
 
1380
- railgun.add_function( 'user32', 'GetMenuStringW', 'DWORD',[
1379
+ dll.add_function('GetMenuStringW', 'DWORD',[
1381
1380
  ["DWORD","hMenu","in"],
1382
1381
  ["DWORD","uIDItem","in"],
1383
1382
  ["PWCHAR","lpString","out"],
@@ -1385,40 +1384,40 @@ class Def_user32
1385
1384
  ["DWORD","flags","in"],
1386
1385
  ])
1387
1386
 
1388
- railgun.add_function( 'user32', 'GetMessageA', 'BOOL',[
1387
+ dll.add_function('GetMessageA', 'BOOL',[
1389
1388
  ["PBLOB","lpMsg","out"],
1390
1389
  ["DWORD","hWnd","in"],
1391
1390
  ["DWORD","wMsgFilterMin","in"],
1392
1391
  ["DWORD","wMsgFilterMax","in"],
1393
1392
  ])
1394
1393
 
1395
- railgun.add_function( 'user32', 'GetMessageExtraInfo', 'DWORD',[
1394
+ dll.add_function('GetMessageExtraInfo', 'DWORD',[
1396
1395
  ])
1397
1396
 
1398
- railgun.add_function( 'user32', 'GetMessagePos', 'DWORD',[
1397
+ dll.add_function('GetMessagePos', 'DWORD',[
1399
1398
  ])
1400
1399
 
1401
- railgun.add_function( 'user32', 'GetMessageTime', 'DWORD',[
1400
+ dll.add_function('GetMessageTime', 'DWORD',[
1402
1401
  ])
1403
1402
 
1404
- railgun.add_function( 'user32', 'GetMessageW', 'BOOL',[
1403
+ dll.add_function('GetMessageW', 'BOOL',[
1405
1404
  ["PBLOB","lpMsg","out"],
1406
1405
  ["DWORD","hWnd","in"],
1407
1406
  ["DWORD","wMsgFilterMin","in"],
1408
1407
  ["DWORD","wMsgFilterMax","in"],
1409
1408
  ])
1410
1409
 
1411
- railgun.add_function( 'user32', 'GetMonitorInfoA', 'BOOL',[
1410
+ dll.add_function('GetMonitorInfoA', 'BOOL',[
1412
1411
  ["DWORD","hMonitor","in"],
1413
1412
  ["PBLOB","lpmi","inout"],
1414
1413
  ])
1415
1414
 
1416
- railgun.add_function( 'user32', 'GetMonitorInfoW', 'BOOL',[
1415
+ dll.add_function('GetMonitorInfoW', 'BOOL',[
1417
1416
  ["DWORD","hMonitor","in"],
1418
1417
  ["PBLOB","lpmi","inout"],
1419
1418
  ])
1420
1419
 
1421
- railgun.add_function( 'user32', 'GetMouseMovePointsEx', 'DWORD',[
1420
+ dll.add_function('GetMouseMovePointsEx', 'DWORD',[
1422
1421
  ["DWORD","cbSize","in"],
1423
1422
  ["PBLOB","lppt","in"],
1424
1423
  ["PBLOB","lpptBuf","out"],
@@ -1426,58 +1425,58 @@ class Def_user32
1426
1425
  ["DWORD","resolution","in"],
1427
1426
  ])
1428
1427
 
1429
- railgun.add_function( 'user32', 'GetNextDlgGroupItem', 'DWORD',[
1428
+ dll.add_function('GetNextDlgGroupItem', 'DWORD',[
1430
1429
  ["DWORD","hDlg","in"],
1431
1430
  ["DWORD","hCtl","in"],
1432
1431
  ["BOOL","bPrevious","in"],
1433
1432
  ])
1434
1433
 
1435
- railgun.add_function( 'user32', 'GetNextDlgTabItem', 'DWORD',[
1434
+ dll.add_function('GetNextDlgTabItem', 'DWORD',[
1436
1435
  ["DWORD","hDlg","in"],
1437
1436
  ["DWORD","hCtl","in"],
1438
1437
  ["BOOL","bPrevious","in"],
1439
1438
  ])
1440
1439
 
1441
- railgun.add_function( 'user32', 'GetOpenClipboardWindow', 'DWORD',[
1440
+ dll.add_function('GetOpenClipboardWindow', 'DWORD',[
1442
1441
  ])
1443
1442
 
1444
- railgun.add_function( 'user32', 'GetParent', 'DWORD',[
1443
+ dll.add_function('GetParent', 'DWORD',[
1445
1444
  ["DWORD","hWnd","in"],
1446
1445
  ])
1447
1446
 
1448
- railgun.add_function( 'user32', 'GetPriorityClipboardFormat', 'DWORD',[
1447
+ dll.add_function('GetPriorityClipboardFormat', 'DWORD',[
1449
1448
  ["PDWORD","paFormatPriorityList","in"],
1450
1449
  ["DWORD","cFormats","in"],
1451
1450
  ])
1452
1451
 
1453
- railgun.add_function( 'user32', 'GetProcessDefaultLayout', 'BOOL',[
1452
+ dll.add_function('GetProcessDefaultLayout', 'BOOL',[
1454
1453
  ["PDWORD","pdwDefaultLayout","out"],
1455
1454
  ])
1456
1455
 
1457
- railgun.add_function( 'user32', 'GetProcessWindowStation', 'DWORD',[
1456
+ dll.add_function('GetProcessWindowStation', 'DWORD',[
1458
1457
  ])
1459
1458
 
1460
- railgun.add_function( 'user32', 'GetPropA', 'DWORD',[
1459
+ dll.add_function('GetPropA', 'DWORD',[
1461
1460
  ["DWORD","hWnd","in"],
1462
1461
  ["PCHAR","lpString","in"],
1463
1462
  ])
1464
1463
 
1465
- railgun.add_function( 'user32', 'GetPropW', 'DWORD',[
1464
+ dll.add_function('GetPropW', 'DWORD',[
1466
1465
  ["DWORD","hWnd","in"],
1467
1466
  ["PWCHAR","lpString","in"],
1468
1467
  ])
1469
1468
 
1470
- railgun.add_function( 'user32', 'GetQueueStatus', 'DWORD',[
1469
+ dll.add_function('GetQueueStatus', 'DWORD',[
1471
1470
  ["DWORD","flags","in"],
1472
1471
  ])
1473
1472
 
1474
- railgun.add_function( 'user32', 'GetRawInputBuffer', 'DWORD',[
1473
+ dll.add_function('GetRawInputBuffer', 'DWORD',[
1475
1474
  ["PBLOB","pData","out"],
1476
1475
  ["PDWORD","pcbSize","inout"],
1477
1476
  ["DWORD","cbSizeHeader","in"],
1478
1477
  ])
1479
1478
 
1480
- railgun.add_function( 'user32', 'GetRawInputData', 'DWORD',[
1479
+ dll.add_function('GetRawInputData', 'DWORD',[
1481
1480
  ["DWORD","hRawInput","in"],
1482
1481
  ["DWORD","uiCommand","in"],
1483
1482
  ["PBLOB","pData","out"],
@@ -1485,107 +1484,107 @@ class Def_user32
1485
1484
  ["DWORD","cbSizeHeader","in"],
1486
1485
  ])
1487
1486
 
1488
- railgun.add_function( 'user32', 'GetRawInputDeviceInfoA', 'DWORD',[
1487
+ dll.add_function('GetRawInputDeviceInfoA', 'DWORD',[
1489
1488
  ["DWORD","hDevice","in"],
1490
1489
  ["DWORD","uiCommand","in"],
1491
1490
  ["PBLOB","pData","inout"],
1492
1491
  ["PDWORD","pcbSize","inout"],
1493
1492
  ])
1494
1493
 
1495
- railgun.add_function( 'user32', 'GetRawInputDeviceInfoW', 'DWORD',[
1494
+ dll.add_function('GetRawInputDeviceInfoW', 'DWORD',[
1496
1495
  ["DWORD","hDevice","in"],
1497
1496
  ["DWORD","uiCommand","in"],
1498
1497
  ["PBLOB","pData","inout"],
1499
1498
  ["PDWORD","pcbSize","inout"],
1500
1499
  ])
1501
1500
 
1502
- railgun.add_function( 'user32', 'GetRawInputDeviceList', 'DWORD',[
1501
+ dll.add_function('GetRawInputDeviceList', 'DWORD',[
1503
1502
  ["PBLOB","pRawInputDeviceList","out"],
1504
1503
  ["PDWORD","puiNumDevices","inout"],
1505
1504
  ["DWORD","cbSize","in"],
1506
1505
  ])
1507
1506
 
1508
- railgun.add_function( 'user32', 'GetRegisteredRawInputDevices', 'DWORD',[
1507
+ dll.add_function('GetRegisteredRawInputDevices', 'DWORD',[
1509
1508
  ["PBLOB","pRawInputDevices","out"],
1510
1509
  ["PDWORD","puiNumDevices","inout"],
1511
1510
  ["DWORD","cbSize","in"],
1512
1511
  ])
1513
1512
 
1514
- railgun.add_function( 'user32', 'GetScrollBarInfo', 'BOOL',[
1513
+ dll.add_function('GetScrollBarInfo', 'BOOL',[
1515
1514
  ["DWORD","hwnd","in"],
1516
1515
  ["DWORD","idObject","in"],
1517
1516
  ["PBLOB","psbi","inout"],
1518
1517
  ])
1519
1518
 
1520
- railgun.add_function( 'user32', 'GetScrollInfo', 'BOOL',[
1519
+ dll.add_function('GetScrollInfo', 'BOOL',[
1521
1520
  ["DWORD","hwnd","in"],
1522
1521
  ["DWORD","nBar","in"],
1523
1522
  ["PBLOB","lpsi","inout"],
1524
1523
  ])
1525
1524
 
1526
- railgun.add_function( 'user32', 'GetScrollPos', 'DWORD',[
1525
+ dll.add_function('GetScrollPos', 'DWORD',[
1527
1526
  ["DWORD","hWnd","in"],
1528
1527
  ["DWORD","nBar","in"],
1529
1528
  ])
1530
1529
 
1531
- railgun.add_function( 'user32', 'GetScrollRange', 'BOOL',[
1530
+ dll.add_function('GetScrollRange', 'BOOL',[
1532
1531
  ["DWORD","hWnd","in"],
1533
1532
  ["DWORD","nBar","in"],
1534
1533
  ["PDWORD","lpMinPos","out"],
1535
1534
  ["PDWORD","lpMaxPos","out"],
1536
1535
  ])
1537
1536
 
1538
- railgun.add_function( 'user32', 'GetShellWindow', 'DWORD',[
1537
+ dll.add_function('GetShellWindow', 'DWORD',[
1539
1538
  ])
1540
1539
 
1541
- railgun.add_function( 'user32', 'GetSubMenu', 'DWORD',[
1540
+ dll.add_function('GetSubMenu', 'DWORD',[
1542
1541
  ["DWORD","hMenu","in"],
1543
1542
  ["DWORD","nPos","in"],
1544
1543
  ])
1545
1544
 
1546
- railgun.add_function( 'user32', 'GetSysColor', 'DWORD',[
1545
+ dll.add_function('GetSysColor', 'DWORD',[
1547
1546
  ["DWORD","nIndex","in"],
1548
1547
  ])
1549
1548
 
1550
- railgun.add_function( 'user32', 'GetSysColorBrush', 'DWORD',[
1549
+ dll.add_function('GetSysColorBrush', 'DWORD',[
1551
1550
  ["DWORD","nIndex","in"],
1552
1551
  ])
1553
1552
 
1554
- railgun.add_function( 'user32', 'GetSystemMenu', 'DWORD',[
1553
+ dll.add_function('GetSystemMenu', 'DWORD',[
1555
1554
  ["DWORD","hWnd","in"],
1556
1555
  ["BOOL","bRevert","in"],
1557
1556
  ])
1558
1557
 
1559
- railgun.add_function( 'user32', 'GetSystemMetrics', 'DWORD',[
1558
+ dll.add_function('GetSystemMetrics', 'DWORD',[
1560
1559
  ["DWORD","nIndex","in"],
1561
1560
  ])
1562
1561
 
1563
- railgun.add_function( 'user32', 'GetThreadDesktop', 'DWORD',[
1562
+ dll.add_function('GetThreadDesktop', 'DWORD',[
1564
1563
  ["DWORD","dwThreadId","in"],
1565
1564
  ])
1566
1565
 
1567
- railgun.add_function( 'user32', 'GetTitleBarInfo', 'BOOL',[
1566
+ dll.add_function('GetTitleBarInfo', 'BOOL',[
1568
1567
  ["DWORD","hwnd","in"],
1569
1568
  ["PBLOB","pti","inout"],
1570
1569
  ])
1571
1570
 
1572
- railgun.add_function( 'user32', 'GetTopWindow', 'DWORD',[
1571
+ dll.add_function('GetTopWindow', 'DWORD',[
1573
1572
  ["DWORD","hWnd","in"],
1574
1573
  ])
1575
1574
 
1576
- railgun.add_function( 'user32', 'GetUpdateRect', 'BOOL',[
1575
+ dll.add_function('GetUpdateRect', 'BOOL',[
1577
1576
  ["DWORD","hWnd","in"],
1578
1577
  ["PBLOB","lpRect","out"],
1579
1578
  ["BOOL","bErase","in"],
1580
1579
  ])
1581
1580
 
1582
- railgun.add_function( 'user32', 'GetUpdateRgn', 'DWORD',[
1581
+ dll.add_function('GetUpdateRgn', 'DWORD',[
1583
1582
  ["DWORD","hWnd","in"],
1584
1583
  ["DWORD","hRgn","in"],
1585
1584
  ["BOOL","bErase","in"],
1586
1585
  ])
1587
1586
 
1588
- railgun.add_function( 'user32', 'GetUserObjectInformationA', 'BOOL',[
1587
+ dll.add_function('GetUserObjectInformationA', 'BOOL',[
1589
1588
  ["DWORD","hObj","in"],
1590
1589
  ["DWORD","nIndex","in"],
1591
1590
  ["PBLOB","pvInfo","out"],
@@ -1593,7 +1592,7 @@ class Def_user32
1593
1592
  ["PDWORD","lpnLengthNeeded","out"],
1594
1593
  ])
1595
1594
 
1596
- railgun.add_function( 'user32', 'GetUserObjectInformationW', 'BOOL',[
1595
+ dll.add_function('GetUserObjectInformationW', 'BOOL',[
1597
1596
  ["DWORD","hObj","in"],
1598
1597
  ["DWORD","nIndex","in"],
1599
1598
  ["PBLOB","pvInfo","out"],
@@ -1601,7 +1600,7 @@ class Def_user32
1601
1600
  ["PDWORD","lpnLengthNeeded","out"],
1602
1601
  ])
1603
1602
 
1604
- railgun.add_function( 'user32', 'GetUserObjectSecurity', 'BOOL',[
1603
+ dll.add_function('GetUserObjectSecurity', 'BOOL',[
1605
1604
  ["DWORD","hObj","in"],
1606
1605
  ["PBLOB","pSIRequested","in"],
1607
1606
  ["PBLOB","pSID","out"],
@@ -1609,97 +1608,97 @@ class Def_user32
1609
1608
  ["PDWORD","lpnLengthNeeded","out"],
1610
1609
  ])
1611
1610
 
1612
- railgun.add_function( 'user32', 'GetWindow', 'DWORD',[
1611
+ dll.add_function('GetWindow', 'DWORD',[
1613
1612
  ["DWORD","hWnd","in"],
1614
1613
  ["DWORD","uCmd","in"],
1615
1614
  ])
1616
1615
 
1617
- railgun.add_function( 'user32', 'GetWindowContextHelpId', 'DWORD',[
1616
+ dll.add_function('GetWindowContextHelpId', 'DWORD',[
1618
1617
  ["DWORD","param0","in"],
1619
1618
  ])
1620
1619
 
1621
- railgun.add_function( 'user32', 'GetWindowDC', 'DWORD',[
1620
+ dll.add_function('GetWindowDC', 'DWORD',[
1622
1621
  ["DWORD","hWnd","in"],
1623
1622
  ])
1624
1623
 
1625
- railgun.add_function( 'user32', 'GetWindowInfo', 'BOOL',[
1624
+ dll.add_function('GetWindowInfo', 'BOOL',[
1626
1625
  ["DWORD","hwnd","in"],
1627
1626
  ["PBLOB","pwi","inout"],
1628
1627
  ])
1629
1628
 
1630
- railgun.add_function( 'user32', 'GetWindowLongA', 'DWORD',[
1629
+ dll.add_function('GetWindowLongA', 'DWORD',[
1631
1630
  ["DWORD","hWnd","in"],
1632
1631
  ["DWORD","nIndex","in"],
1633
1632
  ])
1634
1633
 
1635
- railgun.add_function( 'user32', 'GetWindowLongW', 'DWORD',[
1634
+ dll.add_function('GetWindowLongW', 'DWORD',[
1636
1635
  ["DWORD","hWnd","in"],
1637
1636
  ["DWORD","nIndex","in"],
1638
1637
  ])
1639
1638
 
1640
- railgun.add_function( 'user32', 'GetWindowModuleFileNameA', 'DWORD',[
1639
+ dll.add_function('GetWindowModuleFileNameA', 'DWORD',[
1641
1640
  ["DWORD","hwnd","in"],
1642
1641
  ["PCHAR","pszFileName","out"],
1643
1642
  ["DWORD","cchFileNameMax","in"],
1644
1643
  ])
1645
1644
 
1646
- railgun.add_function( 'user32', 'GetWindowModuleFileNameW', 'DWORD',[
1645
+ dll.add_function('GetWindowModuleFileNameW', 'DWORD',[
1647
1646
  ["DWORD","hwnd","in"],
1648
1647
  ["PWCHAR","pszFileName","out"],
1649
1648
  ["DWORD","cchFileNameMax","in"],
1650
1649
  ])
1651
1650
 
1652
- railgun.add_function( 'user32', 'GetWindowPlacement', 'BOOL',[
1651
+ dll.add_function('GetWindowPlacement', 'BOOL',[
1653
1652
  ["DWORD","hWnd","in"],
1654
1653
  ["PBLOB","lpwndpl","inout"],
1655
1654
  ])
1656
1655
 
1657
- railgun.add_function( 'user32', 'GetWindowRect', 'BOOL',[
1656
+ dll.add_function('GetWindowRect', 'BOOL',[
1658
1657
  ["DWORD","hWnd","in"],
1659
1658
  ["PBLOB","lpRect","out"],
1660
1659
  ])
1661
1660
 
1662
- railgun.add_function( 'user32', 'GetWindowRgn', 'DWORD',[
1661
+ dll.add_function('GetWindowRgn', 'DWORD',[
1663
1662
  ["DWORD","hWnd","in"],
1664
1663
  ["DWORD","hRgn","in"],
1665
1664
  ])
1666
1665
 
1667
- railgun.add_function( 'user32', 'GetWindowRgnBox', 'DWORD',[
1666
+ dll.add_function('GetWindowRgnBox', 'DWORD',[
1668
1667
  ["DWORD","hWnd","in"],
1669
1668
  ["PBLOB","lprc","out"],
1670
1669
  ])
1671
1670
 
1672
- railgun.add_function( 'user32', 'GetWindowTextA', 'DWORD',[
1671
+ dll.add_function('GetWindowTextA', 'DWORD',[
1673
1672
  ["DWORD","hWnd","in"],
1674
1673
  ["PCHAR","lpString","out"],
1675
1674
  ["DWORD","nMaxCount","in"],
1676
1675
  ])
1677
1676
 
1678
- railgun.add_function( 'user32', 'GetWindowTextLengthA', 'DWORD',[
1677
+ dll.add_function('GetWindowTextLengthA', 'DWORD',[
1679
1678
  ["DWORD","hWnd","in"],
1680
1679
  ])
1681
1680
 
1682
- railgun.add_function( 'user32', 'GetWindowTextLengthW', 'DWORD',[
1681
+ dll.add_function('GetWindowTextLengthW', 'DWORD',[
1683
1682
  ["DWORD","hWnd","in"],
1684
1683
  ])
1685
1684
 
1686
- railgun.add_function( 'user32', 'GetWindowTextW', 'DWORD',[
1685
+ dll.add_function('GetWindowTextW', 'DWORD',[
1687
1686
  ["DWORD","hWnd","in"],
1688
1687
  ["PWCHAR","lpString","out"],
1689
1688
  ["DWORD","nMaxCount","in"],
1690
1689
  ])
1691
1690
 
1692
- railgun.add_function( 'user32', 'GetWindowThreadProcessId', 'DWORD',[
1691
+ dll.add_function('GetWindowThreadProcessId', 'DWORD',[
1693
1692
  ["DWORD","hWnd","in"],
1694
1693
  ["PDWORD","lpdwProcessId","out"],
1695
1694
  ])
1696
1695
 
1697
- railgun.add_function( 'user32', 'GetWindowWord', 'WORD',[
1696
+ dll.add_function('GetWindowWord', 'WORD',[
1698
1697
  ["DWORD","hWnd","in"],
1699
1698
  ["DWORD","nIndex","in"],
1700
1699
  ])
1701
1700
 
1702
- railgun.add_function( 'user32', 'GrayStringA', 'BOOL',[
1701
+ dll.add_function('GrayStringA', 'BOOL',[
1703
1702
  ["DWORD","hDC","in"],
1704
1703
  ["DWORD","hBrush","in"],
1705
1704
  ["PBLOB","lpOutputFunc","in"],
@@ -1711,7 +1710,7 @@ class Def_user32
1711
1710
  ["DWORD","nHeight","in"],
1712
1711
  ])
1713
1712
 
1714
- railgun.add_function( 'user32', 'GrayStringW', 'BOOL',[
1713
+ dll.add_function('GrayStringW', 'BOOL',[
1715
1714
  ["DWORD","hDC","in"],
1716
1715
  ["DWORD","hBrush","in"],
1717
1716
  ["PBLOB","lpOutputFunc","in"],
@@ -1723,31 +1722,31 @@ class Def_user32
1723
1722
  ["DWORD","nHeight","in"],
1724
1723
  ])
1725
1724
 
1726
- railgun.add_function( 'user32', 'HideCaret', 'BOOL',[
1725
+ dll.add_function('HideCaret', 'BOOL',[
1727
1726
  ["DWORD","hWnd","in"],
1728
1727
  ])
1729
1728
 
1730
- railgun.add_function( 'user32', 'HiliteMenuItem', 'BOOL',[
1729
+ dll.add_function('HiliteMenuItem', 'BOOL',[
1731
1730
  ["DWORD","hWnd","in"],
1732
1731
  ["DWORD","hMenu","in"],
1733
1732
  ["DWORD","uIDHiliteItem","in"],
1734
1733
  ["DWORD","uHilite","in"],
1735
1734
  ])
1736
1735
 
1737
- railgun.add_function( 'user32', 'InSendMessage', 'BOOL',[
1736
+ dll.add_function('InSendMessage', 'BOOL',[
1738
1737
  ])
1739
1738
 
1740
- railgun.add_function( 'user32', 'InSendMessageEx', 'DWORD',[
1739
+ dll.add_function('InSendMessageEx', 'DWORD',[
1741
1740
  ["PBLOB","lpReserved","inout"],
1742
1741
  ])
1743
1742
 
1744
- railgun.add_function( 'user32', 'InflateRect', 'BOOL',[
1743
+ dll.add_function('InflateRect', 'BOOL',[
1745
1744
  ["PBLOB","lprc","inout"],
1746
1745
  ["DWORD","dx","in"],
1747
1746
  ["DWORD","dy","in"],
1748
1747
  ])
1749
1748
 
1750
- railgun.add_function( 'user32', 'InsertMenuA', 'BOOL',[
1749
+ dll.add_function('InsertMenuA', 'BOOL',[
1751
1750
  ["DWORD","hMenu","in"],
1752
1751
  ["DWORD","uPosition","in"],
1753
1752
  ["DWORD","uFlags","in"],
@@ -1755,14 +1754,14 @@ class Def_user32
1755
1754
  ["PCHAR","lpNewItem","in"],
1756
1755
  ])
1757
1756
 
1758
- railgun.add_function( 'user32', 'InsertMenuItemW', 'BOOL',[
1757
+ dll.add_function('InsertMenuItemW', 'BOOL',[
1759
1758
  ["DWORD","hmenu","in"],
1760
1759
  ["DWORD","item","in"],
1761
1760
  ["BOOL","fByPosition","in"],
1762
1761
  ["PBLOB","lpmi","in"],
1763
1762
  ])
1764
1763
 
1765
- railgun.add_function( 'user32', 'InsertMenuW', 'BOOL',[
1764
+ dll.add_function('InsertMenuW', 'BOOL',[
1766
1765
  ["DWORD","hMenu","in"],
1767
1766
  ["DWORD","uPosition","in"],
1768
1767
  ["DWORD","uFlags","in"],
@@ -1770,192 +1769,192 @@ class Def_user32
1770
1769
  ["PWCHAR","lpNewItem","in"],
1771
1770
  ])
1772
1771
 
1773
- railgun.add_function( 'user32', 'InternalGetWindowText', 'DWORD',[
1772
+ dll.add_function('InternalGetWindowText', 'DWORD',[
1774
1773
  ["DWORD","hWnd","in"],
1775
1774
  ["PWCHAR","pString","out"],
1776
1775
  ["DWORD","cchMaxCount","in"],
1777
1776
  ])
1778
1777
 
1779
- railgun.add_function( 'user32', 'IntersectRect', 'BOOL',[
1778
+ dll.add_function('IntersectRect', 'BOOL',[
1780
1779
  ["PBLOB","lprcDst","out"],
1781
1780
  ["PBLOB","lprcSrc1","in"],
1782
1781
  ["PBLOB","lprcSrc2","in"],
1783
1782
  ])
1784
1783
 
1785
- railgun.add_function( 'user32', 'InvalidateRect', 'BOOL',[
1784
+ dll.add_function('InvalidateRect', 'BOOL',[
1786
1785
  ["DWORD","hWnd","in"],
1787
1786
  ["PBLOB","lpRect","in"],
1788
1787
  ["BOOL","bErase","in"],
1789
1788
  ])
1790
1789
 
1791
- railgun.add_function( 'user32', 'InvalidateRgn', 'BOOL',[
1790
+ dll.add_function('InvalidateRgn', 'BOOL',[
1792
1791
  ["DWORD","hWnd","in"],
1793
1792
  ["DWORD","hRgn","in"],
1794
1793
  ["BOOL","bErase","in"],
1795
1794
  ])
1796
1795
 
1797
- railgun.add_function( 'user32', 'InvertRect', 'BOOL',[
1796
+ dll.add_function('InvertRect', 'BOOL',[
1798
1797
  ["DWORD","hDC","in"],
1799
1798
  ["PBLOB","lprc","in"],
1800
1799
  ])
1801
1800
 
1802
- railgun.add_function( 'user32', 'IsCharAlphaA', 'BOOL',[
1801
+ dll.add_function('IsCharAlphaA', 'BOOL',[
1803
1802
  ["BYTE","ch","in"],
1804
1803
  ])
1805
1804
 
1806
- railgun.add_function( 'user32', 'IsCharAlphaNumericA', 'BOOL',[
1805
+ dll.add_function('IsCharAlphaNumericA', 'BOOL',[
1807
1806
  ["BYTE","ch","in"],
1808
1807
  ])
1809
1808
 
1810
- railgun.add_function( 'user32', 'IsCharAlphaNumericW', 'BOOL',[
1809
+ dll.add_function('IsCharAlphaNumericW', 'BOOL',[
1811
1810
  ["WORD","ch","in"],
1812
1811
  ])
1813
1812
 
1814
- railgun.add_function( 'user32', 'IsCharAlphaW', 'BOOL',[
1813
+ dll.add_function('IsCharAlphaW', 'BOOL',[
1815
1814
  ["WORD","ch","in"],
1816
1815
  ])
1817
1816
 
1818
- railgun.add_function( 'user32', 'IsCharLowerA', 'BOOL',[
1817
+ dll.add_function('IsCharLowerA', 'BOOL',[
1819
1818
  ["BYTE","ch","in"],
1820
1819
  ])
1821
1820
 
1822
- railgun.add_function( 'user32', 'IsCharLowerW', 'BOOL',[
1821
+ dll.add_function('IsCharLowerW', 'BOOL',[
1823
1822
  ["WORD","ch","in"],
1824
1823
  ])
1825
1824
 
1826
- railgun.add_function( 'user32', 'IsCharUpperA', 'BOOL',[
1825
+ dll.add_function('IsCharUpperA', 'BOOL',[
1827
1826
  ["BYTE","ch","in"],
1828
1827
  ])
1829
1828
 
1830
- railgun.add_function( 'user32', 'IsCharUpperW', 'BOOL',[
1829
+ dll.add_function('IsCharUpperW', 'BOOL',[
1831
1830
  ["WORD","ch","in"],
1832
1831
  ])
1833
1832
 
1834
- railgun.add_function( 'user32', 'IsChild', 'BOOL',[
1833
+ dll.add_function('IsChild', 'BOOL',[
1835
1834
  ["DWORD","hWndParent","in"],
1836
1835
  ["DWORD","hWnd","in"],
1837
1836
  ])
1838
1837
 
1839
- railgun.add_function( 'user32', 'IsClipboardFormatAvailable', 'BOOL',[
1838
+ dll.add_function('IsClipboardFormatAvailable', 'BOOL',[
1840
1839
  ["DWORD","format","in"],
1841
1840
  ])
1842
1841
 
1843
- railgun.add_function( 'user32', 'IsDialogMessageA', 'BOOL',[
1842
+ dll.add_function('IsDialogMessageA', 'BOOL',[
1844
1843
  ["DWORD","hDlg","in"],
1845
1844
  ["PBLOB","lpMsg","in"],
1846
1845
  ])
1847
1846
 
1848
- railgun.add_function( 'user32', 'IsDialogMessageW', 'BOOL',[
1847
+ dll.add_function('IsDialogMessageW', 'BOOL',[
1849
1848
  ["DWORD","hDlg","in"],
1850
1849
  ["PBLOB","lpMsg","in"],
1851
1850
  ])
1852
1851
 
1853
- railgun.add_function( 'user32', 'IsDlgButtonChecked', 'DWORD',[
1852
+ dll.add_function('IsDlgButtonChecked', 'DWORD',[
1854
1853
  ["DWORD","hDlg","in"],
1855
1854
  ["DWORD","nIDButton","in"],
1856
1855
  ])
1857
1856
 
1858
- railgun.add_function( 'user32', 'IsGUIThread', 'BOOL',[
1857
+ dll.add_function('IsGUIThread', 'BOOL',[
1859
1858
  ["BOOL","bConvert","in"],
1860
1859
  ])
1861
1860
 
1862
- railgun.add_function( 'user32', 'IsHungAppWindow', 'BOOL',[
1861
+ dll.add_function('IsHungAppWindow', 'BOOL',[
1863
1862
  ["DWORD","hwnd","in"],
1864
1863
  ])
1865
1864
 
1866
- railgun.add_function( 'user32', 'IsIconic', 'BOOL',[
1865
+ dll.add_function('IsIconic', 'BOOL',[
1867
1866
  ["DWORD","hWnd","in"],
1868
1867
  ])
1869
1868
 
1870
- railgun.add_function( 'user32', 'IsMenu', 'BOOL',[
1869
+ dll.add_function('IsMenu', 'BOOL',[
1871
1870
  ["DWORD","hMenu","in"],
1872
1871
  ])
1873
1872
 
1874
- railgun.add_function( 'user32', 'IsRectEmpty', 'BOOL',[
1873
+ dll.add_function('IsRectEmpty', 'BOOL',[
1875
1874
  ["PBLOB","lprc","in"],
1876
1875
  ])
1877
1876
 
1878
- railgun.add_function( 'user32', 'IsWinEventHookInstalled', 'BOOL',[
1877
+ dll.add_function('IsWinEventHookInstalled', 'BOOL',[
1879
1878
  ["DWORD","event","in"],
1880
1879
  ])
1881
1880
 
1882
- railgun.add_function( 'user32', 'IsWindow', 'BOOL',[
1881
+ dll.add_function('IsWindow', 'BOOL',[
1883
1882
  ["DWORD","hWnd","in"],
1884
1883
  ])
1885
1884
 
1886
- railgun.add_function( 'user32', 'IsWindowEnabled', 'BOOL',[
1885
+ dll.add_function('IsWindowEnabled', 'BOOL',[
1887
1886
  ["DWORD","hWnd","in"],
1888
1887
  ])
1889
1888
 
1890
- railgun.add_function( 'user32', 'IsWindowUnicode', 'BOOL',[
1889
+ dll.add_function('IsWindowUnicode', 'BOOL',[
1891
1890
  ["DWORD","hWnd","in"],
1892
1891
  ])
1893
1892
 
1894
- railgun.add_function( 'user32', 'IsWindowVisible', 'BOOL',[
1893
+ dll.add_function('IsWindowVisible', 'BOOL',[
1895
1894
  ["DWORD","hWnd","in"],
1896
1895
  ])
1897
1896
 
1898
- railgun.add_function( 'user32', 'IsWow64Message', 'BOOL',[
1897
+ dll.add_function('IsWow64Message', 'BOOL',[
1899
1898
  ])
1900
1899
 
1901
- railgun.add_function( 'user32', 'IsZoomed', 'BOOL',[
1900
+ dll.add_function('IsZoomed', 'BOOL',[
1902
1901
  ["DWORD","hWnd","in"],
1903
1902
  ])
1904
1903
 
1905
- railgun.add_function( 'user32', 'KillTimer', 'BOOL',[
1904
+ dll.add_function('KillTimer', 'BOOL',[
1906
1905
  ["DWORD","hWnd","in"],
1907
1906
  ["DWORD","uIDEvent","in"],
1908
1907
  ])
1909
1908
 
1910
- railgun.add_function( 'user32', 'LoadAcceleratorsA', 'DWORD',[
1909
+ dll.add_function('LoadAcceleratorsA', 'DWORD',[
1911
1910
  ["DWORD","hInstance","in"],
1912
1911
  ["PCHAR","lpTableName","in"],
1913
1912
  ])
1914
1913
 
1915
- railgun.add_function( 'user32', 'LoadAcceleratorsW', 'DWORD',[
1914
+ dll.add_function('LoadAcceleratorsW', 'DWORD',[
1916
1915
  ["DWORD","hInstance","in"],
1917
1916
  ["PWCHAR","lpTableName","in"],
1918
1917
  ])
1919
1918
 
1920
- railgun.add_function( 'user32', 'LoadBitmapA', 'DWORD',[
1919
+ dll.add_function('LoadBitmapA', 'DWORD',[
1921
1920
  ["DWORD","hInstance","in"],
1922
1921
  ["PCHAR","lpBitmapName","in"],
1923
1922
  ])
1924
1923
 
1925
- railgun.add_function( 'user32', 'LoadBitmapW', 'DWORD',[
1924
+ dll.add_function('LoadBitmapW', 'DWORD',[
1926
1925
  ["DWORD","hInstance","in"],
1927
1926
  ["PWCHAR","lpBitmapName","in"],
1928
1927
  ])
1929
1928
 
1930
- railgun.add_function( 'user32', 'LoadCursorA', 'DWORD',[
1929
+ dll.add_function('LoadCursorA', 'DWORD',[
1931
1930
  ["DWORD","hInstance","in"],
1932
1931
  ["PCHAR","lpCursorName","in"],
1933
1932
  ])
1934
1933
 
1935
- railgun.add_function( 'user32', 'LoadCursorFromFileA', 'DWORD',[
1934
+ dll.add_function('LoadCursorFromFileA', 'DWORD',[
1936
1935
  ["PCHAR","lpFileName","in"],
1937
1936
  ])
1938
1937
 
1939
- railgun.add_function( 'user32', 'LoadCursorFromFileW', 'DWORD',[
1938
+ dll.add_function('LoadCursorFromFileW', 'DWORD',[
1940
1939
  ["PWCHAR","lpFileName","in"],
1941
1940
  ])
1942
1941
 
1943
- railgun.add_function( 'user32', 'LoadCursorW', 'DWORD',[
1942
+ dll.add_function('LoadCursorW', 'DWORD',[
1944
1943
  ["DWORD","hInstance","in"],
1945
1944
  ["PWCHAR","lpCursorName","in"],
1946
1945
  ])
1947
1946
 
1948
- railgun.add_function( 'user32', 'LoadIconA', 'DWORD',[
1947
+ dll.add_function('LoadIconA', 'DWORD',[
1949
1948
  ["DWORD","hInstance","in"],
1950
1949
  ["PCHAR","lpIconName","in"],
1951
1950
  ])
1952
1951
 
1953
- railgun.add_function( 'user32', 'LoadIconW', 'DWORD',[
1952
+ dll.add_function('LoadIconW', 'DWORD',[
1954
1953
  ["DWORD","hInstance","in"],
1955
1954
  ["PWCHAR","lpIconName","in"],
1956
1955
  ])
1957
1956
 
1958
- railgun.add_function( 'user32', 'LoadImageA', 'DWORD',[
1957
+ dll.add_function('LoadImageA', 'DWORD',[
1959
1958
  ["DWORD","hInst","in"],
1960
1959
  ["PCHAR","name","in"],
1961
1960
  ["DWORD","type","in"],
@@ -1964,7 +1963,7 @@ class Def_user32
1964
1963
  ["DWORD","fuLoad","in"],
1965
1964
  ])
1966
1965
 
1967
- railgun.add_function( 'user32', 'LoadImageW', 'DWORD',[
1966
+ dll.add_function('LoadImageW', 'DWORD',[
1968
1967
  ["DWORD","hInst","in"],
1969
1968
  ["PWCHAR","name","in"],
1970
1969
  ["DWORD","type","in"],
@@ -1973,65 +1972,65 @@ class Def_user32
1973
1972
  ["DWORD","fuLoad","in"],
1974
1973
  ])
1975
1974
 
1976
- railgun.add_function( 'user32', 'LoadKeyboardLayoutA', 'DWORD',[
1975
+ dll.add_function('LoadKeyboardLayoutA', 'DWORD',[
1977
1976
  ["PCHAR","pwszKLID","in"],
1978
1977
  ["DWORD","Flags","in"],
1979
1978
  ])
1980
1979
 
1981
- railgun.add_function( 'user32', 'LoadKeyboardLayoutW', 'DWORD',[
1980
+ dll.add_function('LoadKeyboardLayoutW', 'DWORD',[
1982
1981
  ["PWCHAR","pwszKLID","in"],
1983
1982
  ["DWORD","Flags","in"],
1984
1983
  ])
1985
1984
 
1986
- railgun.add_function( 'user32', 'LoadMenuA', 'DWORD',[
1985
+ dll.add_function('LoadMenuA', 'DWORD',[
1987
1986
  ["DWORD","hInstance","in"],
1988
1987
  ["PCHAR","lpMenuName","in"],
1989
1988
  ])
1990
1989
 
1991
- railgun.add_function( 'user32', 'LoadMenuIndirectA', 'DWORD',[
1990
+ dll.add_function('LoadMenuIndirectA', 'DWORD',[
1992
1991
  ["PBLOB","lpMenuTemplate","in"],
1993
1992
  ])
1994
1993
 
1995
- railgun.add_function( 'user32', 'LoadMenuIndirectW', 'DWORD',[
1994
+ dll.add_function('LoadMenuIndirectW', 'DWORD',[
1996
1995
  ["PBLOB","lpMenuTemplate","in"],
1997
1996
  ])
1998
1997
 
1999
- railgun.add_function( 'user32', 'LoadMenuW', 'DWORD',[
1998
+ dll.add_function('LoadMenuW', 'DWORD',[
2000
1999
  ["DWORD","hInstance","in"],
2001
2000
  ["PWCHAR","lpMenuName","in"],
2002
2001
  ])
2003
2002
 
2004
- railgun.add_function( 'user32', 'LoadStringA', 'DWORD',[
2003
+ dll.add_function('LoadStringA', 'DWORD',[
2005
2004
  ["DWORD","hInstance","in"],
2006
2005
  ["DWORD","uID","in"],
2007
2006
  ["PCHAR","lpBuffer","out"],
2008
2007
  ["DWORD","cchBufferMax","in"],
2009
2008
  ])
2010
2009
 
2011
- railgun.add_function( 'user32', 'LoadStringW', 'DWORD',[
2010
+ dll.add_function('LoadStringW', 'DWORD',[
2012
2011
  ["DWORD","hInstance","in"],
2013
2012
  ["DWORD","uID","in"],
2014
2013
  ["PWCHAR","lpBuffer","out"],
2015
2014
  ["DWORD","cchBufferMax","in"],
2016
2015
  ])
2017
2016
 
2018
- railgun.add_function( 'user32', 'LockSetForegroundWindow', 'BOOL',[
2017
+ dll.add_function('LockSetForegroundWindow', 'BOOL',[
2019
2018
  ["DWORD","uLockCode","in"],
2020
2019
  ])
2021
2020
 
2022
- railgun.add_function( 'user32', 'LockWindowUpdate', 'BOOL',[
2021
+ dll.add_function('LockWindowUpdate', 'BOOL',[
2023
2022
  ["DWORD","hWndLock","in"],
2024
2023
  ])
2025
2024
 
2026
- railgun.add_function( 'user32', 'LockWorkStation', 'BOOL',[
2025
+ dll.add_function('LockWorkStation', 'BOOL',[
2027
2026
  ])
2028
2027
 
2029
- railgun.add_function( 'user32', 'LookupIconIdFromDirectory', 'DWORD',[
2028
+ dll.add_function('LookupIconIdFromDirectory', 'DWORD',[
2030
2029
  ["PBLOB","presbits","in"],
2031
2030
  ["BOOL","fIcon","in"],
2032
2031
  ])
2033
2032
 
2034
- railgun.add_function( 'user32', 'LookupIconIdFromDirectoryEx', 'DWORD',[
2033
+ dll.add_function('LookupIconIdFromDirectoryEx', 'DWORD',[
2035
2034
  ["PBLOB","presbits","in"],
2036
2035
  ["BOOL","fIcon","in"],
2037
2036
  ["DWORD","cxDesired","in"],
@@ -2039,58 +2038,58 @@ class Def_user32
2039
2038
  ["DWORD","Flags","in"],
2040
2039
  ])
2041
2040
 
2042
- railgun.add_function( 'user32', 'MapDialogRect', 'BOOL',[
2041
+ dll.add_function('MapDialogRect', 'BOOL',[
2043
2042
  ["DWORD","hDlg","in"],
2044
2043
  ["PBLOB","lpRect","inout"],
2045
2044
  ])
2046
2045
 
2047
- railgun.add_function( 'user32', 'MapVirtualKeyA', 'DWORD',[
2046
+ dll.add_function('MapVirtualKeyA', 'DWORD',[
2048
2047
  ["DWORD","uCode","in"],
2049
2048
  ["DWORD","uMapType","in"],
2050
2049
  ])
2051
2050
 
2052
- railgun.add_function( 'user32', 'MapVirtualKeyExA', 'DWORD',[
2051
+ dll.add_function('MapVirtualKeyExA', 'DWORD',[
2053
2052
  ["DWORD","uCode","in"],
2054
2053
  ["DWORD","uMapType","in"],
2055
2054
  ["DWORD","dwhkl","in"],
2056
2055
  ])
2057
2056
 
2058
- railgun.add_function( 'user32', 'MapVirtualKeyExW', 'DWORD',[
2057
+ dll.add_function('MapVirtualKeyExW', 'DWORD',[
2059
2058
  ["DWORD","uCode","in"],
2060
2059
  ["DWORD","uMapType","in"],
2061
2060
  ["DWORD","dwhkl","in"],
2062
2061
  ])
2063
2062
 
2064
- railgun.add_function( 'user32', 'MapVirtualKeyW', 'DWORD',[
2063
+ dll.add_function('MapVirtualKeyW', 'DWORD',[
2065
2064
  ["DWORD","uCode","in"],
2066
2065
  ["DWORD","uMapType","in"],
2067
2066
  ])
2068
2067
 
2069
- railgun.add_function( 'user32', 'MapWindowPoints', 'DWORD',[
2068
+ dll.add_function('MapWindowPoints', 'DWORD',[
2070
2069
  ["DWORD","hWndFrom","in"],
2071
2070
  ["DWORD","hWndTo","in"],
2072
2071
  ["PBLOB","lpPoints","in"],
2073
2072
  ["DWORD","cPoints","in"],
2074
2073
  ])
2075
2074
 
2076
- railgun.add_function( 'user32', 'MenuItemFromPoint', 'DWORD',[
2075
+ dll.add_function('MenuItemFromPoint', 'DWORD',[
2077
2076
  ["DWORD","hWnd","in"],
2078
2077
  ["DWORD","hMenu","in"],
2079
2078
  ["PBLOB","ptScreen","in"],
2080
2079
  ])
2081
2080
 
2082
- railgun.add_function( 'user32', 'MessageBeep', 'BOOL',[
2081
+ dll.add_function('MessageBeep', 'BOOL',[
2083
2082
  ["DWORD","uType","in"],
2084
2083
  ])
2085
2084
 
2086
- railgun.add_function( 'user32', 'MessageBoxA', 'DWORD',[
2085
+ dll.add_function('MessageBoxA', 'DWORD',[
2087
2086
  ["DWORD","hWnd","in"],
2088
2087
  ["PCHAR","lpText","in"],
2089
2088
  ["PCHAR","lpCaption","in"],
2090
2089
  ["DWORD","uType","in"],
2091
2090
  ])
2092
2091
 
2093
- railgun.add_function( 'user32', 'MessageBoxExA', 'DWORD',[
2092
+ dll.add_function('MessageBoxExA', 'DWORD',[
2094
2093
  ["DWORD","hWnd","in"],
2095
2094
  ["PCHAR","lpText","in"],
2096
2095
  ["PCHAR","lpCaption","in"],
@@ -2098,7 +2097,7 @@ class Def_user32
2098
2097
  ["WORD","wLanguageId","in"],
2099
2098
  ])
2100
2099
 
2101
- railgun.add_function( 'user32', 'MessageBoxExW', 'DWORD',[
2100
+ dll.add_function('MessageBoxExW', 'DWORD',[
2102
2101
  ["DWORD","hWnd","in"],
2103
2102
  ["PWCHAR","lpText","in"],
2104
2103
  ["PWCHAR","lpCaption","in"],
@@ -2106,22 +2105,22 @@ class Def_user32
2106
2105
  ["WORD","wLanguageId","in"],
2107
2106
  ])
2108
2107
 
2109
- railgun.add_function( 'user32', 'MessageBoxIndirectA', 'DWORD',[
2108
+ dll.add_function('MessageBoxIndirectA', 'DWORD',[
2110
2109
  ["PBLOB","lpmbp","in"],
2111
2110
  ])
2112
2111
 
2113
- railgun.add_function( 'user32', 'MessageBoxIndirectW', 'DWORD',[
2112
+ dll.add_function('MessageBoxIndirectW', 'DWORD',[
2114
2113
  ["PBLOB","lpmbp","in"],
2115
2114
  ])
2116
2115
 
2117
- railgun.add_function( 'user32', 'MessageBoxW', 'DWORD',[
2116
+ dll.add_function('MessageBoxW', 'DWORD',[
2118
2117
  ["DWORD","hWnd","in"],
2119
2118
  ["PWCHAR","lpText","in"],
2120
2119
  ["PWCHAR","lpCaption","in"],
2121
2120
  ["DWORD","uType","in"],
2122
2121
  ])
2123
2122
 
2124
- railgun.add_function( 'user32', 'ModifyMenuA', 'BOOL',[
2123
+ dll.add_function('ModifyMenuA', 'BOOL',[
2125
2124
  ["DWORD","hMnu","in"],
2126
2125
  ["DWORD","uPosition","in"],
2127
2126
  ["DWORD","uFlags","in"],
@@ -2129,7 +2128,7 @@ class Def_user32
2129
2128
  ["PCHAR","lpNewItem","in"],
2130
2129
  ])
2131
2130
 
2132
- railgun.add_function( 'user32', 'ModifyMenuW', 'BOOL',[
2131
+ dll.add_function('ModifyMenuW', 'BOOL',[
2133
2132
  ["DWORD","hMnu","in"],
2134
2133
  ["DWORD","uPosition","in"],
2135
2134
  ["DWORD","uFlags","in"],
@@ -2137,22 +2136,22 @@ class Def_user32
2137
2136
  ["PWCHAR","lpNewItem","in"],
2138
2137
  ])
2139
2138
 
2140
- railgun.add_function( 'user32', 'MonitorFromPoint', 'DWORD',[
2139
+ dll.add_function('MonitorFromPoint', 'DWORD',[
2141
2140
  ["PBLOB","pt","in"],
2142
2141
  ["DWORD","dwFlags","in"],
2143
2142
  ])
2144
2143
 
2145
- railgun.add_function( 'user32', 'MonitorFromRect', 'DWORD',[
2144
+ dll.add_function('MonitorFromRect', 'DWORD',[
2146
2145
  ["PBLOB","lprc","in"],
2147
2146
  ["DWORD","dwFlags","in"],
2148
2147
  ])
2149
2148
 
2150
- railgun.add_function( 'user32', 'MonitorFromWindow', 'DWORD',[
2149
+ dll.add_function('MonitorFromWindow', 'DWORD',[
2151
2150
  ["DWORD","hwnd","in"],
2152
2151
  ["DWORD","dwFlags","in"],
2153
2152
  ])
2154
2153
 
2155
- railgun.add_function( 'user32', 'MoveWindow', 'BOOL',[
2154
+ dll.add_function('MoveWindow', 'BOOL',[
2156
2155
  ["DWORD","hWnd","in"],
2157
2156
  ["DWORD","X","in"],
2158
2157
  ["DWORD","Y","in"],
@@ -2161,7 +2160,7 @@ class Def_user32
2161
2160
  ["BOOL","bRepaint","in"],
2162
2161
  ])
2163
2162
 
2164
- railgun.add_function( 'user32', 'MsgWaitForMultipleObjects', 'DWORD',[
2163
+ dll.add_function('MsgWaitForMultipleObjects', 'DWORD',[
2165
2164
  ["DWORD","nCount","in"],
2166
2165
  ["PDWORD","pHandles","in"],
2167
2166
  ["BOOL","fWaitAll","in"],
@@ -2169,7 +2168,7 @@ class Def_user32
2169
2168
  ["DWORD","dwWakeMask","in"],
2170
2169
  ])
2171
2170
 
2172
- railgun.add_function( 'user32', 'MsgWaitForMultipleObjectsEx', 'DWORD',[
2171
+ dll.add_function('MsgWaitForMultipleObjectsEx', 'DWORD',[
2173
2172
  ["DWORD","nCount","in"],
2174
2173
  ["PDWORD","pHandles","in"],
2175
2174
  ["DWORD","dwMilliseconds","in"],
@@ -2177,90 +2176,90 @@ class Def_user32
2177
2176
  ["DWORD","dwFlags","in"],
2178
2177
  ])
2179
2178
 
2180
- railgun.add_function( 'user32', 'NotifyWinEvent', 'VOID',[
2179
+ dll.add_function('NotifyWinEvent', 'VOID',[
2181
2180
  ["DWORD","event","in"],
2182
2181
  ["DWORD","hwnd","in"],
2183
2182
  ["DWORD","idObject","in"],
2184
2183
  ["DWORD","idChild","in"],
2185
2184
  ])
2186
2185
 
2187
- railgun.add_function( 'user32', 'OemKeyScan', 'DWORD',[
2186
+ dll.add_function('OemKeyScan', 'DWORD',[
2188
2187
  ["WORD","wOemChar","in"],
2189
2188
  ])
2190
2189
 
2191
- railgun.add_function( 'user32', 'OemToCharA', 'BOOL',[
2190
+ dll.add_function('OemToCharA', 'BOOL',[
2192
2191
  ["PCHAR","lpszSrc","in"],
2193
2192
  ["PCHAR","lpszDst","out"],
2194
2193
  ])
2195
2194
 
2196
- railgun.add_function( 'user32', 'OemToCharBuffA', 'BOOL',[
2195
+ dll.add_function('OemToCharBuffA', 'BOOL',[
2197
2196
  ["PCHAR","lpszSrc","in"],
2198
2197
  ["PCHAR","lpszDst","out"],
2199
2198
  ["DWORD","cchDstLength","in"],
2200
2199
  ])
2201
2200
 
2202
- railgun.add_function( 'user32', 'OemToCharBuffW', 'BOOL',[
2201
+ dll.add_function('OemToCharBuffW', 'BOOL',[
2203
2202
  ["PCHAR","lpszSrc","in"],
2204
2203
  ["PWCHAR","lpszDst","out"],
2205
2204
  ["DWORD","cchDstLength","in"],
2206
2205
  ])
2207
2206
 
2208
- railgun.add_function( 'user32', 'OemToCharW', 'BOOL',[
2207
+ dll.add_function('OemToCharW', 'BOOL',[
2209
2208
  ["PCHAR","lpszSrc","in"],
2210
2209
  ["PWCHAR","lpszDst","out"],
2211
2210
  ])
2212
2211
 
2213
- railgun.add_function( 'user32', 'OffsetRect', 'BOOL',[
2212
+ dll.add_function('OffsetRect', 'BOOL',[
2214
2213
  ["PBLOB","lprc","inout"],
2215
2214
  ["DWORD","dx","in"],
2216
2215
  ["DWORD","dy","in"],
2217
2216
  ])
2218
2217
 
2219
- railgun.add_function( 'user32', 'OpenClipboard', 'BOOL',[
2218
+ dll.add_function('OpenClipboard', 'BOOL',[
2220
2219
  ["DWORD","hWndNewOwner","in"],
2221
2220
  ])
2222
2221
 
2223
- railgun.add_function( 'user32', 'OpenDesktopA', 'DWORD',[
2222
+ dll.add_function('OpenDesktopA', 'DWORD',[
2224
2223
  ["PCHAR","lpszDesktop","in"],
2225
2224
  ["DWORD","dwFlags","in"],
2226
2225
  ["BOOL","fInherit","in"],
2227
2226
  ["DWORD","dwDesiredAccess","in"],
2228
2227
  ])
2229
2228
 
2230
- railgun.add_function( 'user32', 'OpenDesktopW', 'DWORD',[
2229
+ dll.add_function('OpenDesktopW', 'DWORD',[
2231
2230
  ["PWCHAR","lpszDesktop","in"],
2232
2231
  ["DWORD","dwFlags","in"],
2233
2232
  ["BOOL","fInherit","in"],
2234
2233
  ["DWORD","dwDesiredAccess","in"],
2235
2234
  ])
2236
2235
 
2237
- railgun.add_function( 'user32', 'OpenIcon', 'BOOL',[
2236
+ dll.add_function('OpenIcon', 'BOOL',[
2238
2237
  ["DWORD","hWnd","in"],
2239
2238
  ])
2240
2239
 
2241
- railgun.add_function( 'user32', 'OpenInputDesktop', 'DWORD',[
2240
+ dll.add_function('OpenInputDesktop', 'DWORD',[
2242
2241
  ["DWORD","dwFlags","in"],
2243
2242
  ["BOOL","fInherit","in"],
2244
2243
  ["DWORD","dwDesiredAccess","in"],
2245
2244
  ])
2246
2245
 
2247
- railgun.add_function( 'user32', 'OpenWindowStationA', 'DWORD',[
2246
+ dll.add_function('OpenWindowStationA', 'DWORD',[
2248
2247
  ["PCHAR","lpszWinSta","in"],
2249
2248
  ["BOOL","fInherit","in"],
2250
2249
  ["DWORD","dwDesiredAccess","in"],
2251
2250
  ])
2252
2251
 
2253
- railgun.add_function( 'user32', 'OpenWindowStationW', 'DWORD',[
2252
+ dll.add_function('OpenWindowStationW', 'DWORD',[
2254
2253
  ["PWCHAR","lpszWinSta","in"],
2255
2254
  ["BOOL","fInherit","in"],
2256
2255
  ["DWORD","dwDesiredAccess","in"],
2257
2256
  ])
2258
2257
 
2259
- railgun.add_function( 'user32', 'PaintDesktop', 'BOOL',[
2258
+ dll.add_function('PaintDesktop', 'BOOL',[
2260
2259
  ["DWORD","hdc","in"],
2261
2260
  ])
2262
2261
 
2263
- railgun.add_function( 'user32', 'PeekMessageA', 'BOOL',[
2262
+ dll.add_function('PeekMessageA', 'BOOL',[
2264
2263
  ["PBLOB","lpMsg","out"],
2265
2264
  ["DWORD","hWnd","in"],
2266
2265
  ["DWORD","wMsgFilterMin","in"],
@@ -2268,7 +2267,7 @@ class Def_user32
2268
2267
  ["DWORD","wRemoveMsg","in"],
2269
2268
  ])
2270
2269
 
2271
- railgun.add_function( 'user32', 'PeekMessageW', 'BOOL',[
2270
+ dll.add_function('PeekMessageW', 'BOOL',[
2272
2271
  ["PBLOB","lpMsg","out"],
2273
2272
  ["DWORD","hWnd","in"],
2274
2273
  ["DWORD","wMsgFilterMin","in"],
@@ -2276,45 +2275,45 @@ class Def_user32
2276
2275
  ["DWORD","wRemoveMsg","in"],
2277
2276
  ])
2278
2277
 
2279
- railgun.add_function( 'user32', 'PostMessageA', 'BOOL',[
2278
+ dll.add_function('PostMessageA', 'BOOL',[
2280
2279
  ["DWORD","hWnd","in"],
2281
2280
  ["DWORD","Msg","in"],
2282
2281
  ["WORD","wParam","in"],
2283
2282
  ["DWORD","lParam","in"],
2284
2283
  ])
2285
2284
 
2286
- railgun.add_function( 'user32', 'PostMessageW', 'BOOL',[
2285
+ dll.add_function('PostMessageW', 'BOOL',[
2287
2286
  ["DWORD","hWnd","in"],
2288
2287
  ["DWORD","Msg","in"],
2289
2288
  ["WORD","wParam","in"],
2290
2289
  ["DWORD","lParam","in"],
2291
2290
  ])
2292
2291
 
2293
- railgun.add_function( 'user32', 'PostQuitMessage', 'VOID',[
2292
+ dll.add_function('PostQuitMessage', 'VOID',[
2294
2293
  ["DWORD","nExitCode","in"],
2295
2294
  ])
2296
2295
 
2297
- railgun.add_function( 'user32', 'PostThreadMessageA', 'BOOL',[
2296
+ dll.add_function('PostThreadMessageA', 'BOOL',[
2298
2297
  ["DWORD","idThread","in"],
2299
2298
  ["DWORD","Msg","in"],
2300
2299
  ["WORD","wParam","in"],
2301
2300
  ["DWORD","lParam","in"],
2302
2301
  ])
2303
2302
 
2304
- railgun.add_function( 'user32', 'PostThreadMessageW', 'BOOL',[
2303
+ dll.add_function('PostThreadMessageW', 'BOOL',[
2305
2304
  ["DWORD","idThread","in"],
2306
2305
  ["DWORD","Msg","in"],
2307
2306
  ["WORD","wParam","in"],
2308
2307
  ["DWORD","lParam","in"],
2309
2308
  ])
2310
2309
 
2311
- railgun.add_function( 'user32', 'PrintWindow', 'BOOL',[
2310
+ dll.add_function('PrintWindow', 'BOOL',[
2312
2311
  ["DWORD","hwnd","in"],
2313
2312
  ["DWORD","hdcBlt","in"],
2314
2313
  ["DWORD","nFlags","in"],
2315
2314
  ])
2316
2315
 
2317
- railgun.add_function( 'user32', 'PrivateExtractIconsA', 'DWORD',[
2316
+ dll.add_function('PrivateExtractIconsA', 'DWORD',[
2318
2317
  ["PCHAR","szFileName","in"],
2319
2318
  ["DWORD","nIconIndex","in"],
2320
2319
  ["DWORD","cxIcon","in"],
@@ -2325,7 +2324,7 @@ class Def_user32
2325
2324
  ["DWORD","flags","in"],
2326
2325
  ])
2327
2326
 
2328
- railgun.add_function( 'user32', 'PrivateExtractIconsW', 'DWORD',[
2327
+ dll.add_function('PrivateExtractIconsW', 'DWORD',[
2329
2328
  ["PWCHAR","szFileName","in"],
2330
2329
  ["DWORD","nIconIndex","in"],
2331
2330
  ["DWORD","cxIcon","in"],
@@ -2336,130 +2335,130 @@ class Def_user32
2336
2335
  ["DWORD","flags","in"],
2337
2336
  ])
2338
2337
 
2339
- railgun.add_function( 'user32', 'PtInRect', 'BOOL',[
2338
+ dll.add_function('PtInRect', 'BOOL',[
2340
2339
  ["PBLOB","lprc","in"],
2341
2340
  ["PBLOB","pt","in"],
2342
2341
  ])
2343
2342
 
2344
- railgun.add_function( 'user32', 'RealChildWindowFromPoint', 'DWORD',[
2343
+ dll.add_function('RealChildWindowFromPoint', 'DWORD',[
2345
2344
  ["DWORD","hwndParent","in"],
2346
2345
  ["PBLOB","ptParentClientCoords","in"],
2347
2346
  ])
2348
2347
 
2349
- railgun.add_function( 'user32', 'RealGetWindowClassA', 'DWORD',[
2348
+ dll.add_function('RealGetWindowClassA', 'DWORD',[
2350
2349
  ["DWORD","hwnd","in"],
2351
2350
  ["PCHAR","ptszClassName","out"],
2352
2351
  ["DWORD","cchClassNameMax","in"],
2353
2352
  ])
2354
2353
 
2355
- railgun.add_function( 'user32', 'RealGetWindowClassW', 'DWORD',[
2354
+ dll.add_function('RealGetWindowClassW', 'DWORD',[
2356
2355
  ["DWORD","hwnd","in"],
2357
2356
  ["PWCHAR","ptszClassName","out"],
2358
2357
  ["DWORD","cchClassNameMax","in"],
2359
2358
  ])
2360
2359
 
2361
- railgun.add_function( 'user32', 'RedrawWindow', 'BOOL',[
2360
+ dll.add_function('RedrawWindow', 'BOOL',[
2362
2361
  ["DWORD","hWnd","in"],
2363
2362
  ["PBLOB","lprcUpdate","in"],
2364
2363
  ["DWORD","hrgnUpdate","in"],
2365
2364
  ["DWORD","flags","in"],
2366
2365
  ])
2367
2366
 
2368
- railgun.add_function( 'user32', 'RegisterClassA', 'WORD',[
2367
+ dll.add_function('RegisterClassA', 'WORD',[
2369
2368
  ["PBLOB","lpWndClass","in"],
2370
2369
  ])
2371
2370
 
2372
- railgun.add_function( 'user32', 'RegisterClassExA', 'WORD',[
2371
+ dll.add_function('RegisterClassExA', 'WORD',[
2373
2372
  ["PBLOB","param0","in"],
2374
2373
  ])
2375
2374
 
2376
- railgun.add_function( 'user32', 'RegisterClassExW', 'WORD',[
2375
+ dll.add_function('RegisterClassExW', 'WORD',[
2377
2376
  ["PBLOB","param0","in"],
2378
2377
  ])
2379
2378
 
2380
- railgun.add_function( 'user32', 'RegisterClassW', 'WORD',[
2379
+ dll.add_function('RegisterClassW', 'WORD',[
2381
2380
  ["PBLOB","lpWndClass","in"],
2382
2381
  ])
2383
2382
 
2384
- railgun.add_function( 'user32', 'RegisterClipboardFormatA', 'DWORD',[
2383
+ dll.add_function('RegisterClipboardFormatA', 'DWORD',[
2385
2384
  ["PCHAR","lpszFormat","in"],
2386
2385
  ])
2387
2386
 
2388
- railgun.add_function( 'user32', 'RegisterClipboardFormatW', 'DWORD',[
2387
+ dll.add_function('RegisterClipboardFormatW', 'DWORD',[
2389
2388
  ["PWCHAR","lpszFormat","in"],
2390
2389
  ])
2391
2390
 
2392
- railgun.add_function( 'user32', 'RegisterDeviceNotificationA', 'DWORD',[
2391
+ dll.add_function('RegisterDeviceNotificationA', 'DWORD',[
2393
2392
  ["DWORD","hRecipient","in"],
2394
2393
  ["PBLOB","NotificationFilter","in"],
2395
2394
  ["DWORD","Flags","in"],
2396
2395
  ])
2397
2396
 
2398
- railgun.add_function( 'user32', 'RegisterDeviceNotificationW', 'DWORD',[
2397
+ dll.add_function('RegisterDeviceNotificationW', 'DWORD',[
2399
2398
  ["DWORD","hRecipient","in"],
2400
2399
  ["PBLOB","NotificationFilter","in"],
2401
2400
  ["DWORD","Flags","in"],
2402
2401
  ])
2403
2402
 
2404
- railgun.add_function( 'user32', 'RegisterHotKey', 'BOOL',[
2403
+ dll.add_function('RegisterHotKey', 'BOOL',[
2405
2404
  ["DWORD","hWnd","in"],
2406
2405
  ["DWORD","id","in"],
2407
2406
  ["DWORD","fsModifiers","in"],
2408
2407
  ["DWORD","vk","in"],
2409
2408
  ])
2410
2409
 
2411
- railgun.add_function( 'user32', 'RegisterRawInputDevices', 'BOOL',[
2410
+ dll.add_function('RegisterRawInputDevices', 'BOOL',[
2412
2411
  ["PBLOB","pRawInputDevices","in"],
2413
2412
  ["DWORD","uiNumDevices","in"],
2414
2413
  ["DWORD","cbSize","in"],
2415
2414
  ])
2416
2415
 
2417
- railgun.add_function( 'user32', 'RegisterShellHookWindow', 'BOOL',[
2416
+ dll.add_function('RegisterShellHookWindow', 'BOOL',[
2418
2417
  ["DWORD","hwnd","in"],
2419
2418
  ])
2420
2419
 
2421
- railgun.add_function( 'user32', 'RegisterWindowMessageA', 'DWORD',[
2420
+ dll.add_function('RegisterWindowMessageA', 'DWORD',[
2422
2421
  ["PCHAR","lpString","in"],
2423
2422
  ])
2424
2423
 
2425
- railgun.add_function( 'user32', 'RegisterWindowMessageW', 'DWORD',[
2424
+ dll.add_function('RegisterWindowMessageW', 'DWORD',[
2426
2425
  ["PWCHAR","lpString","in"],
2427
2426
  ])
2428
2427
 
2429
- railgun.add_function( 'user32', 'ReleaseCapture', 'BOOL',[
2428
+ dll.add_function('ReleaseCapture', 'BOOL',[
2430
2429
  ])
2431
2430
 
2432
- railgun.add_function( 'user32', 'ReleaseDC', 'DWORD',[
2431
+ dll.add_function('ReleaseDC', 'DWORD',[
2433
2432
  ["DWORD","hWnd","in"],
2434
2433
  ["DWORD","hDC","in"],
2435
2434
  ])
2436
2435
 
2437
- railgun.add_function( 'user32', 'RemoveMenu', 'BOOL',[
2436
+ dll.add_function('RemoveMenu', 'BOOL',[
2438
2437
  ["DWORD","hMenu","in"],
2439
2438
  ["DWORD","uPosition","in"],
2440
2439
  ["DWORD","uFlags","in"],
2441
2440
  ])
2442
2441
 
2443
- railgun.add_function( 'user32', 'RemovePropA', 'DWORD',[
2442
+ dll.add_function('RemovePropA', 'DWORD',[
2444
2443
  ["DWORD","hWnd","in"],
2445
2444
  ["PCHAR","lpString","in"],
2446
2445
  ])
2447
2446
 
2448
- railgun.add_function( 'user32', 'RemovePropW', 'DWORD',[
2447
+ dll.add_function('RemovePropW', 'DWORD',[
2449
2448
  ["DWORD","hWnd","in"],
2450
2449
  ["PWCHAR","lpString","in"],
2451
2450
  ])
2452
2451
 
2453
- railgun.add_function( 'user32', 'ReplyMessage', 'BOOL',[
2452
+ dll.add_function('ReplyMessage', 'BOOL',[
2454
2453
  ["DWORD","lResult","in"],
2455
2454
  ])
2456
2455
 
2457
- railgun.add_function( 'user32', 'ScreenToClient', 'BOOL',[
2456
+ dll.add_function('ScreenToClient', 'BOOL',[
2458
2457
  ["DWORD","hWnd","in"],
2459
2458
  ["PBLOB","lpPoint","inout"],
2460
2459
  ])
2461
2460
 
2462
- railgun.add_function( 'user32', 'ScrollDC', 'BOOL',[
2461
+ dll.add_function('ScrollDC', 'BOOL',[
2463
2462
  ["DWORD","hDC","in"],
2464
2463
  ["DWORD","dx","in"],
2465
2464
  ["DWORD","dy","in"],
@@ -2469,7 +2468,7 @@ class Def_user32
2469
2468
  ["PBLOB","lprcUpdate","out"],
2470
2469
  ])
2471
2470
 
2472
- railgun.add_function( 'user32', 'ScrollWindow', 'BOOL',[
2471
+ dll.add_function('ScrollWindow', 'BOOL',[
2473
2472
  ["DWORD","hWnd","in"],
2474
2473
  ["DWORD","XAmount","in"],
2475
2474
  ["DWORD","YAmount","in"],
@@ -2477,7 +2476,7 @@ class Def_user32
2477
2476
  ["PBLOB","lpClipRect","in"],
2478
2477
  ])
2479
2478
 
2480
- railgun.add_function( 'user32', 'ScrollWindowEx', 'DWORD',[
2479
+ dll.add_function('ScrollWindowEx', 'DWORD',[
2481
2480
  ["DWORD","hWnd","in"],
2482
2481
  ["DWORD","dx","in"],
2483
2482
  ["DWORD","dy","in"],
@@ -2488,7 +2487,7 @@ class Def_user32
2488
2487
  ["DWORD","flags","in"],
2489
2488
  ])
2490
2489
 
2491
- railgun.add_function( 'user32', 'SendDlgItemMessageA', 'DWORD',[
2490
+ dll.add_function('SendDlgItemMessageA', 'DWORD',[
2492
2491
  ["DWORD","hDlg","in"],
2493
2492
  ["DWORD","nIDDlgItem","in"],
2494
2493
  ["DWORD","Msg","in"],
@@ -2496,7 +2495,7 @@ class Def_user32
2496
2495
  ["DWORD","lParam","in"],
2497
2496
  ])
2498
2497
 
2499
- railgun.add_function( 'user32', 'SendDlgItemMessageW', 'DWORD',[
2498
+ dll.add_function('SendDlgItemMessageW', 'DWORD',[
2500
2499
  ["DWORD","hDlg","in"],
2501
2500
  ["DWORD","nIDDlgItem","in"],
2502
2501
  ["DWORD","Msg","in"],
@@ -2504,20 +2503,20 @@ class Def_user32
2504
2503
  ["DWORD","lParam","in"],
2505
2504
  ])
2506
2505
 
2507
- railgun.add_function( 'user32', 'SendInput', 'DWORD',[
2506
+ dll.add_function('SendInput', 'DWORD',[
2508
2507
  ["DWORD","cInputs","in"],
2509
2508
  ["PBLOB","pInputs","in"],
2510
2509
  ["DWORD","cbSize","in"],
2511
2510
  ])
2512
2511
 
2513
- railgun.add_function( 'user32', 'SendMessageA', 'DWORD',[
2512
+ dll.add_function('SendMessageA', 'DWORD',[
2514
2513
  ["DWORD","hWnd","in"],
2515
2514
  ["DWORD","Msg","in"],
2516
2515
  ["WORD","wParam","in"],
2517
2516
  ["DWORD","lParam","in"],
2518
2517
  ])
2519
2518
 
2520
- railgun.add_function( 'user32', 'SendMessageCallbackA', 'BOOL',[
2519
+ dll.add_function('SendMessageCallbackA', 'BOOL',[
2521
2520
  ["DWORD","hWnd","in"],
2522
2521
  ["DWORD","Msg","in"],
2523
2522
  ["WORD","wParam","in"],
@@ -2526,7 +2525,7 @@ class Def_user32
2526
2525
  ["PDWORD","dwData","in"],
2527
2526
  ])
2528
2527
 
2529
- railgun.add_function( 'user32', 'SendMessageCallbackW', 'BOOL',[
2528
+ dll.add_function('SendMessageCallbackW', 'BOOL',[
2530
2529
  ["DWORD","hWnd","in"],
2531
2530
  ["DWORD","Msg","in"],
2532
2531
  ["WORD","wParam","in"],
@@ -2535,7 +2534,7 @@ class Def_user32
2535
2534
  ["PDWORD","dwData","in"],
2536
2535
  ])
2537
2536
 
2538
- railgun.add_function( 'user32', 'SendMessageTimeoutA', 'DWORD',[
2537
+ dll.add_function('SendMessageTimeoutA', 'DWORD',[
2539
2538
  ["DWORD","hWnd","in"],
2540
2539
  ["DWORD","Msg","in"],
2541
2540
  ["WORD","wParam","in"],
@@ -2545,7 +2544,7 @@ class Def_user32
2545
2544
  ["PBLOB","lpdwResult","out"],
2546
2545
  ])
2547
2546
 
2548
- railgun.add_function( 'user32', 'SendMessageTimeoutW', 'DWORD',[
2547
+ dll.add_function('SendMessageTimeoutW', 'DWORD',[
2549
2548
  ["DWORD","hWnd","in"],
2550
2549
  ["DWORD","Msg","in"],
2551
2550
  ["WORD","wParam","in"],
@@ -2555,149 +2554,149 @@ class Def_user32
2555
2554
  ["PBLOB","lpdwResult","out"],
2556
2555
  ])
2557
2556
 
2558
- railgun.add_function( 'user32', 'SendMessageW', 'DWORD',[
2557
+ dll.add_function('SendMessageW', 'DWORD',[
2559
2558
  ["DWORD","hWnd","in"],
2560
2559
  ["DWORD","Msg","in"],
2561
2560
  ["WORD","wParam","in"],
2562
2561
  ["DWORD","lParam","in"],
2563
2562
  ])
2564
2563
 
2565
- railgun.add_function( 'user32', 'SendNotifyMessageA', 'BOOL',[
2564
+ dll.add_function('SendNotifyMessageA', 'BOOL',[
2566
2565
  ["DWORD","hWnd","in"],
2567
2566
  ["DWORD","Msg","in"],
2568
2567
  ["WORD","wParam","in"],
2569
2568
  ["DWORD","lParam","in"],
2570
2569
  ])
2571
2570
 
2572
- railgun.add_function( 'user32', 'SendNotifyMessageW', 'BOOL',[
2571
+ dll.add_function('SendNotifyMessageW', 'BOOL',[
2573
2572
  ["DWORD","hWnd","in"],
2574
2573
  ["DWORD","Msg","in"],
2575
2574
  ["WORD","wParam","in"],
2576
2575
  ["DWORD","lParam","in"],
2577
2576
  ])
2578
2577
 
2579
- railgun.add_function( 'user32', 'SetActiveWindow', 'DWORD',[
2578
+ dll.add_function('SetActiveWindow', 'DWORD',[
2580
2579
  ["DWORD","hWnd","in"],
2581
2580
  ])
2582
2581
 
2583
- railgun.add_function( 'user32', 'SetCapture', 'DWORD',[
2582
+ dll.add_function('SetCapture', 'DWORD',[
2584
2583
  ["DWORD","hWnd","in"],
2585
2584
  ])
2586
2585
 
2587
- railgun.add_function( 'user32', 'SetCaretBlinkTime', 'BOOL',[
2586
+ dll.add_function('SetCaretBlinkTime', 'BOOL',[
2588
2587
  ["DWORD","uMSeconds","in"],
2589
2588
  ])
2590
2589
 
2591
- railgun.add_function( 'user32', 'SetCaretPos', 'BOOL',[
2590
+ dll.add_function('SetCaretPos', 'BOOL',[
2592
2591
  ["DWORD","X","in"],
2593
2592
  ["DWORD","Y","in"],
2594
2593
  ])
2595
2594
 
2596
- railgun.add_function( 'user32', 'SetClassLongA', 'DWORD',[
2595
+ dll.add_function('SetClassLongA', 'DWORD',[
2597
2596
  ["DWORD","hWnd","in"],
2598
2597
  ["DWORD","nIndex","in"],
2599
2598
  ["DWORD","dwNewLong","in"],
2600
2599
  ])
2601
2600
 
2602
- railgun.add_function( 'user32', 'SetClassLongW', 'DWORD',[
2601
+ dll.add_function('SetClassLongW', 'DWORD',[
2603
2602
  ["DWORD","hWnd","in"],
2604
2603
  ["DWORD","nIndex","in"],
2605
2604
  ["DWORD","dwNewLong","in"],
2606
2605
  ])
2607
2606
 
2608
- railgun.add_function( 'user32', 'SetClassWord', 'WORD',[
2607
+ dll.add_function('SetClassWord', 'WORD',[
2609
2608
  ["DWORD","hWnd","in"],
2610
2609
  ["DWORD","nIndex","in"],
2611
2610
  ["WORD","wNewWord","in"],
2612
2611
  ])
2613
2612
 
2614
- railgun.add_function( 'user32', 'SetClipboardData', 'DWORD',[
2613
+ dll.add_function('SetClipboardData', 'DWORD',[
2615
2614
  ["DWORD","uFormat","in"],
2616
2615
  ["DWORD","hMem","in"],
2617
2616
  ])
2618
2617
 
2619
- railgun.add_function( 'user32', 'SetClipboardViewer', 'DWORD',[
2618
+ dll.add_function('SetClipboardViewer', 'DWORD',[
2620
2619
  ["DWORD","hWndNewViewer","in"],
2621
2620
  ])
2622
2621
 
2623
- railgun.add_function( 'user32', 'SetCursor', 'DWORD',[
2622
+ dll.add_function('SetCursor', 'DWORD',[
2624
2623
  ["DWORD","hCursor","in"],
2625
2624
  ])
2626
2625
 
2627
- railgun.add_function( 'user32', 'SetCursorPos', 'BOOL',[
2626
+ dll.add_function('SetCursorPos', 'BOOL',[
2628
2627
  ["DWORD","X","in"],
2629
2628
  ["DWORD","Y","in"],
2630
2629
  ])
2631
2630
 
2632
- railgun.add_function( 'user32', 'SetDebugErrorLevel', 'VOID',[
2631
+ dll.add_function('SetDebugErrorLevel', 'VOID',[
2633
2632
  ["DWORD","dwLevel","in"],
2634
2633
  ])
2635
2634
 
2636
- railgun.add_function( 'user32', 'SetDlgItemInt', 'BOOL',[
2635
+ dll.add_function('SetDlgItemInt', 'BOOL',[
2637
2636
  ["DWORD","hDlg","in"],
2638
2637
  ["DWORD","nIDDlgItem","in"],
2639
2638
  ["DWORD","uValue","in"],
2640
2639
  ["BOOL","bSigned","in"],
2641
2640
  ])
2642
2641
 
2643
- railgun.add_function( 'user32', 'SetDlgItemTextA', 'BOOL',[
2642
+ dll.add_function('SetDlgItemTextA', 'BOOL',[
2644
2643
  ["DWORD","hDlg","in"],
2645
2644
  ["DWORD","nIDDlgItem","in"],
2646
2645
  ["PCHAR","lpString","in"],
2647
2646
  ])
2648
2647
 
2649
- railgun.add_function( 'user32', 'SetDlgItemTextW', 'BOOL',[
2648
+ dll.add_function('SetDlgItemTextW', 'BOOL',[
2650
2649
  ["DWORD","hDlg","in"],
2651
2650
  ["DWORD","nIDDlgItem","in"],
2652
2651
  ["PWCHAR","lpString","in"],
2653
2652
  ])
2654
2653
 
2655
- railgun.add_function( 'user32', 'SetDoubleClickTime', 'BOOL',[
2654
+ dll.add_function('SetDoubleClickTime', 'BOOL',[
2656
2655
  ["DWORD","param0","in"],
2657
2656
  ])
2658
2657
 
2659
- railgun.add_function( 'user32', 'SetFocus', 'DWORD',[
2658
+ dll.add_function('SetFocus', 'DWORD',[
2660
2659
  ["DWORD","hWnd","in"],
2661
2660
  ])
2662
2661
 
2663
- railgun.add_function( 'user32', 'SetForegroundWindow', 'BOOL',[
2662
+ dll.add_function('SetForegroundWindow', 'BOOL',[
2664
2663
  ["DWORD","hWnd","in"],
2665
2664
  ])
2666
2665
 
2667
- railgun.add_function( 'user32', 'SetLastErrorEx', 'VOID',[
2666
+ dll.add_function('SetLastErrorEx', 'VOID',[
2668
2667
  ["DWORD","dwErrCode","in"],
2669
2668
  ["DWORD","dwType","in"],
2670
2669
  ])
2671
2670
 
2672
- railgun.add_function( 'user32', 'SetLayeredWindowAttributes', 'BOOL',[
2671
+ dll.add_function('SetLayeredWindowAttributes', 'BOOL',[
2673
2672
  ["DWORD","hwnd","in"],
2674
2673
  ["DWORD","crKey","in"],
2675
2674
  ["BYTE","bAlpha","in"],
2676
2675
  ["DWORD","dwFlags","in"],
2677
2676
  ])
2678
2677
 
2679
- railgun.add_function( 'user32', 'SetMenu', 'BOOL',[
2678
+ dll.add_function('SetMenu', 'BOOL',[
2680
2679
  ["DWORD","hWnd","in"],
2681
2680
  ["DWORD","hMenu","in"],
2682
2681
  ])
2683
2682
 
2684
- railgun.add_function( 'user32', 'SetMenuContextHelpId', 'BOOL',[
2683
+ dll.add_function('SetMenuContextHelpId', 'BOOL',[
2685
2684
  ["DWORD","param0","in"],
2686
2685
  ["DWORD","param1","in"],
2687
2686
  ])
2688
2687
 
2689
- railgun.add_function( 'user32', 'SetMenuDefaultItem', 'BOOL',[
2688
+ dll.add_function('SetMenuDefaultItem', 'BOOL',[
2690
2689
  ["DWORD","hMenu","in"],
2691
2690
  ["DWORD","uItem","in"],
2692
2691
  ["DWORD","fByPos","in"],
2693
2692
  ])
2694
2693
 
2695
- railgun.add_function( 'user32', 'SetMenuInfo', 'BOOL',[
2694
+ dll.add_function('SetMenuInfo', 'BOOL',[
2696
2695
  ["DWORD","param0","in"],
2697
2696
  ["PBLOB","param1","in"],
2698
2697
  ])
2699
2698
 
2700
- railgun.add_function( 'user32', 'SetMenuItemBitmaps', 'BOOL',[
2699
+ dll.add_function('SetMenuItemBitmaps', 'BOOL',[
2701
2700
  ["DWORD","hMenu","in"],
2702
2701
  ["DWORD","uPosition","in"],
2703
2702
  ["DWORD","uFlags","in"],
@@ -2705,47 +2704,47 @@ class Def_user32
2705
2704
  ["DWORD","hBitmapChecked","in"],
2706
2705
  ])
2707
2706
 
2708
- railgun.add_function( 'user32', 'SetMenuItemInfoW', 'BOOL',[
2707
+ dll.add_function('SetMenuItemInfoW', 'BOOL',[
2709
2708
  ["DWORD","hmenu","in"],
2710
2709
  ["DWORD","item","in"],
2711
2710
  ["BOOL","fByPositon","in"],
2712
2711
  ["PBLOB","lpmii","in"],
2713
2712
  ])
2714
2713
 
2715
- railgun.add_function( 'user32', 'SetMessageExtraInfo', 'DWORD',[
2714
+ dll.add_function('SetMessageExtraInfo', 'DWORD',[
2716
2715
  ["DWORD","lParam","in"],
2717
2716
  ])
2718
2717
 
2719
- railgun.add_function( 'user32', 'SetMessageQueue', 'BOOL',[
2718
+ dll.add_function('SetMessageQueue', 'BOOL',[
2720
2719
  ["DWORD","cMessagesMax","in"],
2721
2720
  ])
2722
2721
 
2723
- railgun.add_function( 'user32', 'SetParent', 'DWORD',[
2722
+ dll.add_function('SetParent', 'DWORD',[
2724
2723
  ["DWORD","hWndChild","in"],
2725
2724
  ["DWORD","hWndNewParent","in"],
2726
2725
  ])
2727
2726
 
2728
- railgun.add_function( 'user32', 'SetProcessDefaultLayout', 'BOOL',[
2727
+ dll.add_function('SetProcessDefaultLayout', 'BOOL',[
2729
2728
  ["DWORD","dwDefaultLayout","in"],
2730
2729
  ])
2731
2730
 
2732
- railgun.add_function( 'user32', 'SetProcessWindowStation', 'BOOL',[
2731
+ dll.add_function('SetProcessWindowStation', 'BOOL',[
2733
2732
  ["DWORD","hWinSta","in"],
2734
2733
  ])
2735
2734
 
2736
- railgun.add_function( 'user32', 'SetPropA', 'BOOL',[
2735
+ dll.add_function('SetPropA', 'BOOL',[
2737
2736
  ["DWORD","hWnd","in"],
2738
2737
  ["PCHAR","lpString","in"],
2739
2738
  ["DWORD","hData","in"],
2740
2739
  ])
2741
2740
 
2742
- railgun.add_function( 'user32', 'SetPropW', 'BOOL',[
2741
+ dll.add_function('SetPropW', 'BOOL',[
2743
2742
  ["DWORD","hWnd","in"],
2744
2743
  ["PWCHAR","lpString","in"],
2745
2744
  ["DWORD","hData","in"],
2746
2745
  ])
2747
2746
 
2748
- railgun.add_function( 'user32', 'SetRect', 'BOOL',[
2747
+ dll.add_function('SetRect', 'BOOL',[
2749
2748
  ["PBLOB","lprc","out"],
2750
2749
  ["DWORD","xLeft","in"],
2751
2750
  ["DWORD","yTop","in"],
@@ -2753,25 +2752,25 @@ class Def_user32
2753
2752
  ["DWORD","yBottom","in"],
2754
2753
  ])
2755
2754
 
2756
- railgun.add_function( 'user32', 'SetRectEmpty', 'BOOL',[
2755
+ dll.add_function('SetRectEmpty', 'BOOL',[
2757
2756
  ["PBLOB","lprc","out"],
2758
2757
  ])
2759
2758
 
2760
- railgun.add_function( 'user32', 'SetScrollInfo', 'DWORD',[
2759
+ dll.add_function('SetScrollInfo', 'DWORD',[
2761
2760
  ["DWORD","hwnd","in"],
2762
2761
  ["DWORD","nBar","in"],
2763
2762
  ["PBLOB","lpsi","in"],
2764
2763
  ["BOOL","redraw","in"],
2765
2764
  ])
2766
2765
 
2767
- railgun.add_function( 'user32', 'SetScrollPos', 'DWORD',[
2766
+ dll.add_function('SetScrollPos', 'DWORD',[
2768
2767
  ["DWORD","hWnd","in"],
2769
2768
  ["DWORD","nBar","in"],
2770
2769
  ["DWORD","nPos","in"],
2771
2770
  ["BOOL","bRedraw","in"],
2772
2771
  ])
2773
2772
 
2774
- railgun.add_function( 'user32', 'SetScrollRange', 'BOOL',[
2773
+ dll.add_function('SetScrollRange', 'BOOL',[
2775
2774
  ["DWORD","hWnd","in"],
2776
2775
  ["DWORD","nBar","in"],
2777
2776
  ["DWORD","nMinPos","in"],
@@ -2779,65 +2778,65 @@ class Def_user32
2779
2778
  ["BOOL","bRedraw","in"],
2780
2779
  ])
2781
2780
 
2782
- railgun.add_function( 'user32', 'SetSystemCursor', 'BOOL',[
2781
+ dll.add_function('SetSystemCursor', 'BOOL',[
2783
2782
  ["DWORD","hcur","in"],
2784
2783
  ["DWORD","id","in"],
2785
2784
  ])
2786
2785
 
2787
- railgun.add_function( 'user32', 'SetThreadDesktop', 'BOOL',[
2786
+ dll.add_function('SetThreadDesktop', 'BOOL',[
2788
2787
  ["DWORD","hDesktop","in"],
2789
2788
  ])
2790
2789
 
2791
- railgun.add_function( 'user32', 'SetTimer', 'DWORD',[
2790
+ dll.add_function('SetTimer', 'DWORD',[
2792
2791
  ["DWORD","hWnd","in"],
2793
2792
  ["DWORD","nIDEvent","in"],
2794
2793
  ["DWORD","uElapse","in"],
2795
2794
  ["PBLOB","lpTimerFunc","in"],
2796
2795
  ])
2797
2796
 
2798
- railgun.add_function( 'user32', 'SetUserObjectInformationA', 'BOOL',[
2797
+ dll.add_function('SetUserObjectInformationA', 'BOOL',[
2799
2798
  ["DWORD","hObj","in"],
2800
2799
  ["DWORD","nIndex","in"],
2801
2800
  ["PBLOB","pvInfo","in"],
2802
2801
  ["DWORD","nLength","in"],
2803
2802
  ])
2804
2803
 
2805
- railgun.add_function( 'user32', 'SetUserObjectInformationW', 'BOOL',[
2804
+ dll.add_function('SetUserObjectInformationW', 'BOOL',[
2806
2805
  ["DWORD","hObj","in"],
2807
2806
  ["DWORD","nIndex","in"],
2808
2807
  ["PBLOB","pvInfo","in"],
2809
2808
  ["DWORD","nLength","in"],
2810
2809
  ])
2811
2810
 
2812
- railgun.add_function( 'user32', 'SetUserObjectSecurity', 'BOOL',[
2811
+ dll.add_function('SetUserObjectSecurity', 'BOOL',[
2813
2812
  ["DWORD","hObj","in"],
2814
2813
  ["PBLOB","pSIRequested","in"],
2815
2814
  ["PBLOB","pSID","in"],
2816
2815
  ])
2817
2816
 
2818
- railgun.add_function( 'user32', 'SetWindowContextHelpId', 'BOOL',[
2817
+ dll.add_function('SetWindowContextHelpId', 'BOOL',[
2819
2818
  ["DWORD","param0","in"],
2820
2819
  ["DWORD","param1","in"],
2821
2820
  ])
2822
2821
 
2823
- railgun.add_function( 'user32', 'SetWindowLongA', 'DWORD',[
2822
+ dll.add_function('SetWindowLongA', 'DWORD',[
2824
2823
  ["DWORD","hWnd","in"],
2825
2824
  ["DWORD","nIndex","in"],
2826
2825
  ["DWORD","dwNewLong","in"],
2827
2826
  ])
2828
2827
 
2829
- railgun.add_function( 'user32', 'SetWindowLongW', 'DWORD',[
2828
+ dll.add_function('SetWindowLongW', 'DWORD',[
2830
2829
  ["DWORD","hWnd","in"],
2831
2830
  ["DWORD","nIndex","in"],
2832
2831
  ["DWORD","dwNewLong","in"],
2833
2832
  ])
2834
2833
 
2835
- railgun.add_function( 'user32', 'SetWindowPlacement', 'BOOL',[
2834
+ dll.add_function('SetWindowPlacement', 'BOOL',[
2836
2835
  ["DWORD","hWnd","in"],
2837
2836
  ["PBLOB","lpwndpl","in"],
2838
2837
  ])
2839
2838
 
2840
- railgun.add_function( 'user32', 'SetWindowPos', 'BOOL',[
2839
+ dll.add_function('SetWindowPos', 'BOOL',[
2841
2840
  ["DWORD","hWnd","in"],
2842
2841
  ["DWORD","hWndInsertAfter","in"],
2843
2842
  ["DWORD","X","in"],
@@ -2847,115 +2846,115 @@ class Def_user32
2847
2846
  ["DWORD","uFlags","in"],
2848
2847
  ])
2849
2848
 
2850
- railgun.add_function( 'user32', 'SetWindowRgn', 'DWORD',[
2849
+ dll.add_function('SetWindowRgn', 'DWORD',[
2851
2850
  ["DWORD","hWnd","in"],
2852
2851
  ["DWORD","hRgn","in"],
2853
2852
  ["BOOL","bRedraw","in"],
2854
2853
  ])
2855
2854
 
2856
- railgun.add_function( 'user32', 'SetWindowTextA', 'BOOL',[
2855
+ dll.add_function('SetWindowTextA', 'BOOL',[
2857
2856
  ["DWORD","hWnd","in"],
2858
2857
  ["PCHAR","lpString","in"],
2859
2858
  ])
2860
2859
 
2861
- railgun.add_function( 'user32', 'SetWindowTextW', 'BOOL',[
2860
+ dll.add_function('SetWindowTextW', 'BOOL',[
2862
2861
  ["DWORD","hWnd","in"],
2863
2862
  ["PWCHAR","lpString","in"],
2864
2863
  ])
2865
2864
 
2866
- railgun.add_function( 'user32', 'SetWindowWord', 'WORD',[
2865
+ dll.add_function('SetWindowWord', 'WORD',[
2867
2866
  ["DWORD","hWnd","in"],
2868
2867
  ["DWORD","nIndex","in"],
2869
2868
  ["WORD","wNewWord","in"],
2870
2869
  ])
2871
2870
 
2872
- railgun.add_function( 'user32', 'SetWindowsHookA', 'DWORD',[
2871
+ dll.add_function('SetWindowsHookA', 'DWORD',[
2873
2872
  ["DWORD","nFilterType","in"],
2874
2873
  ["DWORD","pfnFilterProc","in"],
2875
2874
  ])
2876
2875
 
2877
- railgun.add_function( 'user32', 'SetWindowsHookExA', 'DWORD',[
2876
+ dll.add_function('SetWindowsHookExA', 'DWORD',[
2878
2877
  ["DWORD","idHook","in"],
2879
2878
  ["DWORD","lpfn","in"],
2880
2879
  ["DWORD","hmod","in"],
2881
2880
  ["DWORD","dwThreadId","in"],
2882
2881
  ])
2883
2882
 
2884
- railgun.add_function( 'user32', 'SetWindowsHookExW', 'DWORD',[
2883
+ dll.add_function('SetWindowsHookExW', 'DWORD',[
2885
2884
  ["DWORD","idHook","in"],
2886
2885
  ["DWORD","lpfn","in"],
2887
2886
  ["DWORD","hmod","in"],
2888
2887
  ["DWORD","dwThreadId","in"],
2889
2888
  ])
2890
2889
 
2891
- railgun.add_function( 'user32', 'SetWindowsHookW', 'DWORD',[
2890
+ dll.add_function('SetWindowsHookW', 'DWORD',[
2892
2891
  ["DWORD","nFilterType","in"],
2893
2892
  ["DWORD","pfnFilterProc","in"],
2894
2893
  ])
2895
2894
 
2896
- railgun.add_function( 'user32', 'ShowCaret', 'BOOL',[
2895
+ dll.add_function('ShowCaret', 'BOOL',[
2897
2896
  ["DWORD","hWnd","in"],
2898
2897
  ])
2899
2898
 
2900
- railgun.add_function( 'user32', 'ShowCursor', 'DWORD',[
2899
+ dll.add_function('ShowCursor', 'DWORD',[
2901
2900
  ["BOOL","bShow","in"],
2902
2901
  ])
2903
2902
 
2904
- railgun.add_function( 'user32', 'ShowOwnedPopups', 'BOOL',[
2903
+ dll.add_function('ShowOwnedPopups', 'BOOL',[
2905
2904
  ["DWORD","hWnd","in"],
2906
2905
  ["BOOL","fShow","in"],
2907
2906
  ])
2908
2907
 
2909
- railgun.add_function( 'user32', 'ShowScrollBar', 'BOOL',[
2908
+ dll.add_function('ShowScrollBar', 'BOOL',[
2910
2909
  ["DWORD","hWnd","in"],
2911
2910
  ["DWORD","wBar","in"],
2912
2911
  ["BOOL","bShow","in"],
2913
2912
  ])
2914
2913
 
2915
- railgun.add_function( 'user32', 'ShowWindow', 'BOOL',[
2914
+ dll.add_function('ShowWindow', 'BOOL',[
2916
2915
  ["DWORD","hWnd","in"],
2917
2916
  ["DWORD","nCmdShow","in"],
2918
2917
  ])
2919
2918
 
2920
- railgun.add_function( 'user32', 'ShowWindowAsync', 'BOOL',[
2919
+ dll.add_function('ShowWindowAsync', 'BOOL',[
2921
2920
  ["DWORD","hWnd","in"],
2922
2921
  ["DWORD","nCmdShow","in"],
2923
2922
  ])
2924
2923
 
2925
- railgun.add_function( 'user32', 'SubtractRect', 'BOOL',[
2924
+ dll.add_function('SubtractRect', 'BOOL',[
2926
2925
  ["PBLOB","lprcDst","out"],
2927
2926
  ["PBLOB","lprcSrc1","in"],
2928
2927
  ["PBLOB","lprcSrc2","in"],
2929
2928
  ])
2930
2929
 
2931
- railgun.add_function( 'user32', 'SwapMouseButton', 'BOOL',[
2930
+ dll.add_function('SwapMouseButton', 'BOOL',[
2932
2931
  ["BOOL","fSwap","in"],
2933
2932
  ])
2934
2933
 
2935
- railgun.add_function( 'user32', 'SwitchDesktop', 'BOOL',[
2934
+ dll.add_function('SwitchDesktop', 'BOOL',[
2936
2935
  ["DWORD","hDesktop","in"],
2937
2936
  ])
2938
2937
 
2939
- railgun.add_function( 'user32', 'SwitchToThisWindow', 'VOID',[
2938
+ dll.add_function('SwitchToThisWindow', 'VOID',[
2940
2939
  ["DWORD","hwnd","in"],
2941
2940
  ["BOOL","fUnknown","in"],
2942
2941
  ])
2943
2942
 
2944
- railgun.add_function( 'user32', 'SystemParametersInfoA', 'BOOL',[
2943
+ dll.add_function('SystemParametersInfoA', 'BOOL',[
2945
2944
  ["DWORD","uiAction","in"],
2946
2945
  ["DWORD","uiParam","in"],
2947
2946
  ["PBLOB","pvParam","inout"],
2948
2947
  ["DWORD","fWinIni","in"],
2949
2948
  ])
2950
2949
 
2951
- railgun.add_function( 'user32', 'SystemParametersInfoW', 'BOOL',[
2950
+ dll.add_function('SystemParametersInfoW', 'BOOL',[
2952
2951
  ["DWORD","uiAction","in"],
2953
2952
  ["DWORD","uiParam","in"],
2954
2953
  ["PBLOB","pvParam","inout"],
2955
2954
  ["DWORD","fWinIni","in"],
2956
2955
  ])
2957
2956
 
2958
- railgun.add_function( 'user32', 'TabbedTextOutA', 'DWORD',[
2957
+ dll.add_function('TabbedTextOutA', 'DWORD',[
2959
2958
  ["DWORD","hdc","in"],
2960
2959
  ["DWORD","x","in"],
2961
2960
  ["DWORD","y","in"],
@@ -2966,7 +2965,7 @@ class Def_user32
2966
2965
  ["DWORD","nTabOrigin","in"],
2967
2966
  ])
2968
2967
 
2969
- railgun.add_function( 'user32', 'TabbedTextOutW', 'DWORD',[
2968
+ dll.add_function('TabbedTextOutW', 'DWORD',[
2970
2969
  ["DWORD","hdc","in"],
2971
2970
  ["DWORD","x","in"],
2972
2971
  ["DWORD","y","in"],
@@ -2977,7 +2976,7 @@ class Def_user32
2977
2976
  ["DWORD","nTabOrigin","in"],
2978
2977
  ])
2979
2978
 
2980
- railgun.add_function( 'user32', 'TileWindows', 'WORD',[
2979
+ dll.add_function('TileWindows', 'WORD',[
2981
2980
  ["DWORD","hwndParent","in"],
2982
2981
  ["DWORD","wHow","in"],
2983
2982
  ["PBLOB","lpRect","in"],
@@ -2985,7 +2984,7 @@ class Def_user32
2985
2984
  ["PDWORD","lpKids","in"],
2986
2985
  ])
2987
2986
 
2988
- railgun.add_function( 'user32', 'ToAscii', 'DWORD',[
2987
+ dll.add_function('ToAscii', 'DWORD',[
2989
2988
  ["DWORD","uVirtKey","in"],
2990
2989
  ["DWORD","uScanCode","in"],
2991
2990
  ["PBLOB","lpKeyState","in"],
@@ -2993,7 +2992,7 @@ class Def_user32
2993
2992
  ["DWORD","uFlags","in"],
2994
2993
  ])
2995
2994
 
2996
- railgun.add_function( 'user32', 'ToAsciiEx', 'DWORD',[
2995
+ dll.add_function('ToAsciiEx', 'DWORD',[
2997
2996
  ["DWORD","uVirtKey","in"],
2998
2997
  ["DWORD","uScanCode","in"],
2999
2998
  ["PBLOB","lpKeyState","in"],
@@ -3002,11 +3001,11 @@ class Def_user32
3002
3001
  ["DWORD","dwhkl","in"],
3003
3002
  ])
3004
3003
 
3005
- railgun.add_function( 'user32', 'TrackMouseEvent', 'BOOL',[
3004
+ dll.add_function('TrackMouseEvent', 'BOOL',[
3006
3005
  ["PBLOB","lpEventTrack","inout"],
3007
3006
  ])
3008
3007
 
3009
- railgun.add_function( 'user32', 'TrackPopupMenu', 'BOOL',[
3008
+ dll.add_function('TrackPopupMenu', 'BOOL',[
3010
3009
  ["DWORD","hMenu","in"],
3011
3010
  ["DWORD","uFlags","in"],
3012
3011
  ["DWORD","x","in"],
@@ -3016,145 +3015,145 @@ class Def_user32
3016
3015
  ["PBLOB","prcRect","in"],
3017
3016
  ])
3018
3017
 
3019
- railgun.add_function( 'user32', 'TranslateAcceleratorA', 'DWORD',[
3018
+ dll.add_function('TranslateAcceleratorA', 'DWORD',[
3020
3019
  ["DWORD","hWnd","in"],
3021
3020
  ["DWORD","hAccTable","in"],
3022
3021
  ["PBLOB","lpMsg","in"],
3023
3022
  ])
3024
3023
 
3025
- railgun.add_function( 'user32', 'TranslateAcceleratorW', 'DWORD',[
3024
+ dll.add_function('TranslateAcceleratorW', 'DWORD',[
3026
3025
  ["DWORD","hWnd","in"],
3027
3026
  ["DWORD","hAccTable","in"],
3028
3027
  ["PBLOB","lpMsg","in"],
3029
3028
  ])
3030
3029
 
3031
- railgun.add_function( 'user32', 'TranslateMDISysAccel', 'BOOL',[
3030
+ dll.add_function('TranslateMDISysAccel', 'BOOL',[
3032
3031
  ["DWORD","hWndClient","in"],
3033
3032
  ["PBLOB","lpMsg","in"],
3034
3033
  ])
3035
3034
 
3036
- railgun.add_function( 'user32', 'TranslateMessage', 'BOOL',[
3035
+ dll.add_function('TranslateMessage', 'BOOL',[
3037
3036
  ["PBLOB","lpMsg","in"],
3038
3037
  ])
3039
3038
 
3040
- railgun.add_function( 'user32', 'UnhookWinEvent', 'BOOL',[
3039
+ dll.add_function('UnhookWinEvent', 'BOOL',[
3041
3040
  ["DWORD","hWinEventHook","in"],
3042
3041
  ])
3043
3042
 
3044
- railgun.add_function( 'user32', 'UnhookWindowsHook', 'BOOL',[
3043
+ dll.add_function('UnhookWindowsHook', 'BOOL',[
3045
3044
  ["DWORD","nCode","in"],
3046
3045
  ["DWORD","pfnFilterProc","in"],
3047
3046
  ])
3048
3047
 
3049
- railgun.add_function( 'user32', 'UnhookWindowsHookEx', 'BOOL',[
3048
+ dll.add_function('UnhookWindowsHookEx', 'BOOL',[
3050
3049
  ["DWORD","hhk","in"],
3051
3050
  ])
3052
3051
 
3053
- railgun.add_function( 'user32', 'UnionRect', 'BOOL',[
3052
+ dll.add_function('UnionRect', 'BOOL',[
3054
3053
  ["PBLOB","lprcDst","out"],
3055
3054
  ["PBLOB","lprcSrc1","in"],
3056
3055
  ["PBLOB","lprcSrc2","in"],
3057
3056
  ])
3058
3057
 
3059
- railgun.add_function( 'user32', 'UnloadKeyboardLayout', 'BOOL',[
3058
+ dll.add_function('UnloadKeyboardLayout', 'BOOL',[
3060
3059
  ["DWORD","hkl","in"],
3061
3060
  ])
3062
3061
 
3063
- railgun.add_function( 'user32', 'UnregisterClassA', 'BOOL',[
3062
+ dll.add_function('UnregisterClassA', 'BOOL',[
3064
3063
  ["PCHAR","lpClassName","in"],
3065
3064
  ["DWORD","hInstance","in"],
3066
3065
  ])
3067
3066
 
3068
- railgun.add_function( 'user32', 'UnregisterClassW', 'BOOL',[
3067
+ dll.add_function('UnregisterClassW', 'BOOL',[
3069
3068
  ["PWCHAR","lpClassName","in"],
3070
3069
  ["DWORD","hInstance","in"],
3071
3070
  ])
3072
3071
 
3073
- railgun.add_function( 'user32', 'UnregisterDeviceNotification', 'BOOL',[
3072
+ dll.add_function('UnregisterDeviceNotification', 'BOOL',[
3074
3073
  ["DWORD","Handle","in"],
3075
3074
  ])
3076
3075
 
3077
- railgun.add_function( 'user32', 'UnregisterHotKey', 'BOOL',[
3076
+ dll.add_function('UnregisterHotKey', 'BOOL',[
3078
3077
  ["DWORD","hWnd","in"],
3079
3078
  ["DWORD","id","in"],
3080
3079
  ])
3081
3080
 
3082
- railgun.add_function( 'user32', 'UpdateWindow', 'BOOL',[
3081
+ dll.add_function('UpdateWindow', 'BOOL',[
3083
3082
  ["DWORD","hWnd","in"],
3084
3083
  ])
3085
3084
 
3086
- railgun.add_function( 'user32', 'UserHandleGrantAccess', 'BOOL',[
3085
+ dll.add_function('UserHandleGrantAccess', 'BOOL',[
3087
3086
  ["DWORD","hUserHandle","in"],
3088
3087
  ["DWORD","hJob","in"],
3089
3088
  ["BOOL","bGrant","in"],
3090
3089
  ])
3091
3090
 
3092
- railgun.add_function( 'user32', 'ValidateRect', 'BOOL',[
3091
+ dll.add_function('ValidateRect', 'BOOL',[
3093
3092
  ["DWORD","hWnd","in"],
3094
3093
  ["PBLOB","lpRect","in"],
3095
3094
  ])
3096
3095
 
3097
- railgun.add_function( 'user32', 'ValidateRgn', 'BOOL',[
3096
+ dll.add_function('ValidateRgn', 'BOOL',[
3098
3097
  ["DWORD","hWnd","in"],
3099
3098
  ["DWORD","hRgn","in"],
3100
3099
  ])
3101
3100
 
3102
- railgun.add_function( 'user32', 'VkKeyScanA', 'WORD',[
3101
+ dll.add_function('VkKeyScanA', 'WORD',[
3103
3102
  ["BYTE","ch","in"],
3104
3103
  ])
3105
3104
 
3106
- railgun.add_function( 'user32', 'VkKeyScanExA', 'WORD',[
3105
+ dll.add_function('VkKeyScanExA', 'WORD',[
3107
3106
  ["BYTE","ch","in"],
3108
3107
  ["DWORD","dwhkl","in"],
3109
3108
  ])
3110
3109
 
3111
- railgun.add_function( 'user32', 'VkKeyScanExW', 'WORD',[
3110
+ dll.add_function('VkKeyScanExW', 'WORD',[
3112
3111
  ["WORD","ch","in"],
3113
3112
  ["DWORD","dwhkl","in"],
3114
3113
  ])
3115
3114
 
3116
- railgun.add_function( 'user32', 'VkKeyScanW', 'WORD',[
3115
+ dll.add_function('VkKeyScanW', 'WORD',[
3117
3116
  ["WORD","ch","in"],
3118
3117
  ])
3119
3118
 
3120
- railgun.add_function( 'user32', 'WaitForInputIdle', 'DWORD',[
3119
+ dll.add_function('WaitForInputIdle', 'DWORD',[
3121
3120
  ["DWORD","hProcess","in"],
3122
3121
  ["DWORD","dwMilliseconds","in"],
3123
3122
  ])
3124
3123
 
3125
- railgun.add_function( 'user32', 'WaitMessage', 'BOOL',[
3124
+ dll.add_function('WaitMessage', 'BOOL',[
3126
3125
  ])
3127
3126
 
3128
- railgun.add_function( 'user32', 'WinHelpA', 'BOOL',[
3127
+ dll.add_function('WinHelpA', 'BOOL',[
3129
3128
  ["DWORD","hWndMain","in"],
3130
3129
  ["PCHAR","lpszHelp","in"],
3131
3130
  ["DWORD","uCommand","in"],
3132
3131
  ["PDWORD","dwData","in"],
3133
3132
  ])
3134
3133
 
3135
- railgun.add_function( 'user32', 'WinHelpW', 'BOOL',[
3134
+ dll.add_function('WinHelpW', 'BOOL',[
3136
3135
  ["DWORD","hWndMain","in"],
3137
3136
  ["PWCHAR","lpszHelp","in"],
3138
3137
  ["DWORD","uCommand","in"],
3139
3138
  ["PDWORD","dwData","in"],
3140
3139
  ])
3141
3140
 
3142
- railgun.add_function( 'user32', 'WindowFromDC', 'DWORD',[
3141
+ dll.add_function('WindowFromDC', 'DWORD',[
3143
3142
  ["DWORD","hDC","in"],
3144
3143
  ])
3145
3144
 
3146
- railgun.add_function( 'user32', 'WindowFromPoint', 'DWORD',[
3145
+ dll.add_function('WindowFromPoint', 'DWORD',[
3147
3146
  ["PBLOB","Point","in"],
3148
3147
  ])
3149
3148
 
3150
- railgun.add_function( 'user32', 'keybd_event', 'VOID',[
3149
+ dll.add_function('keybd_event', 'VOID',[
3151
3150
  ["BYTE","bVk","in"],
3152
3151
  ["BYTE","bScan","in"],
3153
3152
  ["DWORD","dwFlags","in"],
3154
3153
  ["PDWORD","dwExtraInfo","in"],
3155
3154
  ])
3156
3155
 
3157
- railgun.add_function( 'user32', 'mouse_event', 'VOID',[
3156
+ dll.add_function('mouse_event', 'VOID',[
3158
3157
  ["DWORD","dwFlags","in"],
3159
3158
  ["DWORD","dx","in"],
3160
3159
  ["DWORD","dy","in"],
@@ -3162,6 +3161,7 @@ class Def_user32
3162
3161
  ["PDWORD","dwExtraInfo","in"],
3163
3162
  ])
3164
3163
 
3164
+ return dll
3165
3165
  end
3166
3166
 
3167
3167
  end