summaryrefslogtreecommitdiffstats
path: root/third_party/rust/winapi-0.2.8/src/sysinfoapi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/winapi-0.2.8/src/sysinfoapi.rs')
-rw-r--r--third_party/rust/winapi-0.2.8/src/sysinfoapi.rs46
1 files changed, 46 insertions, 0 deletions
diff --git a/third_party/rust/winapi-0.2.8/src/sysinfoapi.rs b/third_party/rust/winapi-0.2.8/src/sysinfoapi.rs
new file mode 100644
index 0000000000..95c38c64a8
--- /dev/null
+++ b/third_party/rust/winapi-0.2.8/src/sysinfoapi.rs
@@ -0,0 +1,46 @@
+// Copyright © 2015, skdltmxn
+// Licensed under the MIT License <LICENSE.md>
+//! ApiSet Contract for api-ms-win-core-sysinfo-l1.
+STRUCT!{struct SYSTEM_INFO {
+ wProcessorArchitecture: ::WORD,
+ wReserved: ::WORD,
+ dwPageSize: ::DWORD,
+ lpMinimumApplicationAddress: ::LPVOID,
+ lpMaximumApplicationAddress: ::LPVOID,
+ dwActiveProcessorMask: ::DWORD_PTR,
+ dwNumberOfProcessors: ::DWORD,
+ dwProcessorType: ::DWORD,
+ dwAllocationGranularity: ::DWORD,
+ wProcessorLevel: ::WORD,
+ wProcessorRevision: ::WORD,
+}}
+UNION!(SYSTEM_INFO, wProcessorArchitecture, dwOemId, dwOemId_mut, ::DWORD);
+pub type LPSYSTEM_INFO = *mut SYSTEM_INFO;
+STRUCT!{struct MEMORYSTATUSEX {
+ dwLength: ::DWORD,
+ dwMemoryLoad: ::DWORD,
+ ullTotalPhys: ::DWORDLONG,
+ ullAvailPhys: ::DWORDLONG,
+ ullTotalPageFile: ::DWORDLONG,
+ ullAvailPageFile: ::DWORDLONG,
+ ullTotalVirtual: ::DWORDLONG,
+ ullAvailVirtual: ::DWORDLONG,
+ ullAvailExtendedVirtual: ::DWORDLONG,
+}}
+pub type LPMEMORYSTATUSEX = *mut MEMORYSTATUSEX;
+ENUM!{enum COMPUTER_NAME_FORMAT {
+ ComputerNameNetBIOS,
+ ComputerNameDnsHostname,
+ ComputerNameDnsDomain,
+ ComputerNameDnsFullyQualified,
+ ComputerNamePhysicalNetBIOS,
+ ComputerNamePhysicalDnsHostname,
+ ComputerNamePhysicalDnsDomain,
+ ComputerNamePhysicalDnsFullyQualified,
+ ComputerNameMax,
+}}
+pub type INIT_ONCE = ::RTL_RUN_ONCE;
+pub type PINIT_ONCE = ::PRTL_RUN_ONCE;
+pub type LPINIT_ONCE = ::PRTL_RUN_ONCE;
+pub type CONDITION_VARIABLE = ::RTL_CONDITION_VARIABLE;
+pub type PCONDITION_VARIABLE = *mut CONDITION_VARIABLE;