16.1. The GetSystemInfo Function

TheGetSystemInfo function returns information about the hardware of the system on which your program is running. This information is useful when you want to tune your application's behavior to the hardware that is available.

GetSystemInfoReturns information about the current hardware
VOID GetSystemInfo(
   LPSYSTEM_INFO info)
 
info a SYSTEM_INFO structure
Returns nothing 

The function returns a SYSTEM_INFO structure that contains several pieces of immediately obvious information, along with other pieces of information that are more obscure, as follows:

 typedef struct _SYSTEM_INFO { DWORD dwOemId; DWORD dwPageSize; LPVOID lpMinimumApplicationAddress; LPVOID lpMaximumApplicationAddress; DWORD dwActiveProcessorMask; ...

Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.