1. 程式人生 > >獲取系統資訊,包括頁面大小,分配粒度,還有CPU資訊(GetSystemInfo)

獲取系統資訊,包括頁面大小,分配粒度,還有CPU資訊(GetSystemInfo)



Retrieves information about the current system.

To retrieve accurate information for an application running on WOW64, call theGetNativeSystemInfo function.

Syntax

C++ Copy
void WINAPI GetSystemInfo(
  _Out_ LPSYSTEM_INFO lpSystemInfo
);

Parameters

lpSystemInfo [out]

A pointer to a SYSTEM_INFO

structure that receives the information.

Return value

This function does not return a value.

Examples

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also