- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can anyone provide a sample for coding GlobalMemoryStatusEx? I was able to use the WindowAPI GlobalMemoryStatus which is a subroutine but not GlobalMemoryStatusEx which is a function.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve,
You are hitting the nail right on the head! I had difficulty converting two int(4) arrays into a single int(8).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can also use a union of two integer(4)'s with an integer(8). For legacy reasons many of the Windows functions require as an argument the address of a struct with two DWORDs. I prefer to union that structure with an integer(8). Just programming style.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sure, if you're coding your own structure, but the Win32 structure isn't defined that way in the module.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page