windows-pr 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/lib/windows/eventlog.rb +41 -0
- data/lib/windows/filesystem.rb +2 -2
- data/windows-pr.gemspec +1 -1
- metadata +2 -2
data/CHANGES
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
= 0.9.3 - 12-Sep-2008
|
2
|
+
* Added event logging functions for Windows Vista and later to the
|
3
|
+
Windows::EventLog module.
|
4
|
+
|
1
5
|
= 0.9.2 - 5-Sep-2008
|
2
6
|
* Added some WoW64 functions to Windows::File and Windows::SystemInfo.
|
3
7
|
* All modules now rescue Windows::API::Error for failed function loads.
|
data/lib/windows/eventlog.rb
CHANGED
@@ -34,5 +34,46 @@ module Windows
|
|
34
34
|
API.new('ReadEventLog', 'LLLPLPP', 'B', 'advapi32')
|
35
35
|
API.new('RegisterEventSource', 'SS', 'L', 'advapi32')
|
36
36
|
API.new('ReportEvent', 'LIILPILPP', 'B', 'advapi32')
|
37
|
+
|
38
|
+
# Windows Vista or later
|
39
|
+
begin
|
40
|
+
API.new('EvtArchiveExportedLog', 'LPLL', 'B', 'wevtapi')
|
41
|
+
API.new('EvtCancel', 'L', 'B', 'wevtapi')
|
42
|
+
API.new('EvtClearLog', 'LPPL', 'B', 'wevtapi')
|
43
|
+
API.new('EvtClose', 'L', 'B', 'wevtapi')
|
44
|
+
API.new('EvtCreateBookmark', 'L', 'L', 'wevtapi')
|
45
|
+
API.new('EvtCreateRenderContext', 'LPL', 'L', 'wevtapi')
|
46
|
+
API.new('EvtExportLog', 'LPPPL', 'B', 'wevtapi')
|
47
|
+
API.new('EvtFormatMessage', 'LLLLPLLPP', 'B', 'wevtapi')
|
48
|
+
API.new('EvtGetChannelConfigProperty', 'LLLLPP', 'B', 'wevtapi')
|
49
|
+
API.new('EvtGetEventInfo', 'LLLPP', 'B', 'wevtapi')
|
50
|
+
API.new('EvtGetEventMetadataProperty', 'LLLLPP', 'B', 'wevtapi')
|
51
|
+
API.new('EvtGetExtendedStatus', 'LPP', 'B', 'wevtapi')
|
52
|
+
API.new('EvtGetLogInfo', 'LLLPP', 'B', 'wevtapi')
|
53
|
+
API.new('EvtGetObjectArrayProperty', 'LLLLLPP', 'B', 'wevtapi')
|
54
|
+
API.new('EvtGetObjectArraySize', 'LP', 'B', 'wevtapi')
|
55
|
+
API.new('EvtGetPublisherMetadataProperty', 'LLLLPP', 'B', 'wevtapi')
|
56
|
+
API.new('EvtGetQueryInfo', 'LLLPP', 'B', 'wevtapi')
|
57
|
+
API.new('EvtNext', 'LLPLLP', 'B', 'wevtapi')
|
58
|
+
API.new('EvtNextChannelPath', 'LLPP', 'B', 'wevtapi')
|
59
|
+
API.new('EvtNextEventMetadata', 'LL', 'L', 'wevtapi')
|
60
|
+
API.new('EvtNextPublisherId', 'LLPP', 'B', 'wevtapi')
|
61
|
+
API.new('EvtOpenChannelConfig', 'LPL', 'L', 'wevtapi')
|
62
|
+
API.new('EvtOpenChannelEnum', 'LL', 'L', 'wevtapi')
|
63
|
+
API.new('EvtOpenEventMetadataEnum', 'LL', 'L', 'wevtapi')
|
64
|
+
API.new('EvtOpenLog', 'LPL', 'L', 'wevtapi')
|
65
|
+
API.new('EvtOpenPublisherEnum', 'LL', 'L', 'wevtapi')
|
66
|
+
API.new('EvtOpenPublisherMetadata', 'LPPLL', 'L', 'wevtapi')
|
67
|
+
API.new('EvtOpenSession', 'LLLL', 'L', 'wevtapi')
|
68
|
+
API.new('EvtQuery', 'LPPL', 'L', 'wevtapi')
|
69
|
+
API.new('EvtRender', 'LLLLPPP', 'B', 'wevtapi')
|
70
|
+
API.new('EvtSaveChannelConfig', 'LL', 'B', 'wevtapi')
|
71
|
+
API.new('EvtSeek', 'LLLLL', 'B', 'wevtapi')
|
72
|
+
API.new('EvtSetChannelConfigProperty', 'LLLP', 'B', 'wevtapi')
|
73
|
+
API.new('EvtSubscribe', 'LLPPLPKL', 'L', 'wevtapi')
|
74
|
+
API.new('EvtUpdateBookmark', 'LL', 'B', 'wevtapi')
|
75
|
+
rescue Windows::API::Error
|
76
|
+
# Do nothing. Not supported.
|
77
|
+
end
|
37
78
|
end
|
38
79
|
end
|
data/lib/windows/filesystem.rb
CHANGED
data/windows-pr.gemspec
CHANGED
@@ -2,7 +2,7 @@ require "rubygems"
|
|
2
2
|
|
3
3
|
spec = Gem::Specification.new do |gem|
|
4
4
|
gem.name = "windows-pr"
|
5
|
-
gem.version = "0.9.
|
5
|
+
gem.version = "0.9.3"
|
6
6
|
gem.authors = ["Daniel J. Berger", "Park Heesob"]
|
7
7
|
gem.email = "djberg96@gmail.com"
|
8
8
|
gem.homepage = "http://www.rubyforge.org/projects/win32utils"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: windows-pr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2008-09-
|
13
|
+
date: 2008-09-12 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|