Skip to main content
gamedev.net
🔒 Locked

Getting system information...

Started by doxxan 1 reply 250+ views
Original Post
doxxan
doxxan
How do you get all that system information you see in some games, like max/available ram, cpu, blah, blah etc? Just wanna now. "What is darkness? It doesn''t exist where there''s light, and without light, it''s nothing..."
"What is darkness? It doesn't exist where there's light, and without light, it's nothing..."
walkingcarcass
walkingcarcass

struct SYSTEM_INFO {
union {
DWORD dwOemId;
struct {
WORD wProcessorArchitecture;
WORD wReserved;
};
};
DWORD dwPageSize;
LPVOID lpMinimumApplicationAddress;
LPVOID lpMaximumApplicationAddress;
DWORD dwActiveProcessorMask;
DWORD dwNumberOfProcessors;
DWORD dwProcessorType;
DWORD dwAllocationGranularity;
WORD wProcessorLevel;
WORD wProcessorRevision;
};



VOID GetSystemInfo(SYSTEM_INFO *lpSystemInfo);




struct MEMORYSTATUS {
DWORD dwLength; // sizeof(MEMORYSTATUS)
DWORD dwMemoryLoad; // percent of memory in use
DWORD dwTotalPhys; // bytes of physical memory
DWORD dwAvailPhys; // free physical memory bytes
DWORD dwTotalPageFile; // bytes of paging file
DWORD dwAvailPageFile; // free bytes of paging file
DWORD dwTotalVirtual; // user bytes of address space
DWORD dwAvailVirtual; // free user bytes

};


VOID GlobalMemoryStatus(MEMORYSTATUS *lpBuffer);

********


A Problem Worthy of Attack
Proves It's Worth by Fighting Back

[edited by - walkingcarcass on November 29, 2002 5:59:27 AM]
spraff.net: don't laugh, I'm still just starting...
doxxan
doxxan
tnx man.

"What is darkness? It doesn''t exist where there''s light, and without light, it''s nothing..."
"What is darkness? It doesn't exist where there's light, and without light, it's nothing..."

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.