#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] #[cfg(feature = "System_Diagnostics")] pub mod Diagnostics; #[cfg(feature = "System_Display")] pub mod Display; #[cfg(feature = "System_Implementation")] pub mod Implementation; #[cfg(feature = "System_Inventory")] pub mod Inventory; #[cfg(feature = "System_Power")] pub mod Power; #[cfg(feature = "System_Preview")] pub mod Preview; #[cfg(feature = "System_Profile")] pub mod Profile; #[cfg(feature = "System_RemoteDesktop")] pub mod RemoteDesktop; #[cfg(feature = "System_RemoteSystems")] pub mod RemoteSystems; #[cfg(feature = "System_Threading")] pub mod Threading; #[cfg(feature = "System_Update")] pub mod Update; #[cfg(feature = "System_UserProfile")] pub mod UserProfile; #[link(name = "windows")] extern "system" {} pub type AppActivationResult = *mut ::core::ffi::c_void; pub type AppDiagnosticInfo = *mut ::core::ffi::c_void; pub type AppDiagnosticInfoWatcher = *mut ::core::ffi::c_void; pub type AppDiagnosticInfoWatcherEventArgs = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct AppDiagnosticInfoWatcherStatus(pub i32); impl AppDiagnosticInfoWatcherStatus { pub const Created: Self = Self(0i32); pub const Started: Self = Self(1i32); pub const EnumerationCompleted: Self = Self(2i32); pub const Stopping: Self = Self(3i32); pub const Stopped: Self = Self(4i32); pub const Aborted: Self = Self(5i32); } impl ::core::marker::Copy for AppDiagnosticInfoWatcherStatus {} impl ::core::clone::Clone for AppDiagnosticInfoWatcherStatus { fn clone(&self) -> Self { *self } } pub type AppExecutionStateChangeResult = *mut ::core::ffi::c_void; pub type AppMemoryReport = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct AppMemoryUsageLevel(pub i32); impl AppMemoryUsageLevel { pub const Low: Self = Self(0i32); pub const Medium: Self = Self(1i32); pub const High: Self = Self(2i32); pub const OverLimit: Self = Self(3i32); } impl ::core::marker::Copy for AppMemoryUsageLevel {} impl ::core::clone::Clone for AppMemoryUsageLevel { fn clone(&self) -> Self { *self } } pub type AppMemoryUsageLimitChangingEventArgs = *mut ::core::ffi::c_void; pub type AppResourceGroupBackgroundTaskReport = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct AppResourceGroupEnergyQuotaState(pub i32); impl AppResourceGroupEnergyQuotaState { pub const Unknown: Self = Self(0i32); pub const Over: Self = Self(1i32); pub const Under: Self = Self(2i32); } impl ::core::marker::Copy for AppResourceGroupEnergyQuotaState {} impl ::core::clone::Clone for AppResourceGroupEnergyQuotaState { fn clone(&self) -> Self { *self } } #[repr(transparent)] pub struct AppResourceGroupExecutionState(pub i32); impl AppResourceGroupExecutionState { pub const Unknown: Self = Self(0i32); pub const Running: Self = Self(1i32); pub const Suspending: Self = Self(2i32); pub const Suspended: Self = Self(3i32); pub const NotRunning: Self = Self(4i32); } impl ::core::marker::Copy for AppResourceGroupExecutionState {} impl ::core::clone::Clone for AppResourceGroupExecutionState { fn clone(&self) -> Self { *self } } pub type AppResourceGroupInfo = *mut ::core::ffi::c_void; pub type AppResourceGroupInfoWatcher = *mut ::core::ffi::c_void; pub type AppResourceGroupInfoWatcherEventArgs = *mut ::core::ffi::c_void; pub type AppResourceGroupInfoWatcherExecutionStateChangedEventArgs = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct AppResourceGroupInfoWatcherStatus(pub i32); impl AppResourceGroupInfoWatcherStatus { pub const Created: Self = Self(0i32); pub const Started: Self = Self(1i32); pub const EnumerationCompleted: Self = Self(2i32); pub const Stopping: Self = Self(3i32); pub const Stopped: Self = Self(4i32); pub const Aborted: Self = Self(5i32); } impl ::core::marker::Copy for AppResourceGroupInfoWatcherStatus {} impl ::core::clone::Clone for AppResourceGroupInfoWatcherStatus { fn clone(&self) -> Self { *self } } pub type AppResourceGroupMemoryReport = *mut ::core::ffi::c_void; pub type AppResourceGroupStateReport = *mut ::core::ffi::c_void; pub type AppUriHandlerHost = *mut ::core::ffi::c_void; pub type AppUriHandlerRegistration = *mut ::core::ffi::c_void; pub type AppUriHandlerRegistrationManager = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct AutoUpdateTimeZoneStatus(pub i32); impl AutoUpdateTimeZoneStatus { pub const Attempted: Self = Self(0i32); pub const TimedOut: Self = Self(1i32); pub const Failed: Self = Self(2i32); } impl ::core::marker::Copy for AutoUpdateTimeZoneStatus {} impl ::core::clone::Clone for AutoUpdateTimeZoneStatus { fn clone(&self) -> Self { *self } } #[repr(transparent)] pub struct DiagnosticAccessStatus(pub i32); impl DiagnosticAccessStatus { pub const Unspecified: Self = Self(0i32); pub const Denied: Self = Self(1i32); pub const Limited: Self = Self(2i32); pub const Allowed: Self = Self(3i32); } impl ::core::marker::Copy for DiagnosticAccessStatus {} impl ::core::clone::Clone for DiagnosticAccessStatus { fn clone(&self) -> Self { *self } } pub type DispatcherQueue = *mut ::core::ffi::c_void; pub type DispatcherQueueController = *mut ::core::ffi::c_void; pub type DispatcherQueueHandler = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct DispatcherQueuePriority(pub i32); impl DispatcherQueuePriority { pub const Low: Self = Self(-10i32); pub const Normal: Self = Self(0i32); pub const High: Self = Self(10i32); } impl ::core::marker::Copy for DispatcherQueuePriority {} impl ::core::clone::Clone for DispatcherQueuePriority { fn clone(&self) -> Self { *self } } pub type DispatcherQueueShutdownStartingEventArgs = *mut ::core::ffi::c_void; pub type DispatcherQueueTimer = *mut ::core::ffi::c_void; pub type FolderLauncherOptions = *mut ::core::ffi::c_void; pub type ILauncherViewOptions = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct LaunchFileStatus(pub i32); impl LaunchFileStatus { pub const Success: Self = Self(0i32); pub const AppUnavailable: Self = Self(1i32); pub const DeniedByPolicy: Self = Self(2i32); pub const FileTypeNotSupported: Self = Self(3i32); pub const Unknown: Self = Self(4i32); } impl ::core::marker::Copy for LaunchFileStatus {} impl ::core::clone::Clone for LaunchFileStatus { fn clone(&self) -> Self { *self } } #[repr(transparent)] pub struct LaunchQuerySupportStatus(pub i32); impl LaunchQuerySupportStatus { pub const Available: Self = Self(0i32); pub const AppNotInstalled: Self = Self(1i32); pub const AppUnavailable: Self = Self(2i32); pub const NotSupported: Self = Self(3i32); pub const Unknown: Self = Self(4i32); } impl ::core::marker::Copy for LaunchQuerySupportStatus {} impl ::core::clone::Clone for LaunchQuerySupportStatus { fn clone(&self) -> Self { *self } } #[repr(transparent)] pub struct LaunchQuerySupportType(pub i32); impl LaunchQuerySupportType { pub const Uri: Self = Self(0i32); pub const UriForResults: Self = Self(1i32); } impl ::core::marker::Copy for LaunchQuerySupportType {} impl ::core::clone::Clone for LaunchQuerySupportType { fn clone(&self) -> Self { *self } } pub type LaunchUriResult = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct LaunchUriStatus(pub i32); impl LaunchUriStatus { pub const Success: Self = Self(0i32); pub const AppUnavailable: Self = Self(1i32); pub const ProtocolUnavailable: Self = Self(2i32); pub const Unknown: Self = Self(3i32); } impl ::core::marker::Copy for LaunchUriStatus {} impl ::core::clone::Clone for LaunchUriStatus { fn clone(&self) -> Self { *self } } pub type LauncherOptions = *mut ::core::ffi::c_void; pub type LauncherUIOptions = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct PowerState(pub i32); impl PowerState { pub const ConnectedStandby: Self = Self(0i32); pub const SleepS3: Self = Self(1i32); } impl ::core::marker::Copy for PowerState {} impl ::core::clone::Clone for PowerState { fn clone(&self) -> Self { *self } } pub type ProcessLauncherOptions = *mut ::core::ffi::c_void; pub type ProcessLauncherResult = *mut ::core::ffi::c_void; pub type ProcessMemoryReport = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct ProcessorArchitecture(pub i32); impl ProcessorArchitecture { pub const X86: Self = Self(0i32); pub const Arm: Self = Self(5i32); pub const X64: Self = Self(9i32); pub const Neutral: Self = Self(11i32); pub const Arm64: Self = Self(12i32); pub const X86OnArm64: Self = Self(14i32); pub const Unknown: Self = Self(65535i32); } impl ::core::marker::Copy for ProcessorArchitecture {} impl ::core::clone::Clone for ProcessorArchitecture { fn clone(&self) -> Self { *self } } pub type ProtocolForResultsOperation = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct RemoteLaunchUriStatus(pub i32); impl RemoteLaunchUriStatus { pub const Unknown: Self = Self(0i32); pub const Success: Self = Self(1i32); pub const AppUnavailable: Self = Self(2i32); pub const ProtocolUnavailable: Self = Self(3i32); pub const RemoteSystemUnavailable: Self = Self(4i32); pub const ValueSetTooLarge: Self = Self(5i32); pub const DeniedByLocalSystem: Self = Self(6i32); pub const DeniedByRemoteSystem: Self = Self(7i32); } impl ::core::marker::Copy for RemoteLaunchUriStatus {} impl ::core::clone::Clone for RemoteLaunchUriStatus { fn clone(&self) -> Self { *self } } pub type RemoteLauncherOptions = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct ShutdownKind(pub i32); impl ShutdownKind { pub const Shutdown: Self = Self(0i32); pub const Restart: Self = Self(1i32); } impl ::core::marker::Copy for ShutdownKind {} impl ::core::clone::Clone for ShutdownKind { fn clone(&self) -> Self { *self } } pub type User = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct UserAgeConsentGroup(pub i32); impl UserAgeConsentGroup { pub const Child: Self = Self(0i32); pub const Minor: Self = Self(1i32); pub const Adult: Self = Self(2i32); } impl ::core::marker::Copy for UserAgeConsentGroup {} impl ::core::clone::Clone for UserAgeConsentGroup { fn clone(&self) -> Self { *self } } #[repr(transparent)] pub struct UserAgeConsentResult(pub i32); impl UserAgeConsentResult { pub const NotEnforced: Self = Self(0i32); pub const Included: Self = Self(1i32); pub const NotIncluded: Self = Self(2i32); pub const Unknown: Self = Self(3i32); pub const Ambiguous: Self = Self(4i32); } impl ::core::marker::Copy for UserAgeConsentResult {} impl ::core::clone::Clone for UserAgeConsentResult { fn clone(&self) -> Self { *self } } #[repr(transparent)] pub struct UserAuthenticationStatus(pub i32); impl UserAuthenticationStatus { pub const Unauthenticated: Self = Self(0i32); pub const LocallyAuthenticated: Self = Self(1i32); pub const RemotelyAuthenticated: Self = Self(2i32); } impl ::core::marker::Copy for UserAuthenticationStatus {} impl ::core::clone::Clone for UserAuthenticationStatus { fn clone(&self) -> Self { *self } } pub type UserAuthenticationStatusChangeDeferral = *mut ::core::ffi::c_void; pub type UserAuthenticationStatusChangingEventArgs = *mut ::core::ffi::c_void; pub type UserChangedEventArgs = *mut ::core::ffi::c_void; pub type UserDeviceAssociationChangedEventArgs = *mut ::core::ffi::c_void; pub type UserPicker = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct UserPictureSize(pub i32); impl UserPictureSize { pub const Size64x64: Self = Self(0i32); pub const Size208x208: Self = Self(1i32); pub const Size424x424: Self = Self(2i32); pub const Size1080x1080: Self = Self(3i32); } impl ::core::marker::Copy for UserPictureSize {} impl ::core::clone::Clone for UserPictureSize { fn clone(&self) -> Self { *self } } #[repr(transparent)] pub struct UserType(pub i32); impl UserType { pub const LocalUser: Self = Self(0i32); pub const RemoteUser: Self = Self(1i32); pub const LocalGuest: Self = Self(2i32); pub const RemoteGuest: Self = Self(3i32); pub const SystemManaged: Self = Self(4i32); } impl ::core::marker::Copy for UserType {} impl ::core::clone::Clone for UserType { fn clone(&self) -> Self { *self } } pub type UserWatcher = *mut ::core::ffi::c_void; #[repr(transparent)] pub struct UserWatcherStatus(pub i32); impl UserWatcherStatus { pub const Created: Self = Self(0i32); pub const Started: Self = Self(1i32); pub const EnumerationCompleted: Self = Self(2i32); pub const Stopping: Self = Self(3i32); pub const Stopped: Self = Self(4i32); pub const Aborted: Self = Self(5i32); } impl ::core::marker::Copy for UserWatcherStatus {} impl ::core::clone::Clone for UserWatcherStatus { fn clone(&self) -> Self { *self } } #[repr(transparent)] pub struct UserWatcherUpdateKind(pub i32); impl UserWatcherUpdateKind { pub const Properties: Self = Self(0i32); pub const Picture: Self = Self(1i32); } impl ::core::marker::Copy for UserWatcherUpdateKind {} impl ::core::clone::Clone for UserWatcherUpdateKind { fn clone(&self) -> Self { *self } } #[repr(transparent)] pub struct VirtualKey(pub i32); impl VirtualKey { pub const None: Self = Self(0i32); pub const LeftButton: Self = Self(1i32); pub const RightButton: Self = Self(2i32); pub const Cancel: Self = Self(3i32); pub const MiddleButton: Self = Self(4i32); pub const XButton1: Self = Self(5i32); pub const XButton2: Self = Self(6i32); pub const Back: Self = Self(8i32); pub const Tab: Self = Self(9i32); pub const Clear: Self = Self(12i32); pub const Enter: Self = Self(13i32); pub const Shift: Self = Self(16i32); pub const Control: Self = Self(17i32); pub const Menu: Self = Self(18i32); pub const Pause: Self = Self(19i32); pub const CapitalLock: Self = Self(20i32); pub const Kana: Self = Self(21i32); pub const Hangul: Self = Self(21i32); pub const ImeOn: Self = Self(22i32); pub const Junja: Self = Self(23i32); pub const Final: Self = Self(24i32); pub const Hanja: Self = Self(25i32); pub const Kanji: Self = Self(25i32); pub const ImeOff: Self = Self(26i32); pub const Escape: Self = Self(27i32); pub const Convert: Self = Self(28i32); pub const NonConvert: Self = Self(29i32); pub const Accept: Self = Self(30i32); pub const ModeChange: Self = Self(31i32); pub const Space: Self = Self(32i32); pub const PageUp: Self = Self(33i32); pub const PageDown: Self = Self(34i32); pub const End: Self = Self(35i32); pub const Home: Self = Self(36i32); pub const Left: Self = Self(37i32); pub const Up: Self = Self(38i32); pub const Right: Self = Self(39i32); pub const Down: Self = Self(40i32); pub const Select: Self = Self(41i32); pub const Print: Self = Self(42i32); pub const Execute: Self = Self(43i32); pub const Snapshot: Self = Self(44i32); pub const Insert: Self = Self(45i32); pub const Delete: Self = Self(46i32); pub const Help: Self = Self(47i32); pub const Number0: Self = Self(48i32); pub const Number1: Self = Self(49i32); pub const Number2: Self = Self(50i32); pub const Number3: Self = Self(51i32); pub const Number4: Self = Self(52i32); pub const Number5: Self = Self(53i32); pub const Number6: Self = Self(54i32); pub const Number7: Self = Self(55i32); pub const Number8: Self = Self(56i32); pub const Number9: Self = Self(57i32); pub const A: Self = Self(65i32); pub const B: Self = Self(66i32); pub const C: Self = Self(67i32); pub const D: Self = Self(68i32); pub const E: Self = Self(69i32); pub const F: Self = Self(70i32); pub const G: Self = Self(71i32); pub const H: Self = Self(72i32); pub const I: Self = Self(73i32); pub const J: Self = Self(74i32); pub const K: Self = Self(75i32); pub const L: Self = Self(76i32); pub const M: Self = Self(77i32); pub const N: Self = Self(78i32); pub const O: Self = Self(79i32); pub const P: Self = Self(80i32); pub const Q: Self = Self(81i32); pub const R: Self = Self(82i32); pub const S: Self = Self(83i32); pub const T: Self = Self(84i32); pub const U: Self = Self(85i32); pub const V: Self = Self(86i32); pub const W: Self = Self(87i32); pub const X: Self = Self(88i32); pub const Y: Self = Self(89i32); pub const Z: Self = Self(90i32); pub const LeftWindows: Self = Self(91i32); pub const RightWindows: Self = Self(92i32); pub const Application: Self = Self(93i32); pub const Sleep: Self = Self(95i32); pub const NumberPad0: Self = Self(96i32); pub const NumberPad1: Self = Self(97i32); pub const NumberPad2: Self = Self(98i32); pub const NumberPad3: Self = Self(99i32); pub const NumberPad4: Self = Self(100i32); pub const NumberPad5: Self = Self(101i32); pub const NumberPad6: Self = Self(102i32); pub const NumberPad7: Self = Self(103i32); pub const NumberPad8: Self = Self(104i32); pub const NumberPad9: Self = Self(105i32); pub const Multiply: Self = Self(106i32); pub const Add: Self = Self(107i32); pub const Separator: Self = Self(108i32); pub const Subtract: Self = Self(109i32); pub const Decimal: Self = Self(110i32); pub const Divide: Self = Self(111i32); pub const F1: Self = Self(112i32); pub const F2: Self = Self(113i32); pub const F3: Self = Self(114i32); pub const F4: Self = Self(115i32); pub const F5: Self = Self(116i32); pub const F6: Self = Self(117i32); pub const F7: Self = Self(118i32); pub const F8: Self = Self(119i32); pub const F9: Self = Self(120i32); pub const F10: Self = Self(121i32); pub const F11: Self = Self(122i32); pub const F12: Self = Self(123i32); pub const F13: Self = Self(124i32); pub const F14: Self = Self(125i32); pub const F15: Self = Self(126i32); pub const F16: Self = Self(127i32); pub const F17: Self = Self(128i32); pub const F18: Self = Self(129i32); pub const F19: Self = Self(130i32); pub const F20: Self = Self(131i32); pub const F21: Self = Self(132i32); pub const F22: Self = Self(133i32); pub const F23: Self = Self(134i32); pub const F24: Self = Self(135i32); pub const NavigationView: Self = Self(136i32); pub const NavigationMenu: Self = Self(137i32); pub const NavigationUp: Self = Self(138i32); pub const NavigationDown: Self = Self(139i32); pub const NavigationLeft: Self = Self(140i32); pub const NavigationRight: Self = Self(141i32); pub const NavigationAccept: Self = Self(142i32); pub const NavigationCancel: Self = Self(143i32); pub const NumberKeyLock: Self = Self(144i32); pub const Scroll: Self = Self(145i32); pub const LeftShift: Self = Self(160i32); pub const RightShift: Self = Self(161i32); pub const LeftControl: Self = Self(162i32); pub const RightControl: Self = Self(163i32); pub const LeftMenu: Self = Self(164i32); pub const RightMenu: Self = Self(165i32); pub const GoBack: Self = Self(166i32); pub const GoForward: Self = Self(167i32); pub const Refresh: Self = Self(168i32); pub const Stop: Self = Self(169i32); pub const Search: Self = Self(170i32); pub const Favorites: Self = Self(171i32); pub const GoHome: Self = Self(172i32); pub const GamepadA: Self = Self(195i32); pub const GamepadB: Self = Self(196i32); pub const GamepadX: Self = Self(197i32); pub const GamepadY: Self = Self(198i32); pub const GamepadRightShoulder: Self = Self(199i32); pub const GamepadLeftShoulder: Self = Self(200i32); pub const GamepadLeftTrigger: Self = Self(201i32); pub const GamepadRightTrigger: Self = Self(202i32); pub const GamepadDPadUp: Self = Self(203i32); pub const GamepadDPadDown: Self = Self(204i32); pub const GamepadDPadLeft: Self = Self(205i32); pub const GamepadDPadRight: Self = Self(206i32); pub const GamepadMenu: Self = Self(207i32); pub const GamepadView: Self = Self(208i32); pub const GamepadLeftThumbstickButton: Self = Self(209i32); pub const GamepadRightThumbstickButton: Self = Self(210i32); pub const GamepadLeftThumbstickUp: Self = Self(211i32); pub const GamepadLeftThumbstickDown: Self = Self(212i32); pub const GamepadLeftThumbstickRight: Self = Self(213i32); pub const GamepadLeftThumbstickLeft: Self = Self(214i32); pub const GamepadRightThumbstickUp: Self = Self(215i32); pub const GamepadRightThumbstickDown: Self = Self(216i32); pub const GamepadRightThumbstickRight: Self = Self(217i32); pub const GamepadRightThumbstickLeft: Self = Self(218i32); } impl ::core::marker::Copy for VirtualKey {} impl ::core::clone::Clone for VirtualKey { fn clone(&self) -> Self { *self } } #[repr(transparent)] pub struct VirtualKeyModifiers(pub u32); impl VirtualKeyModifiers { pub const None: Self = Self(0u32); pub const Control: Self = Self(1u32); pub const Menu: Self = Self(2u32); pub const Shift: Self = Self(4u32); pub const Windows: Self = Self(8u32); } impl ::core::marker::Copy for VirtualKeyModifiers {} impl ::core::clone::Clone for VirtualKeyModifiers { fn clone(&self) -> Self { *self } }