Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pure FoxPro call to GlobalMemoryStatus
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00340329
Message ID:
00340343
Views:
24
>Does anyone know how to make a pure FoxPro call to the GlobalMemoryStatus() function in Win32?
>
>It requires a structure, and I think FoxPro can do it, but I'm not sure I understand how to create a structure in FoxPro.
DECLARE GlobalMemoryStatus IN Kernel32 STRING @ lpBuffer
cBuffer = REPLICATE(CHR(0),32)
=GlobalMemoryStatus(@cBuffer)

*  cBuffer on return contains the 8 4 byte values;  you can convert them
*  into VFP Numeric values from there using the UDFs in CLSHEAP for converting
*  DWORDs to VFP numerics.  CLSHEAP can be downloaded here on UT.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform