FreeRDP
sysinfo.c File Reference
#include <winpr/config.h>
#include <winpr/sysinfo.h>
#include <winpr/platform.h>
#include <sys/time.h>
#include <sys/sysinfo.h>
#include "../log.h"
#include <time.h>
#include <winpr/crt.h>

Macros

#define TAG   WINPR_TAG("sysinfo")
 
#define FILETIME_TO_UNIX_OFFSET_S   11644473600UL
 
#define CLOCK_MONOTONIC_RAW   4
 

Functions

static DWORD GetProcessorArchitecture (void)
 
static DWORD GetNumberOfProcessors (void)
 
static DWORD GetSystemPageSize (void)
 
void GetSystemInfo (LPSYSTEM_INFO lpSystemInfo)
 
void GetNativeSystemInfo (LPSYSTEM_INFO lpSystemInfo)
 
void GetSystemTime (LPSYSTEMTIME lpSystemTime)
 
BOOL SetSystemTime (CONST SYSTEMTIME *lpSystemTime)
 
VOID GetLocalTime (LPSYSTEMTIME lpSystemTime)
 
BOOL SetLocalTime (CONST SYSTEMTIME *lpSystemTime)
 
VOID GetSystemTimeAsFileTime (LPFILETIME lpSystemTimeAsFileTime)
 
BOOL GetSystemTimeAdjustment (PDWORD lpTimeAdjustment, PDWORD lpTimeIncrement, PBOOL lpTimeAdjustmentDisabled)
 
DWORD GetTickCount (void)
 
BOOL GetComputerNameW (LPWSTR lpBuffer, LPDWORD lpnSize)
 
BOOL GetComputerNameA (LPSTR lpBuffer, LPDWORD lpnSize)
 
BOOL GetComputerNameExA (COMPUTER_NAME_FORMAT NameType, LPSTR lpBuffer, LPDWORD lpnSize)
 
BOOL GetComputerNameExW (COMPUTER_NAME_FORMAT NameType, LPWSTR lpBuffer, LPDWORD lpnSize)
 
ULONGLONG winpr_GetTickCount64 (void)
 
UINT64 winpr_GetTickCount64NS (void)
 
UINT64 winpr_GetUnixTimeNS (void)
 
BOOL IsProcessorFeaturePresent (DWORD ProcessorFeature)
 
DWORD GetTickCountPrecise (void)
 
BOOL IsProcessorFeaturePresentEx (DWORD ProcessorFeature)
 

Macro Definition Documentation

◆ CLOCK_MONOTONIC_RAW

#define CLOCK_MONOTONIC_RAW   4

◆ FILETIME_TO_UNIX_OFFSET_S

#define FILETIME_TO_UNIX_OFFSET_S   11644473600UL

◆ TAG

#define TAG   WINPR_TAG("sysinfo")

WinPR: Windows Portable Runtime System Information

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2013 Bernhard Miklautz bernh.nosp@m.ard..nosp@m.mikla.nosp@m.utz@.nosp@m.thinc.nosp@m.ast..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ GetComputerNameA()

BOOL GetComputerNameA ( LPSTR  lpBuffer,
LPDWORD  lpnSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetComputerNameExA()

BOOL GetComputerNameExA ( COMPUTER_NAME_FORMAT  NameType,
LPSTR  lpBuffer,
LPDWORD  lpnSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetComputerNameExW()

BOOL GetComputerNameExW ( COMPUTER_NAME_FORMAT  NameType,
LPWSTR  lpBuffer,
LPDWORD  lpnSize 
)
Here is the call graph for this function:

◆ GetComputerNameW()

BOOL GetComputerNameW ( LPWSTR  lpBuffer,
LPDWORD  lpnSize 
)
Here is the call graph for this function:

◆ GetLocalTime()

VOID GetLocalTime ( LPSYSTEMTIME  lpSystemTime)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNativeSystemInfo()

void GetNativeSystemInfo ( LPSYSTEM_INFO  lpSystemInfo)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNumberOfProcessors()

static DWORD GetNumberOfProcessors ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetProcessorArchitecture()

static DWORD GetProcessorArchitecture ( void  )
static

api-ms-win-core-sysinfo-l1-1-1.dll:

EnumSystemFirmwareTables GetSystemFirmwareTable GetLogicalProcessorInformation GetLogicalProcessorInformationEx GetProductInfo GetSystemDirectoryA GetSystemDirectoryW GetSystemTimeAdjustment GetSystemWindowsDirectoryA GetSystemWindowsDirectoryW GetWindowsDirectoryA GetWindowsDirectoryW GlobalMemoryStatusEx SetComputerNameExW VerSetConditionMask

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSystemInfo()

void GetSystemInfo ( LPSYSTEM_INFO  lpSystemInfo)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSystemPageSize()

static DWORD GetSystemPageSize ( void  )
static
Here is the caller graph for this function:

◆ GetSystemTime()

void GetSystemTime ( LPSYSTEMTIME  lpSystemTime)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSystemTimeAdjustment()

BOOL GetSystemTimeAdjustment ( PDWORD  lpTimeAdjustment,
PDWORD  lpTimeIncrement,
PBOOL  lpTimeAdjustmentDisabled 
)

◆ GetSystemTimeAsFileTime()

VOID GetSystemTimeAsFileTime ( LPFILETIME  lpSystemTimeAsFileTime)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTickCount()

DWORD GetTickCount ( void  )
Here is the caller graph for this function:

◆ GetTickCountPrecise()

DWORD GetTickCountPrecise ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsProcessorFeaturePresent()

BOOL IsProcessorFeaturePresent ( DWORD  ProcessorFeature)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsProcessorFeaturePresentEx()

BOOL IsProcessorFeaturePresentEx ( DWORD  ProcessorFeature)
Here is the caller graph for this function:

◆ SetLocalTime()

BOOL SetLocalTime ( CONST SYSTEMTIME *  lpSystemTime)

◆ SetSystemTime()

BOOL SetSystemTime ( CONST SYSTEMTIME *  lpSystemTime)

◆ winpr_GetTickCount64()

ULONGLONG winpr_GetTickCount64 ( void  )
Here is the call graph for this function:

◆ winpr_GetTickCount64NS()

UINT64 winpr_GetTickCount64NS ( void  )
Here is the caller graph for this function:

◆ winpr_GetUnixTimeNS()

UINT64 winpr_GetUnixTimeNS ( void  )
Here is the call graph for this function:
Here is the caller graph for this function: