GetNativeSystemInfo
GetNativeSystemInfo is a Windows API function that retrieves information about the native hardware and system characteristics of the current machine. It fills a SYSTEM_INFO structure with details such as processor architecture, address space ranges, page size, and the number of processors. The function is declared in WinBase.h and implemented in Kernel32.dll. It has no return value and accepts a single parameter: a pointer to a SYSTEM_INFO structure that receives the information.
The SYSTEM_INFO structure provides fields including wProcessorArchitecture, dwPageSize, dwMinimumApplicationAddress, dwMaximumApplicationAddress, dwActiveProcessorMask, dwNumberOfProcessors, dwProcessorType, dwAllocationGranularity, and,
A key distinction from GetSystemInfo is that GetNativeSystemInfo reports the true native architecture of the hardware,
Usage considerations include detecting native CPU capabilities to select optimized code paths, libraries, or data alignment