I just installed Strawberry Perl 64 bit on a new laptop with an i3 as the processor. All is dandy except Win32::API cannot be compiled.

Although 32 bit applications run fine on such a computer (altough probably emulated), I can understand you cannot call 32 bit XS modules directly from within a 64 bit app...

But that also implies that the lower level Windows API functions (at least the 32 bit versions), are not available from within Perl.

Is there a workaround, like a "thunking layer", which was a solution back in the time when trying to run 16 bit applications on 32 bits Windows? (update: probably not)

Or is there a module like Win32::API but for 64 bits — and if so, how compatible is it, on the source level, for calling API functions? I can't seem to find anything... Is anything in the works?

update There was some discussion about starting up a porting project on the now defunct use.perl.org, in a post of almost 2 years ago. My, my, how time flies.


In reply to Win32::API on 64 bits Windows Perl? by bart

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.