Failing to require win32/eventlog

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top