FreeRDP
|
#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) |
#define CLOCK_MONOTONIC_RAW 4 |
#define FILETIME_TO_UNIX_OFFSET_S 11644473600UL |
#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 | ) |
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 | ) |
UINT64 winpr_GetTickCount64NS | ( | void | ) |
UINT64 winpr_GetUnixTimeNS | ( | void | ) |