And?

There is an internal function called OpenBackupEventLog(), which is considerably different to the OPs "WIN32::EventLog::OpenBackup function", that isn't directly exposed through the API. But rather only through the new() method, where it is invoked if the format of one of the arguments meets certain criteria.

It is also very unclear, given the confused phraseology:

When I attempt to open one of the newer event logs that where backed up using the WIN32::EventLog::OpenBackup function, it fails with an Unknown error.

quite how the OP is creating the backup that he is subsequently failing to open. Does that sentence mean he was trying to use that non-existant function to perform the backup? Or the the subsequent open?

A simple code sample shows that Win32::EventLog can backup and subsequently re-open an event log just fine under Vista:

[0] Perl> use Win32::EventLog;; [0] Perl> print $e = Win32::EventLog->new("System", $ENV{ComputerName} +);; Win32::EventLog=HASH(0x3a70d90) [0] Perl> $e->Backup( 'c:\\test\\System.evt' );; [0] Perl> print $f = Win32::EventLog->new('c:\\test\\System.evt', $ENV +{ComputerName});; Win32::EventLog=HASH(0x3b4b500) [0] Perl>

Note: The [0] would be non-zero if any of those calls had failed.

OP: More information please!


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"

In reply to Re^3: How to access Windows Vista/Server 2008 eventlogs(.evtx vs. .evt) by BrowserUk
in thread How to access Windows Vista/Server 2008 eventlogs(.evtx vs. .evt) by pbolduc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.