API CALL GlobalMemoryStatus_ HELP

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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)
...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by scurrier.

Thanks
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
Post Reply