Page 1 of 1

Posted: Sat Jul 20, 2002 6:40 am
by BackupUser
Restored from previous forum. Originally posted by scurrier.

Can anyone help with getting this API to work
this is what i have and it diesStructure MS
dwLength.l
dwMemoryLoad.l
dwTotalPhys.l
dwAvailPhys.l
dwTotalPageFile.l
dwAvailPageFile.l
dwTotalVirtual.l
dwAvailVirtual.l
EndStructure


GlobalMemoryStatus_(MS)



Thanks
Sean

Posted: Sat Jul 20, 2002 9:00 am
by BackupUser
Restored from previous forum. Originally posted by Pupil.

Try this:

Code: Select all

MS.MEMORYSTATUS

MS\dwLength = SizeOf(MEMORYSTATUS)

GlobalMemoryStatus_(@MS)

Debug "MemoryLoad="+Str(MS\dwMemoryLoad)
Debug "TotalPhys="+Str(MS\dwTotalPhys)
...

Posted: Sat Jul 20, 2002 2:41 pm
by BackupUser
Restored from previous forum. Originally posted by scurrier.

Thanks

Posted: Sat Jul 20, 2002 2:46 pm
by BackupUser
Restored from previous forum. Originally posted by scurrier.

How does this work with GlobalMemoryStatusEX_ ?
where do you put the structure or is it asumed?


Thanks
Sean

Posted: Sat Jul 20, 2002 6:14 pm
by BackupUser
Restored from previous forum. Originally posted by Pupil.
How does this work with GlobalMemoryStatusEX_ ?
where do you put the structure or is it asumed?
Check it out at this address: http://msdn.microsoft.com/library/defau ... n_77p4.asp