M
MrBanabas
Hi,
Im using a German Microsoft XP and I am trying to get access to the
windows event log.
Unfortunelty, Im getting the following error stack:
C:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.1/lib/windows/api.rb:
338:in `initialize': Attempt to format message failed (error = '1815')
(Win32::API::Error)
from C:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.1/lib/windows/
api.rb:338:in `new'
from C:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.1/lib/windows/
api.rb:338:in `initialize'
from C:/ruby/lib/ruby/gems/1.8/gems/windows-pr-1.0.5/lib/windows/
eventlog.rb:39:in `new'
from C:/ruby/lib/ruby/gems/1.8/gems/windows-pr-1.0.5/lib/windows/
eventlog.rb:39
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from C:/ruby/lib/ruby/gems/1.8/gems/win32-eventlog-0.5.2/lib/win32/
eventlog.rb:2
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`gem_original_require'
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`require'
from example_write.rb:27
And that s happening when the following code line is executed in
eventlog.rb
API.new('EvtArchiveExportedLog', 'LPLL', 'B', 'wevtapi')
Any idea?
Thanks a lot in advance...
Volker
Im using a German Microsoft XP and I am trying to get access to the
windows event log.
Unfortunelty, Im getting the following error stack:
C:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.1/lib/windows/api.rb:
338:in `initialize': Attempt to format message failed (error = '1815')
(Win32::API::Error)
from C:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.1/lib/windows/
api.rb:338:in `new'
from C:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.1/lib/windows/
api.rb:338:in `initialize'
from C:/ruby/lib/ruby/gems/1.8/gems/windows-pr-1.0.5/lib/windows/
eventlog.rb:39:in `new'
from C:/ruby/lib/ruby/gems/1.8/gems/windows-pr-1.0.5/lib/windows/
eventlog.rb:39
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from C:/ruby/lib/ruby/gems/1.8/gems/win32-eventlog-0.5.2/lib/win32/
eventlog.rb:2
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`gem_original_require'
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`require'
from example_write.rb:27
And that s happening when the following code line is executed in
eventlog.rb
API.new('EvtArchiveExportedLog', 'LPLL', 'B', 'wevtapi')
Any idea?
Thanks a lot in advance...
Volker