FreeRDP
|
#include <winpr/config.h>
#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 | 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) |
BOOL | IsProcessorFeaturePresent (DWORD ProcessorFeature) |
DWORD | GetTickCountPrecise (void) |
BOOL | IsProcessorFeaturePresentEx (DWORD ProcessorFeature) |
#define CLOCK_MONOTONIC_RAW 4 |
#define TAG WINPR_TAG("sysinfo") |
WinPR: Windows Portable Runtime System Information
Copyright 2012 Marc-Andre Moreau marca Copyright 2013 Bernhard Miklautz ndre .more au@g mail. combernh ard. mikla utz@ thinc ast. 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.
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 | ||
) |
BOOL GetComputerNameW | ( | LPWSTR | lpBuffer, |
LPDWORD | lpnSize | ||
) |
VOID GetLocalTime | ( | LPSYSTEMTIME | lpSystemTime | ) |
void GetNativeSystemInfo | ( | LPSYSTEM_INFO | lpSystemInfo | ) |
|
static |
|
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
void GetSystemInfo | ( | LPSYSTEM_INFO | lpSystemInfo | ) |
|
static |
void GetSystemTime | ( | LPSYSTEMTIME | lpSystemTime | ) |
BOOL GetSystemTimeAdjustment | ( | PDWORD | lpTimeAdjustment, |
PDWORD | lpTimeIncrement, | ||
PBOOL | lpTimeAdjustmentDisabled | ||
) |
VOID GetSystemTimeAsFileTime | ( | LPFILETIME | lpSystemTimeAsFileTime | ) |
DWORD GetTickCount | ( | void | ) |
FIXME: this is relative to the Epoch time, and we need to return a value relative to the system uptime.
DWORD GetTickCountPrecise | ( | void | ) |
BOOL IsProcessorFeaturePresent | ( | DWORD | ProcessorFeature | ) |
BOOL IsProcessorFeaturePresentEx | ( | DWORD | ProcessorFeature | ) |
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.