I'm trying to write a script that traverses our users' Windows Profiles, looking for large .pst files (Outlook's data store, and it tends to become unreliable past about 1GB of data). Each of the profiles is accessible only by its owner, so a simple File::Find-style approach won't work (AFAICT). I know that backup software can get access to the files via Windows's File Backup API (see here), so I tried looking for a way to create a backup-type program in perl. The best thing I've found so far is here (example 3.8), but that uses Win32::API::Prototype which I can't find via Activestate 5.8.6.

I'm guessing the BackupRead function is available in the kernel32.dll library file, so can I link to it another way? (I'm guessing XS-style trickery)
I'm aware of the (potential) security risks with creating a script with the express intention of bypassing the ACLs, but it's not a problem in this case.


davis
It wasn't easy to juggle a pregnant wife and a troubled child, but somehow I managed to fit in eight hours of TV a day.

In reply to Getting access to the Win32 BackupRead API function by davis

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.