Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Development
System Services
System Information
 GetSystemInfo function
GetSystemInfo function

Applies to: desktop apps only

Retrieves information about the current system.

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

Syntax

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 client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

GetNativeSystemInfo
System Information Functions
SYSTEM_INFO

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
C# Compact Framework syntax      Sven Rutten   |   Edit   |   Show History
[DllImport("coredll.dll", SetLastError=true)]
internal static extern void GetSystemInfo(ref SYSTEM_INFO lpSystemInfo);
Tags What's this?: Add a tag
Flag as ContentBug
VB.NET Compact Framework syntax      Sven Rutten   |   Edit   |   Show History
<DllImport("coredll.dll", SetLastError:=True)> _
Public Shared Sub GetSystemInfo(ByRef lpSystemInfo As SYSTEM_INFO)
End Sub
Tags What's this?: Add a tag
Flag as ContentBug
C# syntax      dmex   |   Edit   |   Show History
[DllImport("kernel32.dll", SetLastError=true)]
internal static extern void GetSystemInfo(ref SYSTEM_INFO lpSystemInfo);
Tags What's this?: c# (x) syntax (x) Add a tag
Flag as ContentBug
vb.net syntax      dmex   |   Edit   |   Show History
<DllImport("kernel32.dll", SetLastError:=True)> _
Public Shared Sub GetSystemInfo(ByRef lpSystemInfo As SYSTEM_INFO)
End Sub
Flag as ContentBug
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker