GetSystemInfo Function

Retrieves information about the current system.

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

Syntax

C++
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

For an example, see Getting Hardware Information.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll

See Also

GetNativeSystemInfo
System Information Functions
SYSTEM_INFO

Send comments about this topic to Microsoft

Build date: 11/19/2009

Tags :


Community Content

dmex
vb.net syntax
<DllImport("kernel32.dll", SetLastError:=True)> _
Public Shared Sub GetSystemInfo(ByRef lpSystemInfo As SYSTEM_INFO)
End Sub
Tags : vb.net syntax

dmex
C# syntax
[DllImport("kernel32.dll", SetLastError=true)]
internal static extern void GetSystemInfo(ref SYSTEM_INFO lpSystemInfo);
Tags : c# syntax

Sven Rutten
VB.NET Compact Framework syntax
<DllImport("coredll.dll", SetLastError:=True)> _
Public Shared Sub GetSystemInfo(ByRef lpSystemInfo As SYSTEM_INFO)
End Sub
Tags :

Sven Rutten
C# Compact Framework syntax
[DllImport("coredll.dll", SetLastError=true)]
internal static extern void GetSystemInfo(ref SYSTEM_INFO lpSystemInfo);
Tags :

Page view tracker