diff options
Diffstat (limited to 'vendor/windows-sys-0.28.0/src/Windows/Foundation')
5 files changed, 583 insertions, 0 deletions
diff --git a/vendor/windows-sys-0.28.0/src/Windows/Foundation/Collections/mod.rs b/vendor/windows-sys-0.28.0/src/Windows/Foundation/Collections/mod.rs new file mode 100644 index 000000000..34dc20060 --- /dev/null +++ b/vendor/windows-sys-0.28.0/src/Windows/Foundation/Collections/mod.rs @@ -0,0 +1,34 @@ +#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] +#[link(name = "windows")] +extern "system" {} +#[repr(transparent)] +pub struct CollectionChange(pub i32); +impl CollectionChange { + pub const Reset: Self = Self(0i32); + pub const ItemInserted: Self = Self(1i32); + pub const ItemRemoved: Self = Self(2i32); + pub const ItemChanged: Self = Self(3i32); +} +impl ::core::marker::Copy for CollectionChange {} +impl ::core::clone::Clone for CollectionChange { + fn clone(&self) -> Self { + *self + } +} +pub type IIterable = *mut ::core::ffi::c_void; +pub type IIterator = *mut ::core::ffi::c_void; +pub type IKeyValuePair = *mut ::core::ffi::c_void; +pub type IMap = *mut ::core::ffi::c_void; +pub type IMapChangedEventArgs = *mut ::core::ffi::c_void; +pub type IMapView = *mut ::core::ffi::c_void; +pub type IObservableMap = *mut ::core::ffi::c_void; +pub type IObservableVector = *mut ::core::ffi::c_void; +pub type IPropertySet = *mut ::core::ffi::c_void; +pub type IVector = *mut ::core::ffi::c_void; +pub type IVectorChangedEventArgs = *mut ::core::ffi::c_void; +pub type IVectorView = *mut ::core::ffi::c_void; +pub type MapChangedEventHandler = *mut ::core::ffi::c_void; +pub type PropertySet = *mut ::core::ffi::c_void; +pub type StringMap = *mut ::core::ffi::c_void; +pub type ValueSet = *mut ::core::ffi::c_void; +pub type VectorChangedEventHandler = *mut ::core::ffi::c_void; diff --git a/vendor/windows-sys-0.28.0/src/Windows/Foundation/Diagnostics/mod.rs b/vendor/windows-sys-0.28.0/src/Windows/Foundation/Diagnostics/mod.rs new file mode 100644 index 000000000..d9f9a9607 --- /dev/null +++ b/vendor/windows-sys-0.28.0/src/Windows/Foundation/Diagnostics/mod.rs @@ -0,0 +1,149 @@ +#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] +#[link(name = "windows")] +extern "system" {} +#[repr(transparent)] +pub struct CausalityRelation(pub i32); +impl CausalityRelation { + pub const AssignDelegate: Self = Self(0i32); + pub const Join: Self = Self(1i32); + pub const Choice: Self = Self(2i32); + pub const Cancel: Self = Self(3i32); + pub const Error: Self = Self(4i32); +} +impl ::core::marker::Copy for CausalityRelation {} +impl ::core::clone::Clone for CausalityRelation { + fn clone(&self) -> Self { + *self + } +} +#[repr(transparent)] +pub struct CausalitySource(pub i32); +impl CausalitySource { + pub const Application: Self = Self(0i32); + pub const Library: Self = Self(1i32); + pub const System: Self = Self(2i32); +} +impl ::core::marker::Copy for CausalitySource {} +impl ::core::clone::Clone for CausalitySource { + fn clone(&self) -> Self { + *self + } +} +#[repr(transparent)] +pub struct CausalitySynchronousWork(pub i32); +impl CausalitySynchronousWork { + pub const CompletionNotification: Self = Self(0i32); + pub const ProgressNotification: Self = Self(1i32); + pub const Execution: Self = Self(2i32); +} +impl ::core::marker::Copy for CausalitySynchronousWork {} +impl ::core::clone::Clone for CausalitySynchronousWork { + fn clone(&self) -> Self { + *self + } +} +#[repr(transparent)] +pub struct CausalityTraceLevel(pub i32); +impl CausalityTraceLevel { + pub const Required: Self = Self(0i32); + pub const Important: Self = Self(1i32); + pub const Verbose: Self = Self(2i32); +} +impl ::core::marker::Copy for CausalityTraceLevel {} +impl ::core::clone::Clone for CausalityTraceLevel { + fn clone(&self) -> Self { + *self + } +} +pub type ErrorDetails = *mut ::core::ffi::c_void; +#[repr(transparent)] +pub struct ErrorOptions(pub u32); +impl ErrorOptions { + pub const None: Self = Self(0u32); + pub const SuppressExceptions: Self = Self(1u32); + pub const ForceExceptions: Self = Self(2u32); + pub const UseSetErrorInfo: Self = Self(4u32); + pub const SuppressSetErrorInfo: Self = Self(8u32); +} +impl ::core::marker::Copy for ErrorOptions {} +impl ::core::clone::Clone for ErrorOptions { + fn clone(&self) -> Self { + *self + } +} +pub type FileLoggingSession = *mut ::core::ffi::c_void; +pub type IErrorReportingSettings = *mut ::core::ffi::c_void; +pub type IFileLoggingSession = *mut ::core::ffi::c_void; +pub type ILoggingChannel = *mut ::core::ffi::c_void; +pub type ILoggingSession = *mut ::core::ffi::c_void; +pub type ILoggingTarget = *mut ::core::ffi::c_void; +pub type LogFileGeneratedEventArgs = *mut ::core::ffi::c_void; +pub type LoggingActivity = *mut ::core::ffi::c_void; +pub type LoggingChannel = *mut ::core::ffi::c_void; +pub type LoggingChannelOptions = *mut ::core::ffi::c_void; +#[repr(transparent)] +pub struct LoggingFieldFormat(pub i32); +impl LoggingFieldFormat { + pub const Default: Self = Self(0i32); + pub const Hidden: Self = Self(1i32); + pub const String: Self = Self(2i32); + pub const Boolean: Self = Self(3i32); + pub const Hexadecimal: Self = Self(4i32); + pub const ProcessId: Self = Self(5i32); + pub const ThreadId: Self = Self(6i32); + pub const Port: Self = Self(7i32); + pub const Ipv4Address: Self = Self(8i32); + pub const Ipv6Address: Self = Self(9i32); + pub const SocketAddress: Self = Self(10i32); + pub const Xml: Self = Self(11i32); + pub const Json: Self = Self(12i32); + pub const Win32Error: Self = Self(13i32); + pub const NTStatus: Self = Self(14i32); + pub const HResult: Self = Self(15i32); + pub const FileTime: Self = Self(16i32); + pub const Signed: Self = Self(17i32); + pub const Unsigned: Self = Self(18i32); +} +impl ::core::marker::Copy for LoggingFieldFormat {} +impl ::core::clone::Clone for LoggingFieldFormat { + fn clone(&self) -> Self { + *self + } +} +pub type LoggingFields = *mut ::core::ffi::c_void; +#[repr(transparent)] +pub struct LoggingLevel(pub i32); +impl LoggingLevel { + pub const Verbose: Self = Self(0i32); + pub const Information: Self = Self(1i32); + pub const Warning: Self = Self(2i32); + pub const Error: Self = Self(3i32); + pub const Critical: Self = Self(4i32); +} +impl ::core::marker::Copy for LoggingLevel {} +impl ::core::clone::Clone for LoggingLevel { + fn clone(&self) -> Self { + *self + } +} +#[repr(transparent)] +pub struct LoggingOpcode(pub i32); +impl LoggingOpcode { + pub const Info: Self = Self(0i32); + pub const Start: Self = Self(1i32); + pub const Stop: Self = Self(2i32); + pub const Reply: Self = Self(6i32); + pub const Resume: Self = Self(7i32); + pub const Suspend: Self = Self(8i32); + pub const Send: Self = Self(9i32); +} +impl ::core::marker::Copy for LoggingOpcode {} +impl ::core::clone::Clone for LoggingOpcode { + fn clone(&self) -> Self { + *self + } +} +pub type LoggingOptions = *mut ::core::ffi::c_void; +pub type LoggingSession = *mut ::core::ffi::c_void; +pub type RuntimeBrokerErrorSettings = *mut ::core::ffi::c_void; +pub type TracingStatusChangedEventArgs = *mut ::core::ffi::c_void; diff --git a/vendor/windows-sys-0.28.0/src/Windows/Foundation/Metadata/mod.rs b/vendor/windows-sys-0.28.0/src/Windows/Foundation/Metadata/mod.rs new file mode 100644 index 000000000..976c0a031 --- /dev/null +++ b/vendor/windows-sys-0.28.0/src/Windows/Foundation/Metadata/mod.rs @@ -0,0 +1,117 @@ +#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] +#[link(name = "windows")] +extern "system" {} +#[repr(transparent)] +pub struct AttributeTargets(pub u32); +impl AttributeTargets { + pub const All: Self = Self(4294967295u32); + pub const Delegate: Self = Self(1u32); + pub const Enum: Self = Self(2u32); + pub const Event: Self = Self(4u32); + pub const Field: Self = Self(8u32); + pub const Interface: Self = Self(16u32); + pub const Method: Self = Self(64u32); + pub const Parameter: Self = Self(128u32); + pub const Property: Self = Self(256u32); + pub const RuntimeClass: Self = Self(512u32); + pub const Struct: Self = Self(1024u32); + pub const InterfaceImpl: Self = Self(2048u32); + pub const ApiContract: Self = Self(8192u32); +} +impl ::core::marker::Copy for AttributeTargets {} +impl ::core::clone::Clone for AttributeTargets { + fn clone(&self) -> Self { + *self + } +} +#[repr(transparent)] +pub struct CompositionType(pub i32); +impl CompositionType { + pub const Protected: Self = Self(1i32); + pub const Public: Self = Self(2i32); +} +impl ::core::marker::Copy for CompositionType {} +impl ::core::clone::Clone for CompositionType { + fn clone(&self) -> Self { + *self + } +} +#[repr(transparent)] +pub struct DeprecationType(pub i32); +impl DeprecationType { + pub const Deprecate: Self = Self(0i32); + pub const Remove: Self = Self(1i32); +} +impl ::core::marker::Copy for DeprecationType {} +impl ::core::clone::Clone for DeprecationType { + fn clone(&self) -> Self { + *self + } +} +#[repr(transparent)] +pub struct FeatureStage(pub i32); +impl FeatureStage { + pub const AlwaysDisabled: Self = Self(0i32); + pub const DisabledByDefault: Self = Self(1i32); + pub const EnabledByDefault: Self = Self(2i32); + pub const AlwaysEnabled: Self = Self(3i32); +} +impl ::core::marker::Copy for FeatureStage {} +impl ::core::clone::Clone for FeatureStage { + fn clone(&self) -> Self { + *self + } +} +#[repr(transparent)] +pub struct GCPressureAmount(pub i32); +impl GCPressureAmount { + pub const Low: Self = Self(0i32); + pub const Medium: Self = Self(1i32); + pub const High: Self = Self(2i32); +} +impl ::core::marker::Copy for GCPressureAmount {} +impl ::core::clone::Clone for GCPressureAmount { + fn clone(&self) -> Self { + *self + } +} +#[repr(transparent)] +pub struct MarshalingType(pub i32); +impl MarshalingType { + pub const None: Self = Self(1i32); + pub const Agile: Self = Self(2i32); + pub const Standard: Self = Self(3i32); + pub const InvalidMarshaling: Self = Self(0i32); +} +impl ::core::marker::Copy for MarshalingType {} +impl ::core::clone::Clone for MarshalingType { + fn clone(&self) -> Self { + *self + } +} +#[repr(transparent)] +pub struct Platform(pub i32); +impl Platform { + pub const Windows: Self = Self(0i32); + pub const WindowsPhone: Self = Self(1i32); +} +impl ::core::marker::Copy for Platform {} +impl ::core::clone::Clone for Platform { + fn clone(&self) -> Self { + *self + } +} +#[repr(transparent)] +pub struct ThreadingModel(pub i32); +impl ThreadingModel { + pub const STA: Self = Self(1i32); + pub const MTA: Self = Self(2i32); + pub const Both: Self = Self(3i32); + pub const InvalidThreading: Self = Self(0i32); +} +impl ::core::marker::Copy for ThreadingModel {} +impl ::core::clone::Clone for ThreadingModel { + fn clone(&self) -> Self { + *self + } +} diff --git a/vendor/windows-sys-0.28.0/src/Windows/Foundation/Numerics/mod.rs b/vendor/windows-sys-0.28.0/src/Windows/Foundation/Numerics/mod.rs new file mode 100644 index 000000000..5800d20bd --- /dev/null +++ b/vendor/windows-sys-0.28.0/src/Windows/Foundation/Numerics/mod.rs @@ -0,0 +1,114 @@ +#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] +#[link(name = "windows")] +extern "system" {} +#[repr(C)] +pub struct Matrix3x2 { + pub M11: f32, + pub M12: f32, + pub M21: f32, + pub M22: f32, + pub M31: f32, + pub M32: f32, +} +impl ::core::marker::Copy for Matrix3x2 {} +impl ::core::clone::Clone for Matrix3x2 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct Matrix4x4 { + pub M11: f32, + pub M12: f32, + pub M13: f32, + pub M14: f32, + pub M21: f32, + pub M22: f32, + pub M23: f32, + pub M24: f32, + pub M31: f32, + pub M32: f32, + pub M33: f32, + pub M34: f32, + pub M41: f32, + pub M42: f32, + pub M43: f32, + pub M44: f32, +} +impl ::core::marker::Copy for Matrix4x4 {} +impl ::core::clone::Clone for Matrix4x4 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct Plane { + pub Normal: Vector3, + pub D: f32, +} +impl ::core::marker::Copy for Plane {} +impl ::core::clone::Clone for Plane { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct Quaternion { + pub X: f32, + pub Y: f32, + pub Z: f32, + pub W: f32, +} +impl ::core::marker::Copy for Quaternion {} +impl ::core::clone::Clone for Quaternion { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct Rational { + pub Numerator: u32, + pub Denominator: u32, +} +impl ::core::marker::Copy for Rational {} +impl ::core::clone::Clone for Rational { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct Vector2 { + pub X: f32, + pub Y: f32, +} +impl ::core::marker::Copy for Vector2 {} +impl ::core::clone::Clone for Vector2 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct Vector3 { + pub X: f32, + pub Y: f32, + pub Z: f32, +} +impl ::core::marker::Copy for Vector3 {} +impl ::core::clone::Clone for Vector3 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct Vector4 { + pub X: f32, + pub Y: f32, + pub Z: f32, + pub W: f32, +} +impl ::core::marker::Copy for Vector4 {} +impl ::core::clone::Clone for Vector4 { + fn clone(&self) -> Self { + *self + } +} diff --git a/vendor/windows-sys-0.28.0/src/Windows/Foundation/mod.rs b/vendor/windows-sys-0.28.0/src/Windows/Foundation/mod.rs new file mode 100644 index 000000000..c14ad2ff5 --- /dev/null +++ b/vendor/windows-sys-0.28.0/src/Windows/Foundation/mod.rs @@ -0,0 +1,169 @@ +#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] +#[cfg(feature = "Foundation_Collections")] +pub mod Collections; +#[cfg(feature = "Foundation_Diagnostics")] +pub mod Diagnostics; +#[cfg(feature = "Foundation_Metadata")] +pub mod Metadata; +#[cfg(feature = "Foundation_Numerics")] +pub mod Numerics; +#[link(name = "windows")] +extern "system" {} +pub type AsyncActionCompletedHandler = *mut ::core::ffi::c_void; +pub type AsyncActionProgressHandler = *mut ::core::ffi::c_void; +pub type AsyncActionWithProgressCompletedHandler = *mut ::core::ffi::c_void; +pub type AsyncOperationCompletedHandler = *mut ::core::ffi::c_void; +pub type AsyncOperationProgressHandler = *mut ::core::ffi::c_void; +pub type AsyncOperationWithProgressCompletedHandler = *mut ::core::ffi::c_void; +#[repr(transparent)] +pub struct AsyncStatus(pub i32); +impl AsyncStatus { + pub const Canceled: Self = Self(2i32); + pub const Completed: Self = Self(1i32); + pub const Error: Self = Self(3i32); + pub const Started: Self = Self(0i32); +} +impl ::core::marker::Copy for AsyncStatus {} +impl ::core::clone::Clone for AsyncStatus { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct DateTime { + pub UniversalTime: i64, +} +impl ::core::marker::Copy for DateTime {} +impl ::core::clone::Clone for DateTime { + fn clone(&self) -> Self { + *self + } +} +pub type Deferral = *mut ::core::ffi::c_void; +pub type DeferralCompletedHandler = *mut ::core::ffi::c_void; +pub type EventHandler = *mut ::core::ffi::c_void; +#[repr(C)] +pub struct EventRegistrationToken { + pub Value: i64, +} +impl ::core::marker::Copy for EventRegistrationToken {} +impl ::core::clone::Clone for EventRegistrationToken { + fn clone(&self) -> Self { + *self + } +} +pub type IAsyncAction = *mut ::core::ffi::c_void; +pub type IAsyncActionWithProgress = *mut ::core::ffi::c_void; +pub type IAsyncInfo = *mut ::core::ffi::c_void; +pub type IAsyncOperation = *mut ::core::ffi::c_void; +pub type IAsyncOperationWithProgress = *mut ::core::ffi::c_void; +pub type IClosable = *mut ::core::ffi::c_void; +pub type IGetActivationFactory = *mut ::core::ffi::c_void; +pub type IMemoryBuffer = *mut ::core::ffi::c_void; +pub type IMemoryBufferReference = *mut ::core::ffi::c_void; +pub type IPropertyValue = *mut ::core::ffi::c_void; +pub type IReference = *mut ::core::ffi::c_void; +pub type IReferenceArray = *mut ::core::ffi::c_void; +pub type IStringable = *mut ::core::ffi::c_void; +pub type IWwwFormUrlDecoderEntry = *mut ::core::ffi::c_void; +pub type MemoryBuffer = *mut ::core::ffi::c_void; +#[repr(C)] +pub struct Point { + pub X: f32, + pub Y: f32, +} +impl ::core::marker::Copy for Point {} +impl ::core::clone::Clone for Point { + fn clone(&self) -> Self { + *self + } +} +#[repr(transparent)] +pub struct PropertyType(pub i32); +impl PropertyType { + pub const Empty: Self = Self(0i32); + pub const UInt8: Self = Self(1i32); + pub const Int16: Self = Self(2i32); + pub const UInt16: Self = Self(3i32); + pub const Int32: Self = Self(4i32); + pub const UInt32: Self = Self(5i32); + pub const Int64: Self = Self(6i32); + pub const UInt64: Self = Self(7i32); + pub const Single: Self = Self(8i32); + pub const Double: Self = Self(9i32); + pub const Char16: Self = Self(10i32); + pub const Boolean: Self = Self(11i32); + pub const String: Self = Self(12i32); + pub const Inspectable: Self = Self(13i32); + pub const DateTime: Self = Self(14i32); + pub const TimeSpan: Self = Self(15i32); + pub const Guid: Self = Self(16i32); + pub const Point: Self = Self(17i32); + pub const Size: Self = Self(18i32); + pub const Rect: Self = Self(19i32); + pub const OtherType: Self = Self(20i32); + pub const UInt8Array: Self = Self(1025i32); + pub const Int16Array: Self = Self(1026i32); + pub const UInt16Array: Self = Self(1027i32); + pub const Int32Array: Self = Self(1028i32); + pub const UInt32Array: Self = Self(1029i32); + pub const Int64Array: Self = Self(1030i32); + pub const UInt64Array: Self = Self(1031i32); + pub const SingleArray: Self = Self(1032i32); + pub const DoubleArray: Self = Self(1033i32); + pub const Char16Array: Self = Self(1034i32); + pub const BooleanArray: Self = Self(1035i32); + pub const StringArray: Self = Self(1036i32); + pub const InspectableArray: Self = Self(1037i32); + pub const DateTimeArray: Self = Self(1038i32); + pub const TimeSpanArray: Self = Self(1039i32); + pub const GuidArray: Self = Self(1040i32); + pub const PointArray: Self = Self(1041i32); + pub const SizeArray: Self = Self(1042i32); + pub const RectArray: Self = Self(1043i32); + pub const OtherTypeArray: Self = Self(1044i32); +} +impl ::core::marker::Copy for PropertyType {} +impl ::core::clone::Clone for PropertyType { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct Rect { + pub X: f32, + pub Y: f32, + pub Width: f32, + pub Height: f32, +} +impl ::core::marker::Copy for Rect {} +impl ::core::clone::Clone for Rect { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct Size { + pub Width: f32, + pub Height: f32, +} +impl ::core::marker::Copy for Size {} +impl ::core::clone::Clone for Size { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct TimeSpan { + pub Duration: i64, +} +impl ::core::marker::Copy for TimeSpan {} +impl ::core::clone::Clone for TimeSpan { + fn clone(&self) -> Self { + *self + } +} +pub type TypedEventHandler = *mut ::core::ffi::c_void; +pub type Uri = *mut ::core::ffi::c_void; +pub type WwwFormUrlDecoder = *mut ::core::ffi::c_void; +pub type WwwFormUrlDecoderEntry = *mut ::core::ffi::c_void; |