Failing to require win32/eventlog

Discussion in 'Ruby' started by MrBanabas@googlemail.com, Sep 17, 2009.

  1. Guest

    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
     
    , Sep 17, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Berger, Daniel

    [ANN] win32-eventlog 0.1.0

    Berger, Daniel, Oct 15, 2003, in forum: Ruby
    Replies:
    1
    Views:
    90
    James Britt
    Oct 15, 2003
  2. Daniel Berger

    [ANN] win32-eventlog 0.2.0

    Daniel Berger, Feb 2, 2004, in forum: Ruby
    Replies:
    0
    Views:
    85
    Daniel Berger
    Feb 2, 2004
  3. Joey Gibson

    Win32-EventLog problem

    Joey Gibson, Oct 13, 2004, in forum: Ruby
    Replies:
    2
    Views:
    104
    Joey Gibson
    Oct 14, 2004
  4. Joey Gibson
    Replies:
    7
    Views:
    156
    Joey Gibson
    Oct 20, 2004
  5. Daniel Berger

    [ANN] win32-eventlog 0.3.0

    Daniel Berger, Oct 30, 2004, in forum: Ruby
    Replies:
    3
    Views:
    93
    Martin DeMello
    Nov 3, 2004
Loading...

Share This Page