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

Macros

#define TAG   WINPR_TAG("sysinfo")
 
#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 GetVersionExA (LPOSVERSIONINFOA lpVersionInformation)
 
BOOL GetVersionExW (LPOSVERSIONINFOW lpVersionInformation)
 
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)
 
BOOL IsProcessorFeaturePresent (DWORD ProcessorFeature)
 
DWORD GetTickCountPrecise (void)
 
BOOL IsProcessorFeaturePresentEx (DWORD ProcessorFeature)
 

Macro Definition Documentation

#define CLOCK_MONOTONIC_RAW   4
#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

BOOL GetComputerNameA ( LPSTR  lpBuffer,
LPDWORD  lpnSize 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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:

BOOL GetComputerNameExW ( COMPUTER_NAME_FORMAT  NameType,
LPWSTR  lpBuffer,
LPDWORD  lpnSize 
)

Here is the call graph for this function:

VOID GetLocalTime ( LPSYSTEMTIME  lpSystemTime)

Here is the call graph for this function:

Here is the caller graph for this function:

void GetNativeSystemInfo ( LPSYSTEM_INFO  lpSystemInfo)

Here is the call graph for this function:

Here is the caller graph for this function:

static DWORD GetNumberOfProcessors ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

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:

void GetSystemInfo ( LPSYSTEM_INFO  lpSystemInfo)

Here is the call graph for this function:

Here is the caller graph for this function:

static DWORD GetSystemPageSize ( void  )
static

Here is the caller graph for this function:

void GetSystemTime ( LPSYSTEMTIME  lpSystemTime)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL GetSystemTimeAdjustment ( PDWORD  lpTimeAdjustment,
PDWORD  lpTimeIncrement,
PBOOL  lpTimeAdjustmentDisabled 
)
VOID GetSystemTimeAsFileTime ( LPFILETIME  lpSystemTimeAsFileTime)

Here is the caller graph for this function:

DWORD GetTickCount ( void  )

FIXME: this is relative to the Epoch time, and we need to return a value relative to the system uptime.

Here is the caller graph for this function:

DWORD GetTickCountPrecise ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL GetVersionExA ( LPOSVERSIONINFOA  lpVersionInformation)

Here is the caller graph for this function:

BOOL GetVersionExW ( LPOSVERSIONINFOW  lpVersionInformation)

Here is the call graph for this function:

BOOL IsProcessorFeaturePresent ( DWORD  ProcessorFeature)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL IsProcessorFeaturePresentEx ( DWORD  ProcessorFeature)

Here is the caller graph for this function:

BOOL SetLocalTime ( CONST SYSTEMTIME *  lpSystemTime)
BOOL SetSystemTime ( CONST SYSTEMTIME *  lpSystemTime)
ULONGLONG winpr_GetTickCount64 ( void  )

FIXME: this is relative to the Epoch time, and we need to return a value relative to the system uptime.

Here is the call graph for this function: