windows-pr 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/CHANGES +408 -404
  2. data/MANIFEST +65 -65
  3. data/README +149 -149
  4. data/Rakefile +52 -52
  5. data/doc/conversion_guide.txt +37 -37
  6. data/lib/windows/clipboard.rb +59 -59
  7. data/lib/windows/com.rb +190 -189
  8. data/lib/windows/com/automation.rb +147 -147
  9. data/lib/windows/com/variant.rb +22 -22
  10. data/lib/windows/console.rb +112 -112
  11. data/lib/windows/debug.rb +33 -33
  12. data/lib/windows/device_io.rb +246 -246
  13. data/lib/windows/directory.rb +25 -25
  14. data/lib/windows/error.rb +482 -482
  15. data/lib/windows/eventlog.rb +78 -78
  16. data/lib/windows/file.rb +262 -262
  17. data/lib/windows/file_mapping.rb +23 -23
  18. data/lib/windows/filesystem.rb +13 -13
  19. data/lib/windows/gdi/bitmap.rb +63 -63
  20. data/lib/windows/gdi/device_context.rb +44 -44
  21. data/lib/windows/gdi/metafile.rb +38 -38
  22. data/lib/windows/gdi/painting_drawing.rb +113 -113
  23. data/lib/windows/handle.rb +21 -21
  24. data/lib/windows/library.rb +42 -42
  25. data/lib/windows/limits.rb +31 -31
  26. data/lib/windows/mailslot.rb +22 -22
  27. data/lib/windows/memory.rb +126 -126
  28. data/lib/windows/msvcrt/buffer.rb +73 -73
  29. data/lib/windows/msvcrt/directory.rb +29 -29
  30. data/lib/windows/msvcrt/file.rb +45 -45
  31. data/lib/windows/msvcrt/io.rb +71 -71
  32. data/lib/windows/msvcrt/time.rb +167 -167
  33. data/lib/windows/national.rb +578 -578
  34. data/lib/windows/network/management.rb +523 -523
  35. data/lib/windows/network/snmp.rb +90 -90
  36. data/lib/windows/network/winsock.rb +126 -126
  37. data/lib/windows/nio.rb +48 -47
  38. data/lib/windows/ntfs/winternl.rb +96 -96
  39. data/lib/windows/path.rb +141 -141
  40. data/lib/windows/pipe.rb +40 -40
  41. data/lib/windows/process.rb +174 -174
  42. data/lib/windows/registry.rb +126 -126
  43. data/lib/windows/security.rb +477 -477
  44. data/lib/windows/security/authentication.rb +30 -30
  45. data/lib/windows/service.rb +140 -140
  46. data/lib/windows/shell.rb +169 -169
  47. data/lib/windows/sound.rb +37 -37
  48. data/lib/windows/synchronize.rb +131 -131
  49. data/lib/windows/system_info.rb +227 -222
  50. data/lib/windows/thread.rb +62 -62
  51. data/lib/windows/time.rb +46 -46
  52. data/lib/windows/tool_helper.rb +34 -34
  53. data/lib/windows/volume.rb +59 -59
  54. data/lib/windows/window.rb +79 -79
  55. data/lib/windows/window/classes.rb +57 -57
  56. data/lib/windows/window/dialog.rb +89 -89
  57. data/lib/windows/window/menu.rb +100 -100
  58. data/lib/windows/window/message.rb +295 -295
  59. data/lib/windows/window/properties.rb +18 -18
  60. data/lib/windows/window/timer.rb +17 -17
  61. data/test/tc_clipboard.rb +41 -41
  62. data/test/tc_com.rb +32 -32
  63. data/test/tc_com_automation.rb +15 -15
  64. data/test/tc_console.rb +108 -108
  65. data/test/tc_debug.rb +48 -48
  66. data/test/tc_device_io.rb +29 -29
  67. data/test/tc_directory.rb +25 -25
  68. data/test/tc_error.rb +49 -49
  69. data/test/tc_eventlog.rb +58 -58
  70. data/test/tc_file.rb +67 -67
  71. data/test/tc_file_mapping.rb +38 -38
  72. data/test/tc_filesystem.rb +27 -27
  73. data/test/tc_gdi_bitmap.rb +25 -25
  74. data/test/tc_gdi_metafile.rb +23 -23
  75. data/test/tc_handle.rb +36 -36
  76. data/test/tc_library.rb +37 -37
  77. data/test/tc_limits.rb +34 -34
  78. data/test/tc_mailslot.rb +22 -22
  79. data/test/tc_memory.rb +44 -44
  80. data/test/tc_msvcrt_buffer.rb +68 -68
  81. data/test/tc_msvcrt_directory.rb +98 -98
  82. data/test/tc_msvcrt_file.rb +80 -80
  83. data/test/tc_msvcrt_io.rb +48 -48
  84. data/test/tc_msvcrt_string.rb +93 -93
  85. data/test/tc_msvcrt_time.rb +29 -29
  86. data/test/tc_national.rb +38 -38
  87. data/test/tc_network_management.rb +32 -32
  88. data/test/tc_network_snmp.rb +31 -31
  89. data/test/tc_network_winsock.rb +34 -34
  90. data/test/tc_nio.rb +32 -32
  91. data/test/tc_ntfs_winternl.rb +29 -29
  92. data/test/tc_path.rb +90 -90
  93. data/test/tc_pipe.rb +53 -53
  94. data/test/tc_process.rb +24 -24
  95. data/test/tc_registry.rb +29 -29
  96. data/test/tc_security.rb +104 -104
  97. data/test/tc_security_authentication.rb +34 -34
  98. data/test/tc_service.rb +57 -57
  99. data/test/tc_shell.rb +34 -34
  100. data/test/tc_sound.rb +37 -37
  101. data/test/tc_synchronize.rb +75 -75
  102. data/test/tc_system_info.rb +43 -43
  103. data/test/tc_thread.rb +29 -29
  104. data/test/tc_time.rb +32 -32
  105. data/test/tc_tool_helper.rb +29 -29
  106. data/test/tc_volume.rb +47 -47
  107. data/test/tc_window.rb +45 -45
  108. data/test/tc_window_classes.rb +33 -33
  109. data/test/tc_window_dialog.rb +33 -33
  110. data/test/tc_window_menu.rb +29 -29
  111. data/test/tc_window_message.rb +33 -33
  112. data/test/tc_window_properties.rb +29 -29
  113. data/test/tc_window_timer.rb +29 -29
  114. data/windows-pr.gemspec +34 -34
  115. metadata +4 -4
data/CHANGES CHANGED
@@ -1,404 +1,408 @@
1
- = 1.1.2 - 6-Nov-2010
2
- * Fixed a job security flag name.
3
-
4
- = 1.1.1 - 6-Nov-2010
5
- * Added some security flags for Job objects to the Windows::Process module.
6
- * Added namespace functions to the Windows::Synchronize module.
7
-
8
- = 1.1.0 - 5-Nov-2010
9
- * Added the get_volume_type method to the Windows::Volume module.
10
- * Added more tests for the Windows::Volume module.
11
- * Removed the non-gem installation task and added a clean task.
12
-
13
- = 1.0.9 - 6-Feb-2010
14
- * A couple of modules that were checking against $KCODE now check against
15
- __ENCODING__ or the string encoding for Ruby 1.9.x.
16
- * Removed an indentation warning that was revealed by Ruby 1.9.x.
17
- * Refactored the Rakefile, scoping and adding additional tasks.
18
- * Updated some tests to handling Ruby 1.9.x better. All tests now pass
19
- without warning with 1.9.x.
20
- * Added SERVICE_ACCEPT_PRESHUTDOWN constant to service.rb.
21
-
22
- = 1.0.8 - 24-Aug-2009
23
- * Several return value constants that were set at -1 are now set to
24
- 0xFFFFFFFF instead because win32-api returns unsigned longs.
25
- * Removed the two mailslot constants from the Windows::File module. They're
26
- defined in the Windows::Mailslot module.
27
- * Added the windows_version method to the Windows::SystemInfo module. It
28
- returns a float in 'major.minor' format.
29
-
30
- = 1.0.7 - 20-Aug-2009
31
- * Added the Windows::Mailslot module.
32
- * The IsProcessInJob function in the Windows::Process module is now wrapped
33
- properly so that it doesn't cause an error on Windows 2000. Thanks go to
34
- Finbar Clenaghan for the spot.
35
- * Minor updates to the conversion guide.
36
-
37
- = 1.0.6 - 19-Jul-2009
38
- * Added several job functions to the Windows::Process module.
39
- * Updated license to Artistic 2.0.
40
-
41
- = 1.0.5 - 21-May-2009
42
- * Fixed VARIANT_TRUE value in the Windows::COM::Variant module.
43
- * Added some functions to the Windows::National module, and handled some
44
- Vista only functions properly.
45
- * Updated the return types of the SafeArrayCreate and SafeArrayCreateVector
46
- functions in the Windows::COM::Automation module.
47
-
48
- = 1.0.4 - 15-May-2009
49
- * Created the Windows::COM::Variant module.
50
- * Created the Windows::COM::Accessibility module.
51
- * Added some IDispatch constants to the Windows::COM module.
52
- * Added some IDispatch error constants to the Windows::Error module.
53
- * Added many more constants to the Windows::COM::Automation module.
54
- * Added a couple of functions to the Windows::National module.
55
- * Corrected the return type for various SysXXX functions in the
56
- Windows::COM::Automation module.
57
- * Corrected the prototype for the RegEnumKeyEx function in the
58
- Windows::Registry module.
59
-
60
- = 1.0.3 - 23-Apr-2009
61
- * Created the Windows::GDI::MetaFile module.
62
- * Added GetWindowLongPtr and SetWindowLongPtr to Windows::Window::Classes.
63
- * Added DefWindowProc to Windows::Window::Message.
64
- * Added more methods and format constants to the Windows::Clipboard module.
65
- * Added more methods to the Windows::GDI::Bitmap module.
66
- * Prototype update for DragQueryFile() in the Windows::Shell module.
67
- * Return type change for GetClipboardData in the Windows::Clipboard module.
68
-
69
- = 1.0.2 - 5-Mar-2009
70
- * Fixed the library for the AttachThreadInput function in the Windows::Thread
71
- module. Thanks go to an anonymous user for the spot.
72
- * Added the beginnings of the Windows::Security::Authentication module.
73
-
74
- = 1.0.1 - 9-Feb-2009
75
- * Added the Windows::Window::Menu module.
76
- * Added the Windows::Window::Classes module.
77
- * Added tests for several Windows::Window::XXX modules that weren't
78
- previously covered.
79
- * Now properly wraps some methods in the Windows::Network::Winsock module
80
- that weren't supported on Windows 2000.
81
- * Added the IsWow64Process function to the Windows::Process module.
82
- * Added the windows_64? helper method to the Windows::Process module.
83
-
84
- = 1.0.0 - 5-Feb-2009
85
- * Fixed the prototype for DuplicateHandle() in the Windows::Handle module.
86
-
87
- = 0.9.9 - 1-Feb-2009
88
- * Now explicitly checks for Win32::API::LoadLibraryError in the method
89
- declarations instead of Windows::API::Error. The latter no longer exists,
90
- and the former is a better way to check for methods that don't exist on
91
- particular versions of Windows. This change requires windows-api 0.3.0
92
- and win32-api 1.3.0.
93
- * Added a few functions to the Windows::Security module.
94
- * Added the NtQuerySystemInformation function to the Windows::NTFS::Winternl
95
- module.
96
- * Added tests for the Windows::NTFS::Winternl module.
97
- * Declaration fix in Windows::Security module for Win2k.
98
- * Fixed a directory test for Win2k.
99
-
100
- = 0.9.8 - 15-Dec-2008
101
- * Added many more functions and a few constants to the Windows::Security
102
- module.
103
-
104
- = 0.9.7 - 5-Dec-2008
105
- * Renamed Windows::NTFS::File to Windows::NTFS::Winternl.
106
- * Updated the Windows::Network::Management and Windows::Shell modules to use
107
- the 'S' prototype where appropriate.
108
- * Updated the Windows::File module to use the 'S' prototype where appropriate.
109
- * Added the GetFinalPathNameByHandle function to the Windows::NTFS::Winternl
110
- module for Windows XP/2000.
111
- * Added a few new functions to the Windows::Volume module and converted 'P'
112
- prototypes to 'S' where appropriate.
113
- * Added SE_OBJECT_TYPE enumeration values to the Windows::Security module.
114
-
115
- = 0.9.6 - 14-Nov-2008
116
- * Updated the RegisterServiceCtrlHandler and RegisterServiceCtrlHandlerEx
117
- prototypes in the Windows::Service module. Changed old 'P' prototype to 'K'
118
- for callbacks.
119
- * Added explicit ANSI and Wide character functions for GetFileSecurity and
120
- SetFileSecurity in the Windows::Security module (since automatic unicode
121
- generation is set to false for that particular module).
122
- * Added IO reparse point tag constants to the Windows::File module.
123
- * The multi_to_wide helper method in Windows::Unicode now returns the string
124
- as-is if it's already a Unicode string.
125
- * A couple 'P' prototypes were switched to 'S' in Windows::Unicode functions.
126
-
127
- = 0.9.5 - 21-Oct-2008
128
- * Fixed the rescue clauses for unsupported functions for the Windows::Console
129
- and Windows::Debug modules. Thanks go to an anonymous user for the spot.
130
- * Added a couple functions to the Windows::File and Windows::NIO modules.
131
- * Removed the SetFilePointer and SetFilePointerEx functions from the
132
- Windows::File module since they're already in the Windows::NIO module.
133
-
134
- = 0.9.4 - 27-Sep-2008
135
- * Added some macros from windef.h to the Windows::SystemInfo module.
136
- * Added the windows_2000?, windows_xp?, windows_2003? and windows_vista?
137
- helper methods to the Windows::SystemInfo module.
138
- * Added the umask and umask_s functions to the Windows::MSVCRT::File module.
139
- * Added SH_DENYNO and SHORT_LIVED constants to the Windows::MSVCRT::IO module.
140
- * Fixed the prototype for open and wopen in the Windows::MSVCRT::IO module.
141
- * Added SHGetFolderLocation to the Windows::Shell module.
142
- * Added NT privilege constants to the Windows::Security module.
143
- * The wide_to_multi helper function is now friendlier with regards to strings
144
- that may be missing a trailing double null.
145
-
146
- = 0.9.3 - 12-Sep-2008
147
- * Added event logging functions for Windows Vista and later to the
148
- Windows::EventLog module.
149
-
150
- = 0.9.2 - 5-Sep-2008
151
- * Added some WoW64 functions to Windows::File and Windows::SystemInfo.
152
- * All modules now rescue Windows::API::Error for failed function loads.
153
- I was previously inconsistent on just what error I was rescuing.
154
-
155
- = 0.9.1 - 28-Jul-2008
156
- * Yet another refactoring of the multi_to_wide and wide_to_multi helper
157
- methods in the Windows::Unicode module. In addition to a bug fix, they
158
- now raise an ArgumentError if they fail.
159
- * Yet another tweak to get_last_error in the Windows::Error module. It now
160
- always uses the explicit ANSI version of the FormatMessage function.
161
- * Added tests for the multi_to_wide and wide_to_multi helper methods.
162
-
163
- = 0.9.0 - 26-Jul-2008
164
- * The process of converting prototypes from 'P' to 'S' has begun. This
165
- means that this library now requires win32-api 1.2.0 or later.
166
- * Added the Windows::Window::Message module.
167
- * Added the Windows::Window::Timer module.
168
- * Added the Windows::Window::Dialog module.
169
- * Added many more functions and constants to the Windows::Security module.
170
- * All ACE related constants have been move from the Windows::File module and
171
- are instead defined in the Windows::Security module. Not to worry, though.
172
- The Windows::File module now mixes in the Windows::Security module.
173
- * Added several profile related functions to the Windows::Shell module.
174
- * Changed the prototype of ConvertSidToStringSid and ConvertStringSidToSid
175
- back to 'LP' in the Windows::Security module. I'm not sure why I changed
176
- those before. If this causes too much grief I'll change them back.
177
-
178
- = 0.8.7 - 23-Jun-2008
179
- * Wide character fix for the get_last_error helper function. Thanks go to
180
- Dave Whitley for the spot.
181
- * Added local memory functions and constants to the Windows::Memory module.
182
-
183
- = 0.8.6 - 14-Jun-2008
184
- * Added the Windows::Network::Winsock module.
185
- * Added the Windows::ToolHelper module.
186
- * Added CLSCTX enum constants to the Windows::COM module.
187
- * Added several WSA socket error constants to Windows::Error.
188
- * Moved the Process32First and Process32Next functions from Windows::Process
189
- to Windows::ToolHelper.
190
-
191
- = 0.8.5 - 28-May-2008
192
- * Added more pipe related error codes to the Windows::Error module.
193
- * Added the FlushFileBuffers function to the Windows::File module.
194
-
195
- = 0.8.4 - 18-May-2008
196
- * Added the Windows::NTFS::File module.
197
- * Added several IOCTL macro methods to the Windows::DeviceIO module.
198
- * Wrapped the GetLayeredWindowAttributes function in the Windows::Window
199
- module since it is only supported on Windows XP or later.
200
- * Fixed the CreateThread prototype with regards to callback support.
201
-
202
- = 0.8.3 - 26-Apr-2008
203
- * Now requires windows-api 0.2.3 or later to take advantage of the
204
- improvements in auto constant generation.
205
- * Fixed a scope resolution bug in the custom memcpy method in the
206
- Windows::MSVCRT::Buffer module.
207
- * Added some more Windows::MSVCRT::String functions.
208
- * Added the FSCTL_ENUM_USN_DATA macro method in Windows::DeviceIO.
209
- * Some modules were refactored to take advantage of the improvements in
210
- windows-api 0.2.3. This resulted in a net reduction of code.
211
-
212
- = 0.8.2 - 17-Apr-2008
213
- * Most of the MSVCRT modules now use the MSVCRT_DLL from the Windows::API
214
- library. This helps resolve an obscure bug where state information from a
215
- statically linked runtime DLL is local to that runtime and not shared with
216
- the Ruby process.
217
- * Now requires windows-api 0.2.2 or later.
218
- * Added more MSVCRT tests.
219
-
220
- = 0.8.1 - 27-Mar-2008
221
- * Added waitable timer functions to the Windows::Synchronize module.
222
- * Fixed params 3 and 4 in the CreateProcess function.
223
-
224
- = 0.8.0 - 20-Jan-2008
225
- * Added the Windows::COM::Automation module.
226
- * Moved Windows::NetworkManagement to Windows::Network::Management.
227
- * Added the Windows::Network::SNMP module.
228
- * Added a MAXPATH constant to Windows::Limits, which is variable depending
229
- on whether or not $KCODE is set to UTF8.
230
- * Added some macro methods to Windows::Error.
231
- * Added many more methods to Windows::COM.
232
- * Fixed the prototype for the SetConsoleCtrlHandler in the Windows::Console
233
- module, and added the CTRL_CLOSE_EVENT constant.
234
-
235
- = 0.7.4 - 11-Dec-2007
236
- * Added several more functions to Windows::Window.
237
- * Added many more constants to the Windows::NetworkManagement module.
238
- * Added several more functions and a few constants to the Windows::Process
239
- module.
240
- * The multi_to_wide and wide_to_multi methods in Windows::Unicode will now
241
- return nil if you pass a nil argument. Also, they will raise a TypeError
242
- if you pass a non-nil, non-string object.
243
-
244
- = 0.7.3 - 23-Nov-2007
245
- * Several thread related methods were moved out of the Windows::Process
246
- module and into the Windows::Thread module.
247
- * Added critical section methods to the Windows::Synchronize module.
248
- * Added many more constants and methods to the Windows::Shell module.
249
- * Created the Windows::Thread module.
250
- * Fixed the PathCreateFromUrl return type in the Windows::Path module.
251
- * Added the strncpy and wcsncpy functions to the Windows::MSVCRT::String
252
- module.
253
- * Added several token related methods and constants to the Windows::Security
254
- module.
255
- * The multi_to_wide and wide_to_multi methods were refactored slightly. Both
256
- now only use MSVCRT string functions internally in case any Ruby String
257
- methods are redefined.
258
-
259
- = 0.7.2 - 15-Oct-2007
260
- * Added the Windows::MSVCRT::Time module.
261
- * Added the Windows::MSVCRT::Directory module.
262
- * Added some SID related security constants to the Windows::Security module.
263
- * Added more constants and the HasOverlappedIoCompleted macro to the
264
- Windows::Synchronize module.
265
- * Added some 'find' methods to the Windows::File module.
266
- * Some prototype fixes for the 'Virtual' functions in Windows::Memory.
267
-
268
- = 0.7.1 - 21-Sep-2007
269
- * Added USN (changejournal) macros to Windows::DeviceIO.
270
- * Added the Heap functions to Windows::Memory.
271
- * Added the Windows::Time module.
272
- * Added a Rakefile with tasks for installation and testing.
273
- * Added and refactored some tests.
274
-
275
- = 0.7.0 - 9-Aug-2007
276
- * All modules now use the windows-api library behind the scenes.
277
- * Added the Windows::NIO module. This contains native Windows IO functions.
278
- * Added several more functions to the Windows::GDI::PaintDrawing module.
279
- * Fixed the prototype for the GetWindowsDirectory function in the
280
- Windows::SystemInfo module.
281
-
282
- = 0.6.6 - 3-May-2007
283
- * Added the Windows::MSVCRT::IO module.
284
- * Removed the SetConsoleCommandHistoryMode method from the Windows::Console
285
- module. This was a preliminary function for Vista only, and it has since
286
- been removed. Thanks go to Drew Colthorp for the spot.
287
-
288
- = 0.6.5 - 28-Feb-2007
289
- * Important bug fixes for the Windows::Directory, Windows::Memory,
290
- Windows::Synchronize and Windows::Volume modules. These were either fixes
291
- for the function declaration or the wrapper method. Thanks go to Katsuyuki
292
- Miyamuko for the spot and the patches.
293
-
294
- = 0.6.4 - 28-Feb-2007
295
- * Add more string functions to the Windows::MSVCRT::String module.
296
- * Minor enhancement to the multi_to_wide and wide_to_multi helper methods in
297
- the Windows::Unicode module. You can now pass an explicit encoding as an
298
- optional second argument.
299
- * Added several more methods to the Windows::National module.
300
- * Finer grained method wrapping/checking for the Windows::Volume module.
301
- Thanks go to Dave Rose for the spot.
302
-
303
- = 0.6.3 - 2-Feb-2007
304
- * Fixed the DLL for SetLastErrorEx in the Windows::Error module.
305
- * Fixed an unitialized constant bug in the Windows::DeviceIO module.
306
- * Fixed a bug in the NetWkstaSetInfo() method, from the
307
- Windows::NetworkManagement module. Thanks go to Richard (???) for the spot.
308
- * Added more security related methods and constants to the Windows::Security
309
- module.
310
- * Fixed a bug in the GetComputerName method in the Windows::SystemInfo module.
311
- Thanks go to Russell Christopher for the spot and the fix.
312
- * Changed method prototype for GetUserName and GetUserNameEx in the
313
- Windows::SystemInfo module.
314
- * Added the PIPE_UNLIMITED_INSTANCES constant to the Windows::Pipe module.
315
- * Altered the prototype for the ConvertSidToStringSid() and
316
- ConvertStringSidToSid() methods from the Windows::Security module.
317
-
318
- = 0.6.2 - 21-Dec-2006
319
- * Added file related constants from sys/stat.h to the Windows::MSVCRT::File
320
- module.
321
- * Added the open_osfhandle method to the Windows::Handle module.
322
- * Changed the signatures for the VirtualFree and VirtualFreeEx functions in
323
- the Windows::Memory module.
324
- * Added the Windows::GDI::Bitmap, Windows::GDI::DeviceContext and
325
- Windows::GDI::PaintingDrawing modules.
326
-
327
- = 0.6.1 - 22-Nov-2006
328
- * Changed the signature for VirtualAlloc and VirtualAllocEx in the
329
- Windows::Memory module (long instead of pointer for first argument).
330
- * Added the get_osfhandle method to the Windows::Handle module.
331
-
332
- = 0.6.0 - 5-Nov-2006
333
- * Added the Windows::Volume module.
334
-
335
- = 0.5.6 - 22-Oct-2006
336
- * Modified the memcpy method in Windows::MSVCRT::Buffer to do the right
337
- thing based on the type of the parameters, as well as automatically
338
- set the default size to the size of the source being copied.
339
-
340
- = 0.5.5 - 11-Oct-2006
341
- * Prototype modification for VirtualQuery and VirtualQueryEx in the
342
- Windows::Memory module.
343
-
344
- = 0.5.4 - 8-Sep-2006
345
- * Added the Windows::NetworkManagement module, which contains methods like
346
- NetUserAdd(), etc.
347
- * Fixed bugs in SetLastError and SetLastErrorEx declarations.
348
- * Finer grained method wrapping/checking for the Windows::Library module.
349
- * Finer grained method wrapping/checking for the Windows::Console module.
350
- * Added a test case for the Windows::Library module.
351
- * Added the LOCKFILE_EXCLUSIVE_LOCK and LOCKFILE_FAIL_IMMEDIATELY constants
352
- to the Windows::File module.
353
-
354
- = 0.5.3 - 10-Aug-2006
355
- * Added wide character functions to the EventLog module.
356
- * Added a test suite for the EventLog module.
357
- * Fixed method wrapper for MapViewOfFileEx.
358
- * Finer grained method wrapping/checking for the Windows::Registry module (the
359
- RegSaveKeyEx might not be defined).
360
-
361
- = 0.5.2 - 29-Jul-2006
362
- * Prototype fixes/changes for CreateProcess, GlobalLock, GlobalMemoryStatusEx,
363
- and CreateFileMapping.
364
- * Finer grained method wrapping/checking for the Windows::Process module (only
365
- two methods might not be defined).
366
- * Added method wrappers for the Handle constants.
367
- * Added mmap related methods and constants.
368
- * Added more test cases.
369
- * Added wide character methods to the Windows::Directory class.
370
- * Added wide character helper methods.
371
- * Added a few more methods to MSVCRT::String.
372
-
373
- = 0.5.1 - 26-May-2006
374
- * Minor updates and fixes for the Unicode and DeviceIO modules.
375
- * Added some wide character support, based on $KCODE values (which should
376
- not be used at this time).
377
-
378
- = 0.5.0 - 23-May-2006
379
- * Added the Registry module
380
- * Added the EventLog module
381
- * Added the National module
382
- * Added the SystemInfo module
383
-
384
- = 0.4.0 - 7-May-2006
385
- * Bug fix for the WaitForMultipleObjects method in synchronize.rb
386
- * Added the Window module (just a few constants for now)
387
- * Added the Console module (AttachConsole, etc)
388
- * Added the Library module (LoadLibrary, etc)
389
- * Added the Directory module (CreateDirectory, etc)
390
- * Added the Shell module (some constants, a few methods for now)
391
- * Added the Unicode module (WideCharToMultiByte, etc)
392
- * Added process creation, priority and startf flags to the Process module
393
-
394
- = 0.3.0 - 22-Apr-2006
395
- * Added the Limits module.
396
- * Added the Security module.
397
- * Fixed a signature bug in the MSVCRT/Buffer module.
398
-
399
- = 0.2.0 - 13-Apr-2006
400
- * Added the FileSystem module.
401
- * Fixed signature and dll mistakes in the File module.
402
-
403
- = 0.1.0 - 4-Apr-2006
404
- * Initial release
1
+ = 1.1.3 - 20-Jan-2011
2
+ * Added the windows_7? method to the Windows::SystemInfo module.
3
+ * Some minor cosmetic updates to other files.
4
+
5
+ = 1.1.2 - 6-Nov-2010
6
+ * Fixed a job security flag name.
7
+
8
+ = 1.1.1 - 6-Nov-2010
9
+ * Added some security flags for Job objects to the Windows::Process module.
10
+ * Added namespace functions to the Windows::Synchronize module.
11
+
12
+ = 1.1.0 - 5-Nov-2010
13
+ * Added the get_volume_type method to the Windows::Volume module.
14
+ * Added more tests for the Windows::Volume module.
15
+ * Removed the non-gem installation task and added a clean task.
16
+
17
+ = 1.0.9 - 6-Feb-2010
18
+ * A couple of modules that were checking against $KCODE now check against
19
+ __ENCODING__ or the string encoding for Ruby 1.9.x.
20
+ * Removed an indentation warning that was revealed by Ruby 1.9.x.
21
+ * Refactored the Rakefile, scoping and adding additional tasks.
22
+ * Updated some tests to handling Ruby 1.9.x better. All tests now pass
23
+ without warning with 1.9.x.
24
+ * Added SERVICE_ACCEPT_PRESHUTDOWN constant to service.rb.
25
+
26
+ = 1.0.8 - 24-Aug-2009
27
+ * Several return value constants that were set at -1 are now set to
28
+ 0xFFFFFFFF instead because win32-api returns unsigned longs.
29
+ * Removed the two mailslot constants from the Windows::File module. They're
30
+ defined in the Windows::Mailslot module.
31
+ * Added the windows_version method to the Windows::SystemInfo module. It
32
+ returns a float in 'major.minor' format.
33
+
34
+ = 1.0.7 - 20-Aug-2009
35
+ * Added the Windows::Mailslot module.
36
+ * The IsProcessInJob function in the Windows::Process module is now wrapped
37
+ properly so that it doesn't cause an error on Windows 2000. Thanks go to
38
+ Finbar Clenaghan for the spot.
39
+ * Minor updates to the conversion guide.
40
+
41
+ = 1.0.6 - 19-Jul-2009
42
+ * Added several job functions to the Windows::Process module.
43
+ * Updated license to Artistic 2.0.
44
+
45
+ = 1.0.5 - 21-May-2009
46
+ * Fixed VARIANT_TRUE value in the Windows::COM::Variant module.
47
+ * Added some functions to the Windows::National module, and handled some
48
+ Vista only functions properly.
49
+ * Updated the return types of the SafeArrayCreate and SafeArrayCreateVector
50
+ functions in the Windows::COM::Automation module.
51
+
52
+ = 1.0.4 - 15-May-2009
53
+ * Created the Windows::COM::Variant module.
54
+ * Created the Windows::COM::Accessibility module.
55
+ * Added some IDispatch constants to the Windows::COM module.
56
+ * Added some IDispatch error constants to the Windows::Error module.
57
+ * Added many more constants to the Windows::COM::Automation module.
58
+ * Added a couple of functions to the Windows::National module.
59
+ * Corrected the return type for various SysXXX functions in the
60
+ Windows::COM::Automation module.
61
+ * Corrected the prototype for the RegEnumKeyEx function in the
62
+ Windows::Registry module.
63
+
64
+ = 1.0.3 - 23-Apr-2009
65
+ * Created the Windows::GDI::MetaFile module.
66
+ * Added GetWindowLongPtr and SetWindowLongPtr to Windows::Window::Classes.
67
+ * Added DefWindowProc to Windows::Window::Message.
68
+ * Added more methods and format constants to the Windows::Clipboard module.
69
+ * Added more methods to the Windows::GDI::Bitmap module.
70
+ * Prototype update for DragQueryFile() in the Windows::Shell module.
71
+ * Return type change for GetClipboardData in the Windows::Clipboard module.
72
+
73
+ = 1.0.2 - 5-Mar-2009
74
+ * Fixed the library for the AttachThreadInput function in the Windows::Thread
75
+ module. Thanks go to an anonymous user for the spot.
76
+ * Added the beginnings of the Windows::Security::Authentication module.
77
+
78
+ = 1.0.1 - 9-Feb-2009
79
+ * Added the Windows::Window::Menu module.
80
+ * Added the Windows::Window::Classes module.
81
+ * Added tests for several Windows::Window::XXX modules that weren't
82
+ previously covered.
83
+ * Now properly wraps some methods in the Windows::Network::Winsock module
84
+ that weren't supported on Windows 2000.
85
+ * Added the IsWow64Process function to the Windows::Process module.
86
+ * Added the windows_64? helper method to the Windows::Process module.
87
+
88
+ = 1.0.0 - 5-Feb-2009
89
+ * Fixed the prototype for DuplicateHandle() in the Windows::Handle module.
90
+
91
+ = 0.9.9 - 1-Feb-2009
92
+ * Now explicitly checks for Win32::API::LoadLibraryError in the method
93
+ declarations instead of Windows::API::Error. The latter no longer exists,
94
+ and the former is a better way to check for methods that don't exist on
95
+ particular versions of Windows. This change requires windows-api 0.3.0
96
+ and win32-api 1.3.0.
97
+ * Added a few functions to the Windows::Security module.
98
+ * Added the NtQuerySystemInformation function to the Windows::NTFS::Winternl
99
+ module.
100
+ * Added tests for the Windows::NTFS::Winternl module.
101
+ * Declaration fix in Windows::Security module for Win2k.
102
+ * Fixed a directory test for Win2k.
103
+
104
+ = 0.9.8 - 15-Dec-2008
105
+ * Added many more functions and a few constants to the Windows::Security
106
+ module.
107
+
108
+ = 0.9.7 - 5-Dec-2008
109
+ * Renamed Windows::NTFS::File to Windows::NTFS::Winternl.
110
+ * Updated the Windows::Network::Management and Windows::Shell modules to use
111
+ the 'S' prototype where appropriate.
112
+ * Updated the Windows::File module to use the 'S' prototype where appropriate.
113
+ * Added the GetFinalPathNameByHandle function to the Windows::NTFS::Winternl
114
+ module for Windows XP/2000.
115
+ * Added a few new functions to the Windows::Volume module and converted 'P'
116
+ prototypes to 'S' where appropriate.
117
+ * Added SE_OBJECT_TYPE enumeration values to the Windows::Security module.
118
+
119
+ = 0.9.6 - 14-Nov-2008
120
+ * Updated the RegisterServiceCtrlHandler and RegisterServiceCtrlHandlerEx
121
+ prototypes in the Windows::Service module. Changed old 'P' prototype to 'K'
122
+ for callbacks.
123
+ * Added explicit ANSI and Wide character functions for GetFileSecurity and
124
+ SetFileSecurity in the Windows::Security module (since automatic unicode
125
+ generation is set to false for that particular module).
126
+ * Added IO reparse point tag constants to the Windows::File module.
127
+ * The multi_to_wide helper method in Windows::Unicode now returns the string
128
+ as-is if it's already a Unicode string.
129
+ * A couple 'P' prototypes were switched to 'S' in Windows::Unicode functions.
130
+
131
+ = 0.9.5 - 21-Oct-2008
132
+ * Fixed the rescue clauses for unsupported functions for the Windows::Console
133
+ and Windows::Debug modules. Thanks go to an anonymous user for the spot.
134
+ * Added a couple functions to the Windows::File and Windows::NIO modules.
135
+ * Removed the SetFilePointer and SetFilePointerEx functions from the
136
+ Windows::File module since they're already in the Windows::NIO module.
137
+
138
+ = 0.9.4 - 27-Sep-2008
139
+ * Added some macros from windef.h to the Windows::SystemInfo module.
140
+ * Added the windows_2000?, windows_xp?, windows_2003? and windows_vista?
141
+ helper methods to the Windows::SystemInfo module.
142
+ * Added the umask and umask_s functions to the Windows::MSVCRT::File module.
143
+ * Added SH_DENYNO and SHORT_LIVED constants to the Windows::MSVCRT::IO module.
144
+ * Fixed the prototype for open and wopen in the Windows::MSVCRT::IO module.
145
+ * Added SHGetFolderLocation to the Windows::Shell module.
146
+ * Added NT privilege constants to the Windows::Security module.
147
+ * The wide_to_multi helper function is now friendlier with regards to strings
148
+ that may be missing a trailing double null.
149
+
150
+ = 0.9.3 - 12-Sep-2008
151
+ * Added event logging functions for Windows Vista and later to the
152
+ Windows::EventLog module.
153
+
154
+ = 0.9.2 - 5-Sep-2008
155
+ * Added some WoW64 functions to Windows::File and Windows::SystemInfo.
156
+ * All modules now rescue Windows::API::Error for failed function loads.
157
+ I was previously inconsistent on just what error I was rescuing.
158
+
159
+ = 0.9.1 - 28-Jul-2008
160
+ * Yet another refactoring of the multi_to_wide and wide_to_multi helper
161
+ methods in the Windows::Unicode module. In addition to a bug fix, they
162
+ now raise an ArgumentError if they fail.
163
+ * Yet another tweak to get_last_error in the Windows::Error module. It now
164
+ always uses the explicit ANSI version of the FormatMessage function.
165
+ * Added tests for the multi_to_wide and wide_to_multi helper methods.
166
+
167
+ = 0.9.0 - 26-Jul-2008
168
+ * The process of converting prototypes from 'P' to 'S' has begun. This
169
+ means that this library now requires win32-api 1.2.0 or later.
170
+ * Added the Windows::Window::Message module.
171
+ * Added the Windows::Window::Timer module.
172
+ * Added the Windows::Window::Dialog module.
173
+ * Added many more functions and constants to the Windows::Security module.
174
+ * All ACE related constants have been move from the Windows::File module and
175
+ are instead defined in the Windows::Security module. Not to worry, though.
176
+ The Windows::File module now mixes in the Windows::Security module.
177
+ * Added several profile related functions to the Windows::Shell module.
178
+ * Changed the prototype of ConvertSidToStringSid and ConvertStringSidToSid
179
+ back to 'LP' in the Windows::Security module. I'm not sure why I changed
180
+ those before. If this causes too much grief I'll change them back.
181
+
182
+ = 0.8.7 - 23-Jun-2008
183
+ * Wide character fix for the get_last_error helper function. Thanks go to
184
+ Dave Whitley for the spot.
185
+ * Added local memory functions and constants to the Windows::Memory module.
186
+
187
+ = 0.8.6 - 14-Jun-2008
188
+ * Added the Windows::Network::Winsock module.
189
+ * Added the Windows::ToolHelper module.
190
+ * Added CLSCTX enum constants to the Windows::COM module.
191
+ * Added several WSA socket error constants to Windows::Error.
192
+ * Moved the Process32First and Process32Next functions from Windows::Process
193
+ to Windows::ToolHelper.
194
+
195
+ = 0.8.5 - 28-May-2008
196
+ * Added more pipe related error codes to the Windows::Error module.
197
+ * Added the FlushFileBuffers function to the Windows::File module.
198
+
199
+ = 0.8.4 - 18-May-2008
200
+ * Added the Windows::NTFS::File module.
201
+ * Added several IOCTL macro methods to the Windows::DeviceIO module.
202
+ * Wrapped the GetLayeredWindowAttributes function in the Windows::Window
203
+ module since it is only supported on Windows XP or later.
204
+ * Fixed the CreateThread prototype with regards to callback support.
205
+
206
+ = 0.8.3 - 26-Apr-2008
207
+ * Now requires windows-api 0.2.3 or later to take advantage of the
208
+ improvements in auto constant generation.
209
+ * Fixed a scope resolution bug in the custom memcpy method in the
210
+ Windows::MSVCRT::Buffer module.
211
+ * Added some more Windows::MSVCRT::String functions.
212
+ * Added the FSCTL_ENUM_USN_DATA macro method in Windows::DeviceIO.
213
+ * Some modules were refactored to take advantage of the improvements in
214
+ windows-api 0.2.3. This resulted in a net reduction of code.
215
+
216
+ = 0.8.2 - 17-Apr-2008
217
+ * Most of the MSVCRT modules now use the MSVCRT_DLL from the Windows::API
218
+ library. This helps resolve an obscure bug where state information from a
219
+ statically linked runtime DLL is local to that runtime and not shared with
220
+ the Ruby process.
221
+ * Now requires windows-api 0.2.2 or later.
222
+ * Added more MSVCRT tests.
223
+
224
+ = 0.8.1 - 27-Mar-2008
225
+ * Added waitable timer functions to the Windows::Synchronize module.
226
+ * Fixed params 3 and 4 in the CreateProcess function.
227
+
228
+ = 0.8.0 - 20-Jan-2008
229
+ * Added the Windows::COM::Automation module.
230
+ * Moved Windows::NetworkManagement to Windows::Network::Management.
231
+ * Added the Windows::Network::SNMP module.
232
+ * Added a MAXPATH constant to Windows::Limits, which is variable depending
233
+ on whether or not $KCODE is set to UTF8.
234
+ * Added some macro methods to Windows::Error.
235
+ * Added many more methods to Windows::COM.
236
+ * Fixed the prototype for the SetConsoleCtrlHandler in the Windows::Console
237
+ module, and added the CTRL_CLOSE_EVENT constant.
238
+
239
+ = 0.7.4 - 11-Dec-2007
240
+ * Added several more functions to Windows::Window.
241
+ * Added many more constants to the Windows::NetworkManagement module.
242
+ * Added several more functions and a few constants to the Windows::Process
243
+ module.
244
+ * The multi_to_wide and wide_to_multi methods in Windows::Unicode will now
245
+ return nil if you pass a nil argument. Also, they will raise a TypeError
246
+ if you pass a non-nil, non-string object.
247
+
248
+ = 0.7.3 - 23-Nov-2007
249
+ * Several thread related methods were moved out of the Windows::Process
250
+ module and into the Windows::Thread module.
251
+ * Added critical section methods to the Windows::Synchronize module.
252
+ * Added many more constants and methods to the Windows::Shell module.
253
+ * Created the Windows::Thread module.
254
+ * Fixed the PathCreateFromUrl return type in the Windows::Path module.
255
+ * Added the strncpy and wcsncpy functions to the Windows::MSVCRT::String
256
+ module.
257
+ * Added several token related methods and constants to the Windows::Security
258
+ module.
259
+ * The multi_to_wide and wide_to_multi methods were refactored slightly. Both
260
+ now only use MSVCRT string functions internally in case any Ruby String
261
+ methods are redefined.
262
+
263
+ = 0.7.2 - 15-Oct-2007
264
+ * Added the Windows::MSVCRT::Time module.
265
+ * Added the Windows::MSVCRT::Directory module.
266
+ * Added some SID related security constants to the Windows::Security module.
267
+ * Added more constants and the HasOverlappedIoCompleted macro to the
268
+ Windows::Synchronize module.
269
+ * Added some 'find' methods to the Windows::File module.
270
+ * Some prototype fixes for the 'Virtual' functions in Windows::Memory.
271
+
272
+ = 0.7.1 - 21-Sep-2007
273
+ * Added USN (changejournal) macros to Windows::DeviceIO.
274
+ * Added the Heap functions to Windows::Memory.
275
+ * Added the Windows::Time module.
276
+ * Added a Rakefile with tasks for installation and testing.
277
+ * Added and refactored some tests.
278
+
279
+ = 0.7.0 - 9-Aug-2007
280
+ * All modules now use the windows-api library behind the scenes.
281
+ * Added the Windows::NIO module. This contains native Windows IO functions.
282
+ * Added several more functions to the Windows::GDI::PaintDrawing module.
283
+ * Fixed the prototype for the GetWindowsDirectory function in the
284
+ Windows::SystemInfo module.
285
+
286
+ = 0.6.6 - 3-May-2007
287
+ * Added the Windows::MSVCRT::IO module.
288
+ * Removed the SetConsoleCommandHistoryMode method from the Windows::Console
289
+ module. This was a preliminary function for Vista only, and it has since
290
+ been removed. Thanks go to Drew Colthorp for the spot.
291
+
292
+ = 0.6.5 - 28-Feb-2007
293
+ * Important bug fixes for the Windows::Directory, Windows::Memory,
294
+ Windows::Synchronize and Windows::Volume modules. These were either fixes
295
+ for the function declaration or the wrapper method. Thanks go to Katsuyuki
296
+ Miyamuko for the spot and the patches.
297
+
298
+ = 0.6.4 - 28-Feb-2007
299
+ * Add more string functions to the Windows::MSVCRT::String module.
300
+ * Minor enhancement to the multi_to_wide and wide_to_multi helper methods in
301
+ the Windows::Unicode module. You can now pass an explicit encoding as an
302
+ optional second argument.
303
+ * Added several more methods to the Windows::National module.
304
+ * Finer grained method wrapping/checking for the Windows::Volume module.
305
+ Thanks go to Dave Rose for the spot.
306
+
307
+ = 0.6.3 - 2-Feb-2007
308
+ * Fixed the DLL for SetLastErrorEx in the Windows::Error module.
309
+ * Fixed an unitialized constant bug in the Windows::DeviceIO module.
310
+ * Fixed a bug in the NetWkstaSetInfo() method, from the
311
+ Windows::NetworkManagement module. Thanks go to Richard (???) for the spot.
312
+ * Added more security related methods and constants to the Windows::Security
313
+ module.
314
+ * Fixed a bug in the GetComputerName method in the Windows::SystemInfo module.
315
+ Thanks go to Russell Christopher for the spot and the fix.
316
+ * Changed method prototype for GetUserName and GetUserNameEx in the
317
+ Windows::SystemInfo module.
318
+ * Added the PIPE_UNLIMITED_INSTANCES constant to the Windows::Pipe module.
319
+ * Altered the prototype for the ConvertSidToStringSid() and
320
+ ConvertStringSidToSid() methods from the Windows::Security module.
321
+
322
+ = 0.6.2 - 21-Dec-2006
323
+ * Added file related constants from sys/stat.h to the Windows::MSVCRT::File
324
+ module.
325
+ * Added the open_osfhandle method to the Windows::Handle module.
326
+ * Changed the signatures for the VirtualFree and VirtualFreeEx functions in
327
+ the Windows::Memory module.
328
+ * Added the Windows::GDI::Bitmap, Windows::GDI::DeviceContext and
329
+ Windows::GDI::PaintingDrawing modules.
330
+
331
+ = 0.6.1 - 22-Nov-2006
332
+ * Changed the signature for VirtualAlloc and VirtualAllocEx in the
333
+ Windows::Memory module (long instead of pointer for first argument).
334
+ * Added the get_osfhandle method to the Windows::Handle module.
335
+
336
+ = 0.6.0 - 5-Nov-2006
337
+ * Added the Windows::Volume module.
338
+
339
+ = 0.5.6 - 22-Oct-2006
340
+ * Modified the memcpy method in Windows::MSVCRT::Buffer to do the right
341
+ thing based on the type of the parameters, as well as automatically
342
+ set the default size to the size of the source being copied.
343
+
344
+ = 0.5.5 - 11-Oct-2006
345
+ * Prototype modification for VirtualQuery and VirtualQueryEx in the
346
+ Windows::Memory module.
347
+
348
+ = 0.5.4 - 8-Sep-2006
349
+ * Added the Windows::NetworkManagement module, which contains methods like
350
+ NetUserAdd(), etc.
351
+ * Fixed bugs in SetLastError and SetLastErrorEx declarations.
352
+ * Finer grained method wrapping/checking for the Windows::Library module.
353
+ * Finer grained method wrapping/checking for the Windows::Console module.
354
+ * Added a test case for the Windows::Library module.
355
+ * Added the LOCKFILE_EXCLUSIVE_LOCK and LOCKFILE_FAIL_IMMEDIATELY constants
356
+ to the Windows::File module.
357
+
358
+ = 0.5.3 - 10-Aug-2006
359
+ * Added wide character functions to the EventLog module.
360
+ * Added a test suite for the EventLog module.
361
+ * Fixed method wrapper for MapViewOfFileEx.
362
+ * Finer grained method wrapping/checking for the Windows::Registry module (the
363
+ RegSaveKeyEx might not be defined).
364
+
365
+ = 0.5.2 - 29-Jul-2006
366
+ * Prototype fixes/changes for CreateProcess, GlobalLock, GlobalMemoryStatusEx,
367
+ and CreateFileMapping.
368
+ * Finer grained method wrapping/checking for the Windows::Process module (only
369
+ two methods might not be defined).
370
+ * Added method wrappers for the Handle constants.
371
+ * Added mmap related methods and constants.
372
+ * Added more test cases.
373
+ * Added wide character methods to the Windows::Directory class.
374
+ * Added wide character helper methods.
375
+ * Added a few more methods to MSVCRT::String.
376
+
377
+ = 0.5.1 - 26-May-2006
378
+ * Minor updates and fixes for the Unicode and DeviceIO modules.
379
+ * Added some wide character support, based on $KCODE values (which should
380
+ not be used at this time).
381
+
382
+ = 0.5.0 - 23-May-2006
383
+ * Added the Registry module
384
+ * Added the EventLog module
385
+ * Added the National module
386
+ * Added the SystemInfo module
387
+
388
+ = 0.4.0 - 7-May-2006
389
+ * Bug fix for the WaitForMultipleObjects method in synchronize.rb
390
+ * Added the Window module (just a few constants for now)
391
+ * Added the Console module (AttachConsole, etc)
392
+ * Added the Library module (LoadLibrary, etc)
393
+ * Added the Directory module (CreateDirectory, etc)
394
+ * Added the Shell module (some constants, a few methods for now)
395
+ * Added the Unicode module (WideCharToMultiByte, etc)
396
+ * Added process creation, priority and startf flags to the Process module
397
+
398
+ = 0.3.0 - 22-Apr-2006
399
+ * Added the Limits module.
400
+ * Added the Security module.
401
+ * Fixed a signature bug in the MSVCRT/Buffer module.
402
+
403
+ = 0.2.0 - 13-Apr-2006
404
+ * Added the FileSystem module.
405
+ * Fixed signature and dll mistakes in the File module.
406
+
407
+ = 0.1.0 - 4-Apr-2006
408
+ * Initial release