de_ep
asked on
System resources ...
how can i display 'physical memory available' and 'system resources', like in 'notepad', menu help -> about notepad ?
i've tried to use winapi, GlobalMemoryStatus() but the return value is always wrong, is there any others function that i can use for this task ? or maybe any suggestion in using GlobalMemoryStatus() ? ( maybe i'm using GlobalMemoryStatus() in the wrong way )
thank's ;-)
i've tried to use winapi, GlobalMemoryStatus() but the return value is always wrong, is there any others function that i can use for this task ? or maybe any suggestion in using GlobalMemoryStatus() ? ( maybe i'm using GlobalMemoryStatus() in the wrong way )
thank's ;-)
GetFreeSystemResources(GFS R_SYSTEMRE SOURCES))
How about using one of the following available from http://torry.rimini.com under SYSTEM COMPONENTS #1 and #2 (AND I SUPPOSE THERE'S EVEN MORE UNDER #3 and #4)
TSysInfo V1.1
TxSysInfo v1.00
ESysInfo v1.5
InoSystem Info v1.0
System Info v1.1
One of them WILL work ...
TSysInfo V1.1
TxSysInfo v1.00
ESysInfo v1.5
InoSystem Info v1.0
System Info v1.1
One of them WILL work ...
ASKER
thank's heapster, but that function you proposed is obsolete, now it was change by GlobalMemoryStatus.
is there any other way than using a component, because i need my program to be small ?
is there any other way than using a component, because i need my program to be small ?
ASKER
Adjusted points to 30
Is it for NT or Win95?
ASKER
it is for Win95, but i if you have any idea in WinNT it's okay too. i'm now in a project of making a 'telephone billing system', right now i made the Win95 version, and my next project is WinNT version. actually my problem is everytime i call GlobalMemoryStatus, the value return for dwMemoryLoad is always 100%. it is wrong, am i right ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi, well did it worked?
ASKER
well, thank's ronit ( sorry to take you so long to wait my evaluation, my internet connection had been down for several days ).
The first code i've used is like the code that you proposed to me but every time i call the function, its always return 100 for the dwMemoryLoad. what i need to know is how much is my computer 'System resource' like if you go to notepad and choose menu help and about notepad, you can find how much is your computer system resource.
The first code i've used is like the code that you proposed to me but every time i call the function, its always return 100 for the dwMemoryLoad. what i need to know is how much is my computer 'System resource' like if you go to notepad and choose menu help and about notepad, you can find how much is your computer system resource.
Did you do exactly what I have posted?
I have tested it on NT and it works fine, just like the notepad.
dwTotalPhys tells you how much physical memory you have in your computer.
dwMemoryLoad Specifies a number between 0 and 100 that gives a general idea of current memory utilization, in which 0 indicates no memory use and 100 indicates full memory use, so it's not what you need. for more information see WinApi help.
I have tested it on NT and it works fine, just like the notepad.
dwTotalPhys tells you how much physical memory you have in your computer.
dwMemoryLoad Specifies a number between 0 and 100 that gives a general idea of current memory utilization, in which 0 indicates no memory use and 100 indicates full memory use, so it's not what you need. for more information see WinApi help.
Did you do exactly what I have posted?
I have tested it on NT and it works fine, just like the notepad.
dwTotalPhys tells you how much physical memory you have in your computer.
dwMemoryLoad Specifies a number between 0 and 100 that gives a general idea of current memory utilization, in which 0 indicates no memory use and 100 indicates full memory use, so it's not what you need. for more information see WinApi help.
I have tested it on NT and it works fine, just like the notepad.
dwTotalPhys tells you how much physical memory you have in your computer.
dwMemoryLoad Specifies a number between 0 and 100 that gives a general idea of current memory utilization, in which 0 indicates no memory use and 100 indicates full memory use, so it's not what you need. for more information see WinApi help.
ASKER
thank's a lot ronit, i've tried exactly like that you have posted, maybe it's not what i need, by the way thank's a lot you have tried to help me ;-).
Bought This Question.
ASKER