in reply to Re: Cross-Compile Perl Modules for Win x64
in thread Cross-Compile Perl Modules for Win x64

Does anybody know a way i can get Perl to read the Total/In Use RAM Counters on a 64Bit Windows Server 2k3 with 8Gb+ Ram???

If you know of a Windows API function that returns the values you want, then you could access that function from perl using XS or Inline::C.
Obviously, on a 32-bit perl, such an XSub could not return a 'uv' (long) value, as 'uvs' aren't guaranteed to be large enough to store the value being returned. But you could have the XSub return the value to perl as an 'nv' (double) or a 'pv' (string).
On your 64-bit perl, the XSub could simply return the value as a 'uv' (since it uses 64-bit uvs).

I would expect that such a Windows API function does exist ... presumably the modules in question are accessing that Windows API function with Win32::API. Do you know which Windows API function(s) you need to access ?

Cheers,
Rob
  • Comment on Re^2: Cross-Compile Perl Modules for Win x64

Replies are listed 'Best First'.
Re^3: Cross-Compile Perl Modules for Win x64
by fatmcgav (Novice) on Jan 02, 2009 at 08:54 UTC
    Rob,

    I was trying to use win32::SystemInfo, so dont know if you can pick the info out of that???

    Source code is here: http://search.cpan.org/src/CJOHNSTON/Win32-SystemInfo-0.10/SystemInfo.pm

    Any ideas?

    Cheers
    Gavin