Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9080

Re: PB12.6 64-bit issue: GlobalMemoryStatus

$
0
0

Hi Larry

 

you can modify your object by replacing the external function so:

 

 

 

GlobalMemoryStatusEx local exernal function definition is:

 

 

 

Subroutine GlobalMemoryStatus (ref os_memorystatus memorystatus ) Library "KERNEL32.DLL" alias for "GlobalMemoryStatusEx"

 

 

 

the new  os_memorystatus definition is:

 

 

 

type os_memorystatus from structure

 

    unsignedlong ul_length

 

    unsignedlong ul_memoryload

 

    longlong ll_totalphys

 

    longlong ll_availphys

 

    longlong ll_totalpagefile

 

    longlong ll_availpagefile

 

    longlong ll_totalvirtual

 

    longlong ll_availvirtual

 

    longlong ll_AvailExtendedVirtual

 

end type

 

 

 

before calling the api you ave to set

 

lstr_memory.ul_length = 64 instead of 32

 

 

 

hope this helps

 

Alberto


Viewing all articles
Browse latest Browse all 9080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>