Get amount of free memory
-
The task manager shows the amount of physical memory: Total Cache Available Free I would like to know how to get and/or calculate the amount of free memory, since this is not the same as reported by GlobalMemoryStatus(Ex). Regards
-
The task manager shows the amount of physical memory: Total Cache Available Free I would like to know how to get and/or calculate the amount of free memory, since this is not the same as reported by GlobalMemoryStatus(Ex). Regards
See here. You'll need to change the values for object, instance, and counter.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
-
The task manager shows the amount of physical memory: Total Cache Available Free I would like to know how to get and/or calculate the amount of free memory, since this is not the same as reported by GlobalMemoryStatus(Ex). Regards
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
Thanks, but I already know about that: ...since this is not the same as reported by GlobalMemoryStatus(Ex).
-
See here. You'll need to change the values for object, instance, and counter.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
OK. Thanks. So far so good, but the function PdhAddCounter needs localized strings, thus in Germany you need german strings, in france you need french strings, etc. Damn, I'm not that language professional and the recently added function PdhAddEnglishCounter is not available on XP systems... (:mad: I love those guys in Redmond...). Is there a way to find out the localized corresponding language strings?
-
OK. Thanks. So far so good, but the function PdhAddCounter needs localized strings, thus in Germany you need german strings, in france you need french strings, etc. Damn, I'm not that language professional and the recently added function PdhAddEnglishCounter is not available on XP systems... (:mad: I love those guys in Redmond...). Is there a way to find out the localized corresponding language strings?
If you know the index equivalent of the string you are interested in, a call to
PdhLookupPerfNameByIndex()
would help. See here and here for more."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
-
If you know the index equivalent of the string you are interested in, a call to
PdhLookupPerfNameByIndex()
would help. See here and here for more."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
Thank you for this! :laugh: AddEnglish..., what a joke! Live's getting easier each day!