Failing to require win32/eventlog

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:innew’
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:innew’
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:inrequire’
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:inrequire’
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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs