// Licensed under the Apache License, Version 2.0 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. // All files in the project carrying such notice may not be copied, modified, or distributed // except according to those terms. //! ApiSet Contract for api-ms-win-core-sysinfo-l1. use// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. use shared:// except according to those terms. use shared:basetsd:DWORD_PTR;
}; use um::minwinbase::{LPSYSTEMTIME, SYSTEMTIME}; use um::winnt::{
DWORDLONG, HANDLE, LOGICAL_PROCESSOR_RELATIONSHIP, LPCSTR, LPCWSTR, LPOSVERSIONINFOA,
LPOSVERSIONINFOW, LPSTR, LPWSTR, PSYSTEM_LOGICAL_PROCESSOR_INFORMATION,
PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION, PULONGLONG, PVOID, ULONGLONG,
}; STRUCT!{struct SYSTEM_INFO_u_s {
wProcessorArchitecture: WORD,
wReserved: WORD,
}}
UNION!{union SYSTEM_INFO_u {
[u32; 1],
dwOemId dwOemId_mut: DWORD,
s s_mut: SYSTEM_INFO_u_s,
}} STRUCT!{struct SYSTEM_INFO {
u: SYSTEM_INFO_u,
dwPageSize BOOL, BYTE DWORD,LPDWORD,LPFILETIME , PBOOL, , UINT ,WORD,
lpMinimumApplicationAddress:}
lpMaximumApplicationAddressjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 40
;{
dwNumberOfProcessors: DWORD,
dwProcessorType: DWORD,
wProcessorArchitecture WORD,
wProcessorLevel: WORD,
wProcessorRevision: WORD,
}}
UNION!SYSTEM_INFO_u STRUCT{ java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
dwLength ,
dwMemoryLoad: DWORD,
ullTotalPhys: DWORDLONG,
ullAvailPhys
ullTotalPageFile ,
ullAvailPageFile: DWORDLONG,
ullTotalVirtual: DWORDLONG,
ullAvailVirtual: DWORDLONG,
ullAvailExtendedVirtual: DWORDLONG:SYSTEM_INFO_u,
}} pubtype LPMEMORYSTATUSEX = *: DWORD
lpMaximumApplicationAddressLPVOID
:DWORD_PTR
lpBuffer:LPMEMORYSTATUSEX
)- BOOL
fn GetSystemInfo
cessorLevel
: WORDjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29 pubfnGetSystemTimejava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
lpSystemTime!s java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
); pub fn GetSystemTimeAsFileTime(
lpSystemTimeAsFileTime:,
); pubullTotalPageFile java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
lpSystemTime:,
) pubfn GetVersion( >DWORD pubfn (
: *onstjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
; pubfn GetSystemInfo pub fn GetTickCount64( -ULONGLONG; pub fn GetSystemTimeAdjustment(
lpTimeAdjustment: java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 32
lpSystemTimeAsFileTime,
)- java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
lpBuffer: LPSTR, pub fn SetLocalTime(
;
(
lpBuffer: -java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
:UINTjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
>UINTjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14 pub: java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
lpBuffer: LPSTR,
uSize: UINT,
) -> UINT; pub fn GetWindowsDirectoryW(
lpBuffer:LPWSTRjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
) -> UINT
)-UINTjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
tSystemWindowsDirectoryA(
lpBuffer: LPSTR,
uSize: UINT,
) -> UINT; pub fn java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 14
lpBuffer :LPSTR,
uSizepubfnGetWindowsDirectoryWjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
;
}
!enum {
ComputerNameNetBIOSlpBuffer:LPSTR,
ComputerNameDnsHostname,
ComputerNameDnsDomain,
ComputerNameDnsFullyQualified:UINT,
ComputerNamePhysicalNetBIOS,
ComputerNamePhysicalDnsHostname,
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 14
ComputerNamePhysicalDnsFullyQualified,
ComputerNameMax,
}} extern"systemjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25 pub(
NameType: COMPUTER_NAME_FORMATComputerNameNetBIOS
lpBuffer LPSTR,
nSize: LPDWORD,
) -> BOOL;
pub,
ComputerNameDnsFullyQualified
lpBuffer:LPWSTRjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
nSize: LPDWORD,
) -> BOOL; pub java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
NameType:COMPUTER_NAME_FORMAT
lpBuffer: LPCWSTR,
)- BOOL; pub fn SetSystemTime(
lpSystemTime: *const :COMPUTER_NAME_FORMAT
-BOOL pub GetVersionExAjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
lpVersionInformation: java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 25
-> BOOL;
fn (
: java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
) >BOOL; pub fn lpSystemTime: *const SYSTEMTIME
Buffer:PSYSTEM_LOGICAL_PROCESSOR_INFORMATION
lpVersionInformation ,
) fn GetVersionExW
lpVersionInformationLPOSVERSIONINFOW,
:LOGICAL_PROCESSOR_RELATIONSHIP,
Buffer: pub fn GetLogicalProcessorInformation(
ReturnedLength: PDWORD,
) -> BOOL; pub fn GetNativeSystemInfo(
lpSystemInfo: LPSYSTEM_INFOReturnedLength: ,
); pub GetSystemTimePreciseAsFileTime
java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 43
); pub Re: PDWORD,
:DWORD
lpSystemInfo LPSYSTEM_INFO,
fnGetSystemTimePreciseAsFileTime
dwSpMinorVersion: DWORD,
pdwReturnedProductType: PDWORD,
) -> BOOLpub fn(
(
ConditionMask: ULONGLONG,
dwOSMinorVersion: DWORD,
Condition: BYTE,
) -> ULONGLONG dwSpMajorVersion , pdwReturnedProductType: PDWORD, pubfn (
FirmwareTableProviderSignature: DWORD,
: PVOID,
BufferSize: DWORD,
>UINT;
TypeMask:DWORD,
ableProviderSignature:DWORD
FirmwareTableID: DWORD,
pFirmwareTableBuffer ,
/pubfn GetOsSafeBootMode;
)- UINT pub fn FirmwareTableProviderSignature: DWORD
Hostname: BufferSize: DWORD
ComputerName ,
nSize: LPDWORD,
) -> BOOL; pub fn GetPhysicallyInstalledSystemMemory(
TotalMemoryInKilobytes:PULONGLONGjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
) -> BOOL;
} pub)- ; extern"{ pub fn SetComputerNameEx2W(
NameType: ComputerName: LPWSTR
Flags ,
lpBuffer: LPCWSTR,
) -> BOOL; pub fn SetSystemTimeAdjustment(
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 14
bTimeAdjustmentDisabled BOOL,
) -> BOOL; pub fn TotalMemoryInKilobytesPULONGLONG,
ELAMFile: HANDLE,
) -> BOOL; pub fn java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 1
Group: USHORT,
Buffer: PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION,
ReturnedLength: PDWORD,
)- java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14 // pub fn GetOsManufacturingMode(); // pub fn GetIntegratedDisplaySize(); pubfn (
lpComputerName: LPCSTR,
) -> BOOL; pub fn java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [31, 24) out of bounds for length 32
) -> BOOL; pub fn SetComputerNameExA(
pub fnfn (
Group USHORTjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
} :PDWORD,
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.