pepe2000
asked on
System monitor
Hi.
I have to make a program to monitor in real-time the resources of memory, disk, processors,...
I have to know which APIs do i have to use and if they work in win32.
Thanks
I have to make a program to monitor in real-time the resources of memory, disk, processors,...
I have to know which APIs do i have to use and if they work in win32.
Thanks
for memory : ( in windows unit ) :
GlobalMemoryStatus(var lpBuffer: TMemoryStatus); stdcall;
for disk : ( in sysutils unit ) :
disksize & diskfree
for processor : ( in windows Unit ):
getsysteminfo()
although i have never used them ( just use DiskFree )
best regards
hamed
GlobalMemoryStatus(var lpBuffer: TMemoryStatus); stdcall;
for disk : ( in sysutils unit ) :
disksize & diskfree
for processor : ( in windows Unit ):
getsysteminfo()
although i have never used them ( just use DiskFree )
best regards
hamed
i think if u search windows Unit u can find better func. or proc.
u can also see win32.hlp for find a good API. ( it was recommended by inthe and i saw it in API problem - 3 q after ur q )
ASKER
Can i make a real time analysis drawing changes second by second with that?
does it work in win32?
How do i call an api function in Delphi? i know how to do it in VB
does it work in win32?
How do i call an api function in Delphi? i know how to do it in VB
windows API func. and proc. are maped to Delphi by windows unit. ( see the source in Source folder ) if u type 'windows.' a popup menu opens that shows u all of the func. that API has.
if u see windows unit u can see that all of the functions are derived from dlls that are windows API.
for refreshing ur monitor use a Ttimer ( in system folder ) and set the interval ( in ms ) that u want then duble click on the Timer component u can set the ontimer procedure and in that proc. u can write ur monitor code.
the timer is used in exact form that u use in VB.
best regards
hamed
if u see windows unit u can see that all of the functions are derived from dlls that are windows API.
for refreshing ur monitor use a Ttimer ( in system folder ) and set the interval ( in ms ) that u want then duble click on the Timer component u can set the ontimer procedure and in that proc. u can write ur monitor code.
the timer is used in exact form that u use in VB.
best regards
hamed
u must refresh the page second by second.the timing is prepared by timer.
ASKER
the only new thing i learned from this question is that i can call windows api with 'windows.'
i dont think it worth 263 points so maybe you can help me with the functions that i can use to monitor the system, i want to know the parameters, and then i accept the answer.
Thanks
i dont think it worth 263 points so maybe you can help me with the functions that i can use to monitor the system, i want to know the parameters, and then i accept the answer.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Im very sorry hamed!
Im from Argentina and my english is not so full of words to tell what i feel
Anyway i didnt want to give the feeling that you felt about me.
This site helps me a lot and i only have good words to all the users that helps to the others
Thanks again
by the way, My name is Ariel and im 22 years old programmer.
I prefer to use Visual Basic but i have to do this a homework in Delphi for the University.
Im from Argentina and my english is not so full of words to tell what i feel
Anyway i didnt want to give the feeling that you felt about me.
This site helps me a lot and i only have good words to all the users that helps to the others
Thanks again
by the way, My name is Ariel and im 22 years old programmer.
I prefer to use Visual Basic but i have to do this a homework in Delphi for the University.
dear Arial,
no worries,Now I feel we can be the best friends in Ex-Ex site.I am glad that my comment could help u.
is it enouph for ur homework?
anyway, I am Iranian and 22 years old ( exactly 22.4 ), I am a senior student of Electrical Control Eng. I passed my courses nearly and now i am working on my BS project ('Design a PC-based DCS Automation System for a Textile Factory').
I started windows programming by VB3 at win16 but when I saw Delphi I fell in love with Delphi ;-) I am pleased to be friend with u.
thanks for ur Answer point , but i think it is much more than my comment value.ur kindly replying was enouph and more interesting for me;-).I am sure that now we are friends. I am worry about ur future q, if u have not enouph q point for askintg q ,send ur question(q) to me , i will ask ur q instead of u ;-)
my email is :
mohsenianrad@scribe.com
&
h_mohsenian@yahoo.com ( it is better )
tell me more about urself, and ur university ( is this homework for university course ?)
best regards
hamed;-)
no worries,Now I feel we can be the best friends in Ex-Ex site.I am glad that my comment could help u.
is it enouph for ur homework?
anyway, I am Iranian and 22 years old ( exactly 22.4 ), I am a senior student of Electrical Control Eng. I passed my courses nearly and now i am working on my BS project ('Design a PC-based DCS Automation System for a Textile Factory').
I started windows programming by VB3 at win16 but when I saw Delphi I fell in love with Delphi ;-) I am pleased to be friend with u.
thanks for ur Answer point , but i think it is much more than my comment value.ur kindly replying was enouph and more interesting for me;-).I am sure that now we are friends. I am worry about ur future q, if u have not enouph q point for askintg q ,send ur question(q) to me , i will ask ur q instead of u ;-)
my email is :
mohsenianrad@scribe.com
&
h_mohsenian@yahoo.com ( it is better )
tell me more about urself, and ur university ( is this homework for university course ?)
best regards
hamed;-)
Ariel , are you here!
GlobalMemoryStatus(var lpBuffer: TMemoryStatus); stdcall;
for disk : ( in sysutils unit ) :
disksize & diskfree
for processor : ( in windows Unit ):
getsysteminfo()
although i have never used them ( just use DiskFree )
best regards
hamed