diff --git a/crates/libs/bindgen/src/rust/cfg.rs b/crates/libs/bindgen/src/rust/cfg.rs index b0a14dd762..b323fb8e3d 100644 --- a/crates/libs/bindgen/src/rust/cfg.rs +++ b/crates/libs/bindgen/src/rust/cfg.rs @@ -6,6 +6,7 @@ pub struct Cfg { pub types: std::collections::BTreeMap<&'static str, std::collections::BTreeSet>, pub core_types: std::collections::BTreeSet, pub arches: std::collections::BTreeSet<&'static str>, + pub deprecated: bool, } impl Cfg { @@ -19,6 +20,17 @@ impl Cfg { union.arches.append(&mut other.arches); union } + + pub fn included(&self, writer: &Writer) -> bool { + if writer.package { + for namespace in self.types.keys() { + if !writer.reader.includes_namespace(namespace) { + return false; + } + } + } + true + } } pub fn field_cfg(writer: &Writer, row: metadata::Field) -> Cfg { @@ -134,7 +146,7 @@ fn cfg_add_attributes>(cfg: &mut Cfg, ro } } "DeprecatedAttribute" => { - cfg.add_feature("deprecated"); + cfg.deprecated = true; } _ => {} } diff --git a/crates/libs/bindgen/src/rust/com_methods.rs b/crates/libs/bindgen/src/rust/com_methods.rs index 61d568ab9b..8ab77acc97 100644 --- a/crates/libs/bindgen/src/rust/com_methods.rs +++ b/crates/libs/bindgen/src/rust/com_methods.rs @@ -9,6 +9,11 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef, kind: metadata::Interface let where_clause = writer.where_clause(&signature.params); let mut cfg = cfg::signature_cfg(writer, method); cfg.add_feature(def.namespace()); + + if !cfg.included(writer) { + return quote! {}; + } + let features = writer.cfg_features(&cfg); if kind == metadata::InterfaceKind::None { diff --git a/crates/libs/bindgen/src/rust/delegates.rs b/crates/libs/bindgen/src/rust/delegates.rs index b3fd744c3e..939215754f 100644 --- a/crates/libs/bindgen/src/rust/delegates.rs +++ b/crates/libs/bindgen/src/rust/delegates.rs @@ -16,6 +16,11 @@ fn gen_callback(writer: &Writer, def: metadata::TypeDef) -> TokenStream { let return_type = writer.return_sig(&signature); let cfg = cfg::type_def_cfg(writer, def, &[]); + + if !cfg.included(writer) { + return quote! {}; + } + let features = writer.cfg_features(&cfg); let params = signature.params.iter().map(|p| { diff --git a/crates/libs/bindgen/src/rust/functions.rs b/crates/libs/bindgen/src/rust/functions.rs index 1f09b90437..52bda10152 100644 --- a/crates/libs/bindgen/src/rust/functions.rs +++ b/crates/libs/bindgen/src/rust/functions.rs @@ -24,6 +24,11 @@ pub fn writer(writer: &Writer, namespace: &str, def: metadata::MethodDef) -> Tok fn gen_sys_function(writer: &Writer, namespace: &str, def: metadata::MethodDef) -> TokenStream { let signature = metadata::method_def_signature(namespace, def, &[]); let cfg = cfg::signature_cfg(writer, def); + + if !cfg.included(writer) { + return quote! {}; + } + let mut tokens = writer.cfg_features(&cfg); tokens.combine(&gen_link(writer, namespace, &signature)); tokens diff --git a/crates/libs/bindgen/src/rust/implements.rs b/crates/libs/bindgen/src/rust/implements.rs index 2c76230ed1..9968be3a42 100644 --- a/crates/libs/bindgen/src/rust/implements.rs +++ b/crates/libs/bindgen/src/rust/implements.rs @@ -15,6 +15,11 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef) -> TokenStream { let generic_names = writer.generic_names(generics); let named_phantoms = writer.generic_named_phantoms(generics); let cfg = cfg::type_def_cfg_impl(writer, def, generics); + + if !cfg.included(writer) { + return quote! {}; + } + let features = writer.cfg_features(&cfg); let mut requires = quote! {}; let type_ident = quote! { #type_ident<#generic_names> }; diff --git a/crates/libs/bindgen/src/rust/structs.rs b/crates/libs/bindgen/src/rust/structs.rs index 0a9597eb84..0a1f67fb26 100644 --- a/crates/libs/bindgen/src/rust/structs.rs +++ b/crates/libs/bindgen/src/rust/structs.rs @@ -27,6 +27,10 @@ fn gen_struct_with_name(writer: &Writer, def: metadata::TypeDef, struct_name: &s let flags = def.flags(); let cfg = cfg.union(cfg::type_def_cfg(writer, def, &[])); + if !cfg.included(writer) { + return quote! {}; + } + let repr = if let Some(layout) = def.class_layout() { let packing = Literal::usize_unsuffixed(layout.packing_size()); quote! { #[repr(C, packed(#packing))] } diff --git a/crates/libs/bindgen/src/rust/writer.rs b/crates/libs/bindgen/src/rust/writer.rs index 66ff1afd81..16e9bb81fa 100644 --- a/crates/libs/bindgen/src/rust/writer.rs +++ b/crates/libs/bindgen/src/rust/writer.rs @@ -426,6 +426,10 @@ impl Writer { compact.push(feature); } } + + if cfg.deprecated { + compact.push("deprecated"); + } } compact } @@ -795,18 +799,25 @@ impl Writer { let mut cfg = cfg::signature_cfg(self, method); let signature = self.vtbl_signature(def, false, &signature); cfg.add_feature(def.namespace()); - let cfg_all = self.cfg_features(&cfg); - let cfg_not = self.cfg_not_features(&cfg); - let signature = quote! { pub #name: unsafe extern "system" fn #signature, }; + if cfg.included(self) { + let cfg_all = self.cfg_features(&cfg); + let cfg_not = self.cfg_not_features(&cfg); + + let signature = quote! { pub #name: unsafe extern "system" fn #signature, }; - if cfg_all.is_empty() { - methods.combine(&signature); + if cfg_all.is_empty() { + methods.combine(&signature); + } else { + methods.combine("e! { + #cfg_all + #signature + #cfg_not + #name: usize, + }); + } } else { methods.combine("e! { - #cfg_all - #signature - #cfg_not #name: usize, }); } @@ -1209,6 +1220,7 @@ fn const_ptrs(pointers: usize) -> TokenStream { pub fn cfg_features(cfg: &cfg::Cfg) -> Vec { let mut compact = Vec::<&'static str>::new(); + for feature in cfg.types.keys() { if !feature.is_empty() { for pos in 0..compact.len() { @@ -1220,6 +1232,11 @@ pub fn cfg_features(cfg: &cfg::Cfg) -> Vec { compact.push(feature); } } + + if cfg.deprecated { + compact.push("deprecated"); + } + compact.into_iter().map(to_feature).collect() } diff --git a/crates/libs/core/src/lib.rs b/crates/libs/core/src/lib.rs index 1e36f0d7d9..44d0ef46d2 100644 --- a/crates/libs/core/src/lib.rs +++ b/crates/libs/core/src/lib.rs @@ -3,7 +3,7 @@ Learn more about Rust for Windows here: */ +#![allow(unexpected_cfgs)] #![cfg_attr( windows_debugger_visualizer, debugger_visualizer(natvis_file = "../.natvis") diff --git a/crates/libs/sys/src/Windows/Wdk/Graphics/Direct3D/mod.rs b/crates/libs/sys/src/Windows/Wdk/Graphics/Direct3D/mod.rs index 1a0cc5304a..39a91cbc98 100644 --- a/crates/libs/sys/src/Windows/Wdk/Graphics/Direct3D/mod.rs +++ b/crates/libs/sys/src/Windows/Wdk/Graphics/Direct3D/mod.rs @@ -2103,71 +2103,6 @@ pub type KMTUMDVERSION = i32; pub type KMT_DISPLAY_UMD_VERSION = i32; pub type OUTPUTDUPL_CONTEXT_DEBUG_STATUS = i32; #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DCAPS8 { - pub DeviceType: super::super::super::Win32::Graphics::Direct3D9::D3DDEVTYPE, - pub AdapterOrdinal: u32, - pub Caps: u32, - pub Caps2: u32, - pub Caps3: u32, - pub PresentationIntervals: u32, - pub CursorCaps: u32, - pub DevCaps: u32, - pub PrimitiveMiscCaps: u32, - pub RasterCaps: u32, - pub ZCmpCaps: u32, - pub SrcBlendCaps: u32, - pub DestBlendCaps: u32, - pub AlphaCmpCaps: u32, - pub ShadeCaps: u32, - pub TextureCaps: u32, - pub TextureFilterCaps: u32, - pub CubeTextureFilterCaps: u32, - pub VolumeTextureFilterCaps: u32, - pub TextureAddressCaps: u32, - pub VolumeTextureAddressCaps: u32, - pub LineCaps: u32, - pub MaxTextureWidth: u32, - pub MaxTextureHeight: u32, - pub MaxVolumeExtent: u32, - pub MaxTextureRepeat: u32, - pub MaxTextureAspectRatio: u32, - pub MaxAnisotropy: u32, - pub MaxVertexW: f32, - pub GuardBandLeft: f32, - pub GuardBandTop: f32, - pub GuardBandRight: f32, - pub GuardBandBottom: f32, - pub ExtentsAdjust: f32, - pub StencilCaps: u32, - pub FVFCaps: u32, - pub TextureOpCaps: u32, - pub MaxTextureBlendStages: u32, - pub MaxSimultaneousTextures: u32, - pub VertexProcessingCaps: u32, - pub MaxActiveLights: u32, - pub MaxUserClipPlanes: u32, - pub MaxVertexBlendMatrices: u32, - pub MaxVertexBlendMatrixIndex: u32, - pub MaxPointSize: f32, - pub MaxPrimitiveCount: u32, - pub MaxVertexIndex: u32, - pub MaxStreams: u32, - pub MaxStreamStride: u32, - pub VertexShaderVersion: u32, - pub MaxVertexShaderConst: u32, - pub PixelShaderVersion: u32, - pub MaxPixelShaderValue: f32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DCAPS8 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DCAPS8 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DDDIARG_CREATERESOURCE { pub Format: D3DDDIFORMAT, pub Pool: D3DDDI_POOL, @@ -3645,110 +3580,6 @@ impl Clone for D3DDDI_WAITFORSYNCHRONIZATIONOBJECTFROMCPU_FLAGS_0_0 { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DDEVICEDESC_V1 { - pub dwSize: u32, - pub dwFlags: u32, - pub dcmColorModel: u32, - pub dwDevCaps: u32, - pub dtcTransformCaps: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMCAPS, - pub bClipping: super::super::super::Win32::Foundation::BOOL, - pub dlcLightingCaps: super::super::super::Win32::Graphics::Direct3D9::D3DLIGHTINGCAPS, - pub dpcLineCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, - pub dpcTriCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, - pub dwDeviceRenderBitDepth: u32, - pub dwDeviceZBufferBitDepth: u32, - pub dwMaxBufferSize: u32, - pub dwMaxVertexCount: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DDEVICEDESC_V1 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DDEVICEDESC_V1 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DDEVICEDESC_V2 { - pub dwSize: u32, - pub dwFlags: u32, - pub dcmColorModel: u32, - pub dwDevCaps: u32, - pub dtcTransformCaps: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMCAPS, - pub bClipping: super::super::super::Win32::Foundation::BOOL, - pub dlcLightingCaps: super::super::super::Win32::Graphics::Direct3D9::D3DLIGHTINGCAPS, - pub dpcLineCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, - pub dpcTriCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, - pub dwDeviceRenderBitDepth: u32, - pub dwDeviceZBufferBitDepth: u32, - pub dwMaxBufferSize: u32, - pub dwMaxVertexCount: u32, - pub dwMinTextureWidth: u32, - pub dwMinTextureHeight: u32, - pub dwMaxTextureWidth: u32, - pub dwMaxTextureHeight: u32, - pub dwMinStippleWidth: u32, - pub dwMaxStippleWidth: u32, - pub dwMinStippleHeight: u32, - pub dwMaxStippleHeight: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DDEVICEDESC_V2 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DDEVICEDESC_V2 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DDEVICEDESC_V3 { - pub dwSize: u32, - pub dwFlags: u32, - pub dcmColorModel: u32, - pub dwDevCaps: u32, - pub dtcTransformCaps: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMCAPS, - pub bClipping: super::super::super::Win32::Foundation::BOOL, - pub dlcLightingCaps: super::super::super::Win32::Graphics::Direct3D9::D3DLIGHTINGCAPS, - pub dpcLineCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, - pub dpcTriCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, - pub dwDeviceRenderBitDepth: u32, - pub dwDeviceZBufferBitDepth: u32, - pub dwMaxBufferSize: u32, - pub dwMaxVertexCount: u32, - pub dwMinTextureWidth: u32, - pub dwMinTextureHeight: u32, - pub dwMaxTextureWidth: u32, - pub dwMaxTextureHeight: u32, - pub dwMinStippleWidth: u32, - pub dwMaxStippleWidth: u32, - pub dwMinStippleHeight: u32, - pub dwMaxStippleHeight: u32, - pub dwMaxTextureRepeat: u32, - pub dwMaxTextureAspectRatio: u32, - pub dwMaxAnisotropy: u32, - pub dvGuardBandLeft: f32, - pub dvGuardBandTop: f32, - pub dvGuardBandRight: f32, - pub dvGuardBandBottom: f32, - pub dvExtentsAdjust: f32, - pub dwStencilCaps: u32, - pub dwFVFCaps: u32, - pub dwTextureOpCaps: u32, - pub wMaxTextureBlendStages: u16, - pub wMaxSimultaneousTextures: u16, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DDEVICEDESC_V3 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DDEVICEDESC_V3 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DGPU_PHYSICAL_ADDRESS { pub SegmentId: u32, pub Padding: u32, @@ -3761,129 +3592,6 @@ impl Clone for D3DGPU_PHYSICAL_ADDRESS { } } #[repr(C)] -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub struct D3DHAL_CALLBACKS { - pub dwSize: u32, - pub ContextCreate: LPD3DHAL_CONTEXTCREATECB, - pub ContextDestroy: LPD3DHAL_CONTEXTDESTROYCB, - pub ContextDestroyAll: LPD3DHAL_CONTEXTDESTROYALLCB, - pub SceneCapture: LPD3DHAL_SCENECAPTURECB, - pub lpReserved10: *mut core::ffi::c_void, - pub lpReserved11: *mut core::ffi::c_void, - pub RenderState: LPD3DHAL_RENDERSTATECB, - pub RenderPrimitive: LPD3DHAL_RENDERPRIMITIVECB, - pub dwReserved: u32, - pub TextureCreate: LPD3DHAL_TEXTURECREATECB, - pub TextureDestroy: LPD3DHAL_TEXTUREDESTROYCB, - pub TextureSwap: LPD3DHAL_TEXTURESWAPCB, - pub TextureGetSurf: LPD3DHAL_TEXTUREGETSURFCB, - pub lpReserved12: *mut core::ffi::c_void, - pub lpReserved13: *mut core::ffi::c_void, - pub lpReserved14: *mut core::ffi::c_void, - pub lpReserved15: *mut core::ffi::c_void, - pub lpReserved16: *mut core::ffi::c_void, - pub lpReserved17: *mut core::ffi::c_void, - pub lpReserved18: *mut core::ffi::c_void, - pub lpReserved19: *mut core::ffi::c_void, - pub lpReserved20: *mut core::ffi::c_void, - pub lpReserved21: *mut core::ffi::c_void, - pub GetState: LPD3DHAL_GETSTATECB, - pub dwReserved0: u32, - pub dwReserved1: u32, - pub dwReserved2: u32, - pub dwReserved3: u32, - pub dwReserved4: u32, - pub dwReserved5: u32, - pub dwReserved6: u32, - pub dwReserved7: u32, - pub dwReserved8: u32, - pub dwReserved9: u32, -} -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_CALLBACKS {} -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_CALLBACKS { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub struct D3DHAL_CALLBACKS2 { - pub dwSize: u32, - pub dwFlags: u32, - pub SetRenderTarget: LPD3DHAL_SETRENDERTARGETCB, - pub Clear: LPD3DHAL_CLEARCB, - pub DrawOnePrimitive: LPD3DHAL_DRAWONEPRIMITIVECB, - pub DrawOneIndexedPrimitive: LPD3DHAL_DRAWONEINDEXEDPRIMITIVECB, - pub DrawPrimitives: LPD3DHAL_DRAWPRIMITIVESCB, -} -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_CALLBACKS2 {} -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_CALLBACKS2 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub struct D3DHAL_CALLBACKS3 { - pub dwSize: u32, - pub dwFlags: u32, - pub Clear2: LPD3DHAL_CLEAR2CB, - pub lpvReserved: *mut core::ffi::c_void, - pub ValidateTextureStageState: LPD3DHAL_VALIDATETEXTURESTAGESTATECB, - pub DrawPrimitives2: LPD3DHAL_DRAWPRIMITIVES2CB, -} -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_CALLBACKS3 {} -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_CALLBACKS3 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_CLEAR2DATA { - pub dwhContext: usize, - pub dwFlags: u32, - pub dwFillColor: u32, - pub dvFillDepth: f32, - pub dwFillStencil: u32, - pub lpRects: *mut super::super::super::Win32::Graphics::Direct3D9::D3DRECT, - pub dwNumRects: u32, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_CLEAR2DATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_CLEAR2DATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_CLEARDATA { - pub dwhContext: usize, - pub dwFlags: u32, - pub dwFillColor: u32, - pub dwFillDepth: u32, - pub lpRects: *mut super::super::super::Win32::Graphics::Direct3D9::D3DRECT, - pub dwNumRects: u32, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_CLEARDATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_CLEARDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_CLIPPEDTRIANGLEFAN { pub FirstVertexOffset: u32, pub dwEdgeFlags: u32, @@ -3896,80 +3604,6 @@ impl Clone for D3DHAL_CLIPPEDTRIANGLEFAN { } } #[repr(C)] -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub struct D3DHAL_CONTEXTCREATEDATA { - pub Anonymous1: D3DHAL_CONTEXTCREATEDATA_0, - pub Anonymous2: D3DHAL_CONTEXTCREATEDATA_1, - pub Anonymous3: D3DHAL_CONTEXTCREATEDATA_2, - pub Anonymous4: D3DHAL_CONTEXTCREATEDATA_3, - pub dwhContext: usize, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_CONTEXTCREATEDATA {} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_CONTEXTCREATEDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub union D3DHAL_CONTEXTCREATEDATA_0 { - pub lpDDGbl: *mut super::super::super::Win32::Graphics::DirectDraw::DDRAWI_DIRECTDRAW_GBL, - pub lpDDLcl: *mut super::super::super::Win32::Graphics::DirectDraw::DDRAWI_DIRECTDRAW_LCL, -} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_CONTEXTCREATEDATA_0 {} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_CONTEXTCREATEDATA_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub union D3DHAL_CONTEXTCREATEDATA_1 { - pub lpDDS: *mut core::ffi::c_void, - pub lpDDSLcl: *mut super::super::super::Win32::Graphics::DirectDraw::DDRAWI_DDRAWSURFACE_LCL, -} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_CONTEXTCREATEDATA_1 {} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_CONTEXTCREATEDATA_1 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub union D3DHAL_CONTEXTCREATEDATA_2 { - pub lpDDSZ: *mut core::ffi::c_void, - pub lpDDSZLcl: *mut super::super::super::Win32::Graphics::DirectDraw::DDRAWI_DDRAWSURFACE_LCL, -} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_CONTEXTCREATEDATA_2 {} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_CONTEXTCREATEDATA_2 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub union D3DHAL_CONTEXTCREATEDATA_3 { - pub dwPID: u32, - pub dwrstates: usize, -} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_CONTEXTCREATEDATA_3 {} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_CONTEXTCREATEDATA_3 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_CONTEXTDESTROYALLDATA { pub dwPID: u32, pub ddrval: windows_sys::core::HRESULT, @@ -4063,20 +3697,6 @@ impl Clone for D3DHAL_D3DEXTENDEDCAPS { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DP2ADDDIRTYBOX { - pub dwSurface: u32, - pub DirtyBox: super::super::super::Win32::Graphics::Direct3D9::D3DBOX, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2ADDDIRTYBOX {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2ADDDIRTYBOX { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_DP2ADDDIRTYRECT { pub dwSurface: u32, pub rDirtyArea: super::super::super::Win32::Foundation::RECTL, @@ -4104,23 +3724,6 @@ impl Clone for D3DHAL_DP2BLT { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DP2BUFFERBLT { - pub dwDDDestSurface: u32, - pub dwDDSrcSurface: u32, - pub dwOffset: u32, - pub rSrc: super::super::super::Win32::Graphics::Direct3D9::D3DRANGE, - pub dwFlags: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2BUFFERBLT {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2BUFFERBLT { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_DP2CLEAR { pub dwFlags: u32, pub dwFillColor: u32, @@ -4170,26 +3773,6 @@ impl Clone for D3DHAL_DP2COMMAND_0 { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DP2COMPOSERECTS { - pub SrcSurfaceHandle: u32, - pub DstSurfaceHandle: u32, - pub SrcRectDescsVBHandle: u32, - pub NumRects: u32, - pub DstRectDescsVBHandle: u32, - pub Operation: super::super::super::Win32::Graphics::Direct3D9::D3DCOMPOSERECTSOP, - pub XOffset: i32, - pub YOffset: i32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2COMPOSERECTS {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2COMPOSERECTS { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_DP2CREATELIGHT { pub dwIndex: u32, } @@ -4211,20 +3794,6 @@ impl Clone for D3DHAL_DP2CREATEPIXELSHADER { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DP2CREATEQUERY { - pub dwQueryID: u32, - pub QueryType: super::super::super::Win32::Graphics::Direct3D9::D3DQUERYTYPE, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2CREATEQUERY {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2CREATEQUERY { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_DP2CREATEVERTEXSHADER { pub dwHandle: u32, pub dwDeclSize: u32, @@ -4269,72 +3838,6 @@ impl Clone for D3DHAL_DP2DELETEQUERY { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DP2DRAWINDEXEDPRIMITIVE { - pub primType: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMITIVETYPE, - pub BaseVertexIndex: i32, - pub MinIndex: u32, - pub NumVertices: u32, - pub StartIndex: u32, - pub PrimitiveCount: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2DRAWINDEXEDPRIMITIVE {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2DRAWINDEXEDPRIMITIVE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DP2DRAWINDEXEDPRIMITIVE2 { - pub primType: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMITIVETYPE, - pub BaseVertexOffset: i32, - pub MinIndex: u32, - pub NumVertices: u32, - pub StartIndexOffset: u32, - pub PrimitiveCount: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2DRAWINDEXEDPRIMITIVE2 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2DRAWINDEXEDPRIMITIVE2 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DP2DRAWPRIMITIVE { - pub primType: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMITIVETYPE, - pub VStart: u32, - pub PrimitiveCount: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2DRAWPRIMITIVE {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2DRAWPRIMITIVE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DP2DRAWPRIMITIVE2 { - pub primType: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMITIVETYPE, - pub FirstVertexOffset: u32, - pub PrimitiveCount: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2DRAWPRIMITIVE2 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2DRAWPRIMITIVE2 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_DP2DRAWRECTPATCH { pub Handle: u32, pub Flags: u32, @@ -4368,20 +3871,6 @@ impl Clone for D3DHAL_DP2EXT { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DP2GENERATEMIPSUBLEVELS { - pub hSurface: u32, - pub Filter: super::super::super::Win32::Graphics::Direct3D9::D3DTEXTUREFILTERTYPE, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2GENERATEMIPSUBLEVELS {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2GENERATEMIPSUBLEVELS { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_DP2INDEXEDLINELIST { pub wV1: u16, pub wV2: u16, @@ -4479,20 +3968,6 @@ impl Clone for D3DHAL_DP2LINESTRIP { } } #[repr(C)] -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] -pub struct D3DHAL_DP2MULTIPLYTRANSFORM { - pub xfrmType: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMSTATETYPE, - pub matrix: super::super::super::Foundation::Numerics::Matrix4x4, -} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] -impl Copy for D3DHAL_DP2MULTIPLYTRANSFORM {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] -impl Clone for D3DHAL_DP2MULTIPLYTRANSFORM { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_DP2PIXELSHADER { pub dwHandle: u32, } @@ -4514,34 +3989,6 @@ impl Clone for D3DHAL_DP2POINTS { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DP2RENDERSTATE { - pub RenderState: super::super::super::Win32::Graphics::Direct3D9::D3DRENDERSTATETYPE, - pub Anonymous: D3DHAL_DP2RENDERSTATE_0, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2RENDERSTATE {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2RENDERSTATE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub union D3DHAL_DP2RENDERSTATE_0 { - pub dvState: f32, - pub dwState: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2RENDERSTATE_0 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2RENDERSTATE_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_DP2RESPONSE { pub bCommand: u8, pub bReserved: u8, @@ -4735,20 +4182,6 @@ impl Clone for D3DHAL_DP2SETTEXLOD { } } #[repr(C)] -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] -pub struct D3DHAL_DP2SETTRANSFORM { - pub xfrmType: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMSTATETYPE, - pub matrix: super::super::super::Foundation::Numerics::Matrix4x4, -} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] -impl Copy for D3DHAL_DP2SETTRANSFORM {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] -impl Clone for D3DHAL_DP2SETTRANSFORM { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_DP2SETVERTEXSHADERCONST { pub dwRegister: u32, pub dwCount: u32, @@ -4770,21 +4203,6 @@ impl Clone for D3DHAL_DP2STARTVERTEX { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DP2STATESET { - pub dwOperation: u32, - pub dwParam: u32, - pub sbType: super::super::super::Win32::Graphics::Direct3D9::D3DSTATEBLOCKTYPE, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2STATESET {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2STATESET { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_DP2SURFACEBLT { pub dwSource: u32, pub rSource: super::super::super::Win32::Foundation::RECTL, @@ -4902,25 +4320,6 @@ impl Clone for D3DHAL_DP2VIEWPORTINFO { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DP2VOLUMEBLT { - pub dwDDDestSurface: u32, - pub dwDDSrcSurface: u32, - pub dwDestX: u32, - pub dwDestY: u32, - pub dwDestZ: u32, - pub srcBox: super::super::super::Win32::Graphics::Direct3D9::D3DBOX, - pub dwFlags: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DP2VOLUMEBLT {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DP2VOLUMEBLT { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_DP2WINFO { pub dvWNear: f32, pub dvWFar: f32, @@ -4943,80 +4342,11 @@ impl Clone for D3DHAL_DP2ZRANGE { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DRAWONEINDEXEDPRIMITIVEDATA { - pub dwhContext: usize, - pub dwFlags: u32, - pub PrimitiveType: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMITIVETYPE, - pub Anonymous: D3DHAL_DRAWONEINDEXEDPRIMITIVEDATA_0, - pub lpvVertices: *mut core::ffi::c_void, - pub dwNumVertices: u32, - pub lpwIndices: *mut u16, - pub dwNumIndices: u32, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DRAWONEINDEXEDPRIMITIVEDATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DRAWONEINDEXEDPRIMITIVEDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub union D3DHAL_DRAWONEINDEXEDPRIMITIVEDATA_0 { - pub VertexType: super::super::super::Win32::Graphics::Direct3D9::D3DVERTEXTYPE, - pub dwFVFControl: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DRAWONEINDEXEDPRIMITIVEDATA_0 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DRAWONEINDEXEDPRIMITIVEDATA_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_DRAWONEPRIMITIVEDATA { - pub dwhContext: usize, - pub dwFlags: u32, - pub PrimitiveType: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMITIVETYPE, - pub Anonymous: D3DHAL_DRAWONEPRIMITIVEDATA_0, - pub lpvVertices: *mut core::ffi::c_void, - pub dwNumVertices: u32, - pub dwReserved: u32, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DRAWONEPRIMITIVEDATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DRAWONEPRIMITIVEDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub union D3DHAL_DRAWONEPRIMITIVEDATA_0 { - pub VertexType: super::super::super::Win32::Graphics::Direct3D9::D3DVERTEXTYPE, - pub dwFVFControl: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_DRAWONEPRIMITIVEDATA_0 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_DRAWONEPRIMITIVEDATA_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -pub struct D3DHAL_DRAWPRIMCOUNTS { - pub wNumStateChanges: u16, - pub wPrimitiveType: u16, - pub wVertexType: u16, - pub wNumVertices: u16, +pub struct D3DHAL_DRAWPRIMCOUNTS { + pub wNumStateChanges: u16, + pub wPrimitiveType: u16, + pub wVertexType: u16, + pub wNumVertices: u16, } impl Copy for D3DHAL_DRAWPRIMCOUNTS {} impl Clone for D3DHAL_DRAWPRIMCOUNTS { @@ -5025,60 +4355,6 @@ impl Clone for D3DHAL_DRAWPRIMCOUNTS { } } #[repr(C)] -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub struct D3DHAL_DRAWPRIMITIVES2DATA { - pub dwhContext: usize, - pub dwFlags: u32, - pub dwVertexType: u32, - pub lpDDCommands: *mut super::super::super::Win32::Graphics::DirectDraw::DDRAWI_DDRAWSURFACE_LCL, - pub dwCommandOffset: u32, - pub dwCommandLength: u32, - pub Anonymous1: D3DHAL_DRAWPRIMITIVES2DATA_0, - pub dwVertexOffset: u32, - pub dwVertexLength: u32, - pub dwReqVertexBufSize: u32, - pub dwReqCommandBufSize: u32, - pub lpdwRStates: *mut u32, - pub Anonymous2: D3DHAL_DRAWPRIMITIVES2DATA_1, - pub dwErrorOffset: u32, -} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_DRAWPRIMITIVES2DATA {} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_DRAWPRIMITIVES2DATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub union D3DHAL_DRAWPRIMITIVES2DATA_0 { - pub lpDDVertex: *mut super::super::super::Win32::Graphics::DirectDraw::DDRAWI_DDRAWSURFACE_LCL, - pub lpVertices: *mut core::ffi::c_void, -} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_DRAWPRIMITIVES2DATA_0 {} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_DRAWPRIMITIVES2DATA_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub union D3DHAL_DRAWPRIMITIVES2DATA_1 { - pub dwVertexSize: u32, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_DRAWPRIMITIVES2DATA_1 {} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_DRAWPRIMITIVES2DATA_1 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_DRAWPRIMITIVESDATA { pub dwhContext: usize, pub dwFlags: u32, @@ -5093,60 +4369,6 @@ impl Clone for D3DHAL_DRAWPRIMITIVESDATA { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_GETSTATEDATA { - pub dwhContext: usize, - pub dwWhich: u32, - pub ddState: super::super::super::Win32::Graphics::Direct3D9::D3DSTATE, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_GETSTATEDATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_GETSTATEDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw"))] -pub struct D3DHAL_GLOBALDRIVERDATA { - pub dwSize: u32, - pub hwCaps: D3DDEVICEDESC_V1, - pub dwNumVertices: u32, - pub dwNumClipVertices: u32, - pub dwNumTextureFormats: u32, - pub lpTextureFormats: *mut super::super::super::Win32::Graphics::DirectDraw::DDSURFACEDESC, -} -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw"))] -impl Copy for D3DHAL_GLOBALDRIVERDATA {} -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw"))] -impl Clone for D3DHAL_GLOBALDRIVERDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DHAL_RENDERPRIMITIVEDATA { - pub dwhContext: usize, - pub dwOffset: u32, - pub dwStatus: u32, - pub lpExeBuf: *mut core::ffi::c_void, - pub dwTLOffset: u32, - pub lpTLBuf: *mut core::ffi::c_void, - pub diInstruction: super::super::super::Win32::Graphics::Direct3D9::D3DINSTRUCTION, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DHAL_RENDERPRIMITIVEDATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DHAL_RENDERPRIMITIVEDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_RENDERSTATEDATA { pub dwhContext: usize, pub dwOffset: u32, @@ -5173,50 +4395,6 @@ impl Clone for D3DHAL_SCENECAPTUREDATA { } } #[repr(C)] -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub struct D3DHAL_SETRENDERTARGETDATA { - pub dwhContext: usize, - pub Anonymous1: D3DHAL_SETRENDERTARGETDATA_0, - pub Anonymous2: D3DHAL_SETRENDERTARGETDATA_1, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_SETRENDERTARGETDATA {} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_SETRENDERTARGETDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub union D3DHAL_SETRENDERTARGETDATA_0 { - pub lpDDS: *mut core::ffi::c_void, - pub lpDDSLcl: *mut super::super::super::Win32::Graphics::DirectDraw::DDRAWI_DDRAWSURFACE_LCL, -} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_SETRENDERTARGETDATA_0 {} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_SETRENDERTARGETDATA_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub union D3DHAL_SETRENDERTARGETDATA_1 { - pub lpDDSZ: *mut core::ffi::c_void, - pub lpDDSZLcl: *mut super::super::super::Win32::Graphics::DirectDraw::DDRAWI_DDRAWSURFACE_LCL, -} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Copy for D3DHAL_SETRENDERTARGETDATA_1 {} -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -impl Clone for D3DHAL_SETRENDERTARGETDATA_1 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DHAL_TEXTURECREATEDATA { pub dwhContext: usize, pub lpDDS: *mut core::ffi::c_void, @@ -12458,214 +11636,6 @@ impl Clone for D3DLINEPATTERN { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTDEVICEDESC_V3 { - pub dwSize: u32, - pub dwFlags: u32, - pub dcmColorModel: u32, - pub dwDevCaps: u32, - pub dtcTransformCaps: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMCAPS, - pub bClipping: super::super::super::Win32::Foundation::BOOL, - pub dlcLightingCaps: super::super::super::Win32::Graphics::Direct3D9::D3DLIGHTINGCAPS, - pub dpcLineCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, - pub dpcTriCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, - pub dwDeviceRenderBitDepth: u32, - pub dwDeviceZBufferBitDepth: u32, - pub dwMaxBufferSize: u32, - pub dwMaxVertexCount: u32, - pub dwMinTextureWidth: u32, - pub dwMinTextureHeight: u32, - pub dwMaxTextureWidth: u32, - pub dwMaxTextureHeight: u32, - pub dwMinStippleWidth: u32, - pub dwMaxStippleWidth: u32, - pub dwMinStippleHeight: u32, - pub dwMaxStippleHeight: u32, - pub dwMaxTextureRepeat: u32, - pub dwMaxTextureAspectRatio: u32, - pub dwMaxAnisotropy: u32, - pub dvGuardBandLeft: f32, - pub dvGuardBandTop: f32, - pub dvGuardBandRight: f32, - pub dvGuardBandBottom: f32, - pub dvExtentsAdjust: f32, - pub dwStencilCaps: u32, - pub dwFVFCaps: u32, - pub dwTextureOpCaps: u32, - pub wMaxTextureBlendStages: u16, - pub wMaxSimultaneousTextures: u16, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTDEVICEDESC_V3 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTDEVICEDESC_V3 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHALDEVICEDESC_V1 { - pub dwSize: u32, - pub dwFlags: u32, - pub dcmColorModel: u32, - pub dwDevCaps: u32, - pub dtcTransformCaps: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMCAPS, - pub bClipping: super::super::super::Win32::Foundation::BOOL, - pub dlcLightingCaps: super::super::super::Win32::Graphics::Direct3D9::D3DLIGHTINGCAPS, - pub dpcLineCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, - pub dpcTriCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, - pub dwDeviceRenderBitDepth: u32, - pub dwDeviceZBufferBitDepth: u32, - pub dwMaxBufferSize: u32, - pub dwMaxVertexCount: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHALDEVICEDESC_V1 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHALDEVICEDESC_V1 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHALDEVICEDESC_V2 { - pub dwSize: u32, - pub dwFlags: u32, - pub dcmColorModel: u32, - pub dwDevCaps: u32, - pub dtcTransformCaps: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMCAPS, - pub bClipping: super::super::super::Win32::Foundation::BOOL, - pub dlcLightingCaps: super::super::super::Win32::Graphics::Direct3D9::D3DLIGHTINGCAPS, - pub dpcLineCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, - pub dpcTriCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, - pub dwDeviceRenderBitDepth: u32, - pub dwDeviceZBufferBitDepth: u32, - pub dwMaxBufferSize: u32, - pub dwMaxVertexCount: u32, - pub dwMinTextureWidth: u32, - pub dwMinTextureHeight: u32, - pub dwMaxTextureWidth: u32, - pub dwMaxTextureHeight: u32, - pub dwMinStippleWidth: u32, - pub dwMaxStippleWidth: u32, - pub dwMinStippleHeight: u32, - pub dwMaxStippleHeight: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHALDEVICEDESC_V2 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHALDEVICEDESC_V2 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub struct D3DNTHAL_CALLBACKS { - pub dwSize: u32, - pub ContextCreate: LPD3DNTHAL_CONTEXTCREATECB, - pub ContextDestroy: LPD3DNTHAL_CONTEXTDESTROYCB, - pub ContextDestroyAll: LPD3DNTHAL_CONTEXTDESTROYALLCB, - pub SceneCapture: LPD3DNTHAL_SCENECAPTURECB, - pub dwReserved10: *mut core::ffi::c_void, - pub dwReserved11: *mut core::ffi::c_void, - pub dwReserved22: *mut core::ffi::c_void, - pub dwReserved23: *mut core::ffi::c_void, - pub dwReserved: usize, - pub TextureCreate: LPD3DNTHAL_TEXTURECREATECB, - pub TextureDestroy: LPD3DNTHAL_TEXTUREDESTROYCB, - pub TextureSwap: LPD3DNTHAL_TEXTURESWAPCB, - pub TextureGetSurf: LPD3DNTHAL_TEXTUREGETSURFCB, - pub dwReserved12: *mut core::ffi::c_void, - pub dwReserved13: *mut core::ffi::c_void, - pub dwReserved14: *mut core::ffi::c_void, - pub dwReserved15: *mut core::ffi::c_void, - pub dwReserved16: *mut core::ffi::c_void, - pub dwReserved17: *mut core::ffi::c_void, - pub dwReserved18: *mut core::ffi::c_void, - pub dwReserved19: *mut core::ffi::c_void, - pub dwReserved20: *mut core::ffi::c_void, - pub dwReserved21: *mut core::ffi::c_void, - pub dwReserved24: *mut core::ffi::c_void, - pub dwReserved0: usize, - pub dwReserved1: usize, - pub dwReserved2: usize, - pub dwReserved3: usize, - pub dwReserved4: usize, - pub dwReserved5: usize, - pub dwReserved6: usize, - pub dwReserved7: usize, - pub dwReserved8: usize, - pub dwReserved9: usize, -} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Copy for D3DNTHAL_CALLBACKS {} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Clone for D3DNTHAL_CALLBACKS { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub struct D3DNTHAL_CALLBACKS2 { - pub dwSize: u32, - pub dwFlags: u32, - pub SetRenderTarget: LPD3DNTHAL_SETRENDERTARGETCB, - pub dwReserved1: *mut core::ffi::c_void, - pub dwReserved2: *mut core::ffi::c_void, - pub dwReserved3: *mut core::ffi::c_void, - pub dwReserved4: *mut core::ffi::c_void, -} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Copy for D3DNTHAL_CALLBACKS2 {} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Clone for D3DNTHAL_CALLBACKS2 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw"))] -pub struct D3DNTHAL_CALLBACKS3 { - pub dwSize: u32, - pub dwFlags: u32, - pub Clear2: LPD3DNTHAL_CLEAR2CB, - pub lpvReserved: *mut core::ffi::c_void, - pub ValidateTextureStageState: LPD3DNTHAL_VALIDATETEXTURESTAGESTATECB, - pub DrawPrimitives2: LPD3DNTHAL_DRAWPRIMITIVES2CB, -} -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw"))] -impl Copy for D3DNTHAL_CALLBACKS3 {} -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw"))] -impl Clone for D3DNTHAL_CALLBACKS3 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_CLEAR2DATA { - pub dwhContext: usize, - pub dwFlags: u32, - pub dwFillColor: u32, - pub dvFillDepth: f32, - pub dwFillStencil: u32, - pub lpRects: *mut super::super::super::Win32::Graphics::Direct3D9::D3DRECT, - pub dwNumRects: u32, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_CLEAR2DATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_CLEAR2DATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_CLIPPEDTRIANGLEFAN { pub FirstVertexOffset: u32, pub dwEdgeFlags: u32, @@ -12678,66 +11648,6 @@ impl Clone for D3DNTHAL_CLIPPEDTRIANGLEFAN { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub struct D3DNTHAL_CONTEXTCREATEDATA { - pub Anonymous1: D3DNTHAL_CONTEXTCREATEDATA_0, - pub Anonymous2: D3DNTHAL_CONTEXTCREATEDATA_1, - pub Anonymous3: D3DNTHAL_CONTEXTCREATEDATA_2, - pub dwPID: u32, - pub dwhContext: usize, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Copy for D3DNTHAL_CONTEXTCREATEDATA {} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Clone for D3DNTHAL_CONTEXTCREATEDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub union D3DNTHAL_CONTEXTCREATEDATA_0 { - pub lpDDGbl: *mut super::super::super::Win32::Graphics::DirectDraw::DD_DIRECTDRAW_GLOBAL, - pub lpDDLcl: *mut super::super::super::Win32::Graphics::DirectDraw::DD_DIRECTDRAW_LOCAL, -} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Copy for D3DNTHAL_CONTEXTCREATEDATA_0 {} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Clone for D3DNTHAL_CONTEXTCREATEDATA_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub union D3DNTHAL_CONTEXTCREATEDATA_1 { - pub lpDDS: *mut super::super::super::Win32::Graphics::DirectDraw::DD_SURFACE_LOCAL, - pub lpDDSLcl: *mut super::super::super::Win32::Graphics::DirectDraw::DD_SURFACE_LOCAL, -} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Copy for D3DNTHAL_CONTEXTCREATEDATA_1 {} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Clone for D3DNTHAL_CONTEXTCREATEDATA_1 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub union D3DNTHAL_CONTEXTCREATEDATA_2 { - pub lpDDSZ: *mut super::super::super::Win32::Graphics::DirectDraw::DD_SURFACE_LOCAL, - pub lpDDSZLcl: *mut super::super::super::Win32::Graphics::DirectDraw::DD_SURFACE_LOCAL, -} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Copy for D3DNTHAL_CONTEXTCREATEDATA_2 {} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Clone for D3DNTHAL_CONTEXTCREATEDATA_2 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_CONTEXTDESTROYALLDATA { pub dwPID: u32, pub ddrval: windows_sys::core::HRESULT, @@ -12831,20 +11741,6 @@ impl Clone for D3DNTHAL_D3DEXTENDEDCAPS { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_DP2ADDDIRTYBOX { - pub dwSurface: u32, - pub DirtyBox: super::super::super::Win32::Graphics::Direct3D9::D3DBOX, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2ADDDIRTYBOX {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2ADDDIRTYBOX { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_DP2ADDDIRTYRECT { pub dwSurface: u32, pub rDirtyArea: super::super::super::Win32::Foundation::RECTL, @@ -12872,23 +11768,6 @@ impl Clone for D3DNTHAL_DP2BLT { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_DP2BUFFERBLT { - pub dwDDDestSurface: u32, - pub dwDDSrcSurface: u32, - pub dwOffset: u32, - pub rSrc: super::super::super::Win32::Graphics::Direct3D9::D3DRANGE, - pub dwFlags: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2BUFFERBLT {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2BUFFERBLT { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_DP2CLEAR { pub dwFlags: u32, pub dwFillColor: u32, @@ -12938,26 +11817,6 @@ impl Clone for D3DNTHAL_DP2COMMAND_0 { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_DP2COMPOSERECTS { - pub SrcSurfaceHandle: u32, - pub DstSurfaceHandle: u32, - pub SrcRectDescsVBHandle: u32, - pub NumRects: u32, - pub DstRectDescsVBHandle: u32, - pub Operation: super::super::super::Win32::Graphics::Direct3D9::D3DCOMPOSERECTSOP, - pub XOffset: i32, - pub YOffset: i32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2COMPOSERECTS {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2COMPOSERECTS { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_DP2CREATELIGHT { pub dwIndex: u32, } @@ -12979,20 +11838,6 @@ impl Clone for D3DNTHAL_DP2CREATEPIXELSHADER { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_DP2CREATEQUERY { - pub dwQueryID: u32, - pub QueryType: super::super::super::Win32::Graphics::Direct3D9::D3DQUERYTYPE, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2CREATEQUERY {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2CREATEQUERY { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_DP2CREATEVERTEXSHADER { pub dwHandle: u32, pub dwDeclSize: u32, @@ -13037,72 +11882,6 @@ impl Clone for D3DNTHAL_DP2DELETEQUERY { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE { - pub primType: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMITIVETYPE, - pub BaseVertexIndex: i32, - pub MinIndex: u32, - pub NumVertices: u32, - pub StartIndex: u32, - pub PrimitiveCount: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2 { - pub primType: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMITIVETYPE, - pub BaseVertexOffset: i32, - pub MinIndex: u32, - pub NumVertices: u32, - pub StartIndexOffset: u32, - pub PrimitiveCount: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_DP2DRAWPRIMITIVE { - pub primType: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMITIVETYPE, - pub VStart: u32, - pub PrimitiveCount: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2DRAWPRIMITIVE {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2DRAWPRIMITIVE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_DP2DRAWPRIMITIVE2 { - pub primType: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMITIVETYPE, - pub FirstVertexOffset: u32, - pub PrimitiveCount: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2DRAWPRIMITIVE2 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2DRAWPRIMITIVE2 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_DP2DRAWRECTPATCH { pub Handle: u32, pub Flags: u32, @@ -13136,20 +11915,6 @@ impl Clone for D3DNTHAL_DP2EXT { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_DP2GENERATEMIPSUBLEVELS { - pub hSurface: u32, - pub Filter: super::super::super::Win32::Graphics::Direct3D9::D3DTEXTUREFILTERTYPE, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2GENERATEMIPSUBLEVELS {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2GENERATEMIPSUBLEVELS { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_DP2INDEXEDLINELIST { pub wV1: u16, pub wV2: u16, @@ -13247,20 +12012,6 @@ impl Clone for D3DNTHAL_DP2LINESTRIP { } } #[repr(C)] -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] -pub struct D3DNTHAL_DP2MULTIPLYTRANSFORM { - pub xfrmType: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMSTATETYPE, - pub matrix: super::super::super::Foundation::Numerics::Matrix4x4, -} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] -impl Copy for D3DNTHAL_DP2MULTIPLYTRANSFORM {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] -impl Clone for D3DNTHAL_DP2MULTIPLYTRANSFORM { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_DP2PIXELSHADER { pub dwHandle: u32, } @@ -13282,34 +12033,6 @@ impl Clone for D3DNTHAL_DP2POINTS { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_DP2RENDERSTATE { - pub RenderState: super::super::super::Win32::Graphics::Direct3D9::D3DRENDERSTATETYPE, - pub Anonymous: D3DNTHAL_DP2RENDERSTATE_0, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2RENDERSTATE {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2RENDERSTATE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub union D3DNTHAL_DP2RENDERSTATE_0 { - pub fState: f32, - pub dwState: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2RENDERSTATE_0 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2RENDERSTATE_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_DP2RESPONSE { pub bCommand: u8, pub bReserved: u8, @@ -13514,20 +12237,6 @@ impl Clone for D3DNTHAL_DP2SETTEXLOD { } } #[repr(C)] -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] -pub struct D3DNTHAL_DP2SETTRANSFORM { - pub xfrmType: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMSTATETYPE, - pub matrix: super::super::super::Foundation::Numerics::Matrix4x4, -} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] -impl Copy for D3DNTHAL_DP2SETTRANSFORM {} -#[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct3D9"))] -impl Clone for D3DNTHAL_DP2SETTRANSFORM { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_DP2SETVERTEXSHADERCONST { pub dwRegister: u32, pub dwCount: u32, @@ -13549,21 +12258,6 @@ impl Clone for D3DNTHAL_DP2STARTVERTEX { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_DP2STATESET { - pub dwOperation: u32, - pub dwParam: u32, - pub sbType: super::super::super::Win32::Graphics::Direct3D9::D3DSTATEBLOCKTYPE, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2STATESET {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2STATESET { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_DP2SURFACEBLT { pub dwSource: u32, pub rSource: super::super::super::Win32::Foundation::RECTL, @@ -13681,25 +12375,6 @@ impl Clone for D3DNTHAL_DP2VIEWPORTINFO { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct D3DNTHAL_DP2VOLUMEBLT { - pub dwDDDestSurface: u32, - pub dwDDSrcSurface: u32, - pub dwDestX: u32, - pub dwDestY: u32, - pub dwDestZ: u32, - pub srcBox: super::super::super::Win32::Graphics::Direct3D9::D3DBOX, - pub dwFlags: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for D3DNTHAL_DP2VOLUMEBLT {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for D3DNTHAL_DP2VOLUMEBLT { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_DP2WINFO { pub dvWNear: f32, pub dvWFar: f32, @@ -13722,78 +12397,6 @@ impl Clone for D3DNTHAL_DP2ZRANGE { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub struct D3DNTHAL_DRAWPRIMITIVES2DATA { - pub dwhContext: usize, - pub dwFlags: u32, - pub dwVertexType: u32, - pub lpDDCommands: *mut super::super::super::Win32::Graphics::DirectDraw::DD_SURFACE_LOCAL, - pub dwCommandOffset: u32, - pub dwCommandLength: u32, - pub Anonymous1: D3DNTHAL_DRAWPRIMITIVES2DATA_0, - pub dwVertexOffset: u32, - pub dwVertexLength: u32, - pub dwReqVertexBufSize: u32, - pub dwReqCommandBufSize: u32, - pub lpdwRStates: *mut u32, - pub Anonymous2: D3DNTHAL_DRAWPRIMITIVES2DATA_1, - pub dwErrorOffset: u32, -} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Copy for D3DNTHAL_DRAWPRIMITIVES2DATA {} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Clone for D3DNTHAL_DRAWPRIMITIVES2DATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub union D3DNTHAL_DRAWPRIMITIVES2DATA_0 { - pub lpDDVertex: *mut super::super::super::Win32::Graphics::DirectDraw::DD_SURFACE_LOCAL, - pub lpVertices: *mut core::ffi::c_void, -} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Copy for D3DNTHAL_DRAWPRIMITIVES2DATA_0 {} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Clone for D3DNTHAL_DRAWPRIMITIVES2DATA_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub union D3DNTHAL_DRAWPRIMITIVES2DATA_1 { - pub dwVertexSize: u32, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Copy for D3DNTHAL_DRAWPRIMITIVES2DATA_1 {} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Clone for D3DNTHAL_DRAWPRIMITIVES2DATA_1 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw"))] -pub struct D3DNTHAL_GLOBALDRIVERDATA { - pub dwSize: u32, - pub hwCaps: D3DNTHALDEVICEDESC_V1, - pub dwNumVertices: u32, - pub dwNumClipVertices: u32, - pub dwNumTextureFormats: u32, - pub lpTextureFormats: *mut super::super::super::Win32::Graphics::DirectDraw::DDSURFACEDESC, -} -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw"))] -impl Copy for D3DNTHAL_GLOBALDRIVERDATA {} -#[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_DirectDraw"))] -impl Clone for D3DNTHAL_GLOBALDRIVERDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_SCENECAPTUREDATA { pub dwhContext: usize, pub dwFlag: u32, @@ -13806,22 +12409,6 @@ impl Clone for D3DNTHAL_SCENECAPTUREDATA { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub struct D3DNTHAL_SETRENDERTARGETDATA { - pub dwhContext: usize, - pub lpDDS: *mut super::super::super::Win32::Graphics::DirectDraw::DD_SURFACE_LOCAL, - pub lpDDSZ: *mut super::super::super::Win32::Graphics::DirectDraw::DD_SURFACE_LOCAL, - pub ddrval: windows_sys::core::HRESULT, -} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Copy for D3DNTHAL_SETRENDERTARGETDATA {} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Clone for D3DNTHAL_SETRENDERTARGETDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct D3DNTHAL_TEXTURECREATEDATA { pub dwhContext: usize, pub hDDS: super::super::super::Win32::Foundation::HANDLE, @@ -13944,34 +12531,6 @@ impl Clone for DDNT_GETD3DQUERYCOUNTDATA { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct DDNT_GETD3DQUERYDATA { - pub gdi2: DDNT_GETDRIVERINFO2DATA, - pub Anonymous: DDNT_GETD3DQUERYDATA_0, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for DDNT_GETD3DQUERYDATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for DDNT_GETD3DQUERYDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub union DDNT_GETD3DQUERYDATA_0 { - pub dwQueryIndex: u32, - pub QueryType: super::super::super::Win32::Graphics::Direct3D9::D3DQUERYTYPE, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for DDNT_GETD3DQUERYDATA_0 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for DDNT_GETD3DQUERYDATA_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct DDNT_GETDDIVERSIONDATA { pub gdi2: DDNT_GETDRIVERINFO2DATA, pub dwDXVersion: u32, @@ -14009,21 +12568,6 @@ impl Clone for DDNT_GETEXTENDEDMODECOUNTDATA { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct DDNT_GETEXTENDEDMODEDATA { - pub gdi2: DDNT_GETDRIVERINFO2DATA, - pub dwModeIndex: u32, - pub mode: super::super::super::Win32::Graphics::Direct3D9::D3DDISPLAYMODE, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for DDNT_GETEXTENDEDMODEDATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for DDNT_GETEXTENDEDMODEDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct DDNT_GETFORMATCOUNTDATA { pub gdi2: DDNT_GETDRIVERINFO2DATA, pub dwFormatCount: u32, @@ -14036,37 +12580,6 @@ impl Clone for DDNT_GETFORMATCOUNTDATA { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub struct DDNT_GETFORMATDATA { - pub gdi2: DDNT_GETDRIVERINFO2DATA, - pub dwFormatIndex: u32, - pub format: super::super::super::Win32::Graphics::DirectDraw::DDPIXELFORMAT, -} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Copy for DDNT_GETFORMATDATA {} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Clone for DDNT_GETFORMATDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct DDNT_MULTISAMPLEQUALITYLEVELSDATA { - pub gdi2: DDNT_GETDRIVERINFO2DATA, - pub Format: super::super::super::Win32::Graphics::Direct3D9::D3DFORMAT, - pub _bitfield: i32, - pub QualityLevels: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for DDNT_MULTISAMPLEQUALITYLEVELSDATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for DDNT_MULTISAMPLEQUALITYLEVELSDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct DD_DEFERRED_AGP_AWARE_DATA { pub gdi2: DD_GETDRIVERINFO2DATA, } @@ -14124,34 +12637,6 @@ impl Clone for DD_GETD3DQUERYCOUNTDATA { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct DD_GETD3DQUERYDATA { - pub gdi2: DD_GETDRIVERINFO2DATA, - pub Anonymous: DD_GETD3DQUERYDATA_0, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for DD_GETD3DQUERYDATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for DD_GETD3DQUERYDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub union DD_GETD3DQUERYDATA_0 { - pub dwQueryIndex: u32, - pub QueryType: super::super::super::Win32::Graphics::Direct3D9::D3DQUERYTYPE, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for DD_GETD3DQUERYDATA_0 {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for DD_GETD3DQUERYDATA_0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct DD_GETDDIVERSIONDATA { pub gdi2: DD_GETDRIVERINFO2DATA, pub dwDXVersion: u32, @@ -14189,21 +12674,6 @@ impl Clone for DD_GETEXTENDEDMODECOUNTDATA { } } #[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct DD_GETEXTENDEDMODEDATA { - pub gdi2: DD_GETDRIVERINFO2DATA, - pub dwModeIndex: u32, - pub mode: super::super::super::Win32::Graphics::Direct3D9::D3DDISPLAYMODE, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for DD_GETEXTENDEDMODEDATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for DD_GETEXTENDEDMODEDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] pub struct DD_GETFORMATCOUNTDATA { pub gdi2: DD_GETDRIVERINFO2DATA, pub dwFormatCount: u32, @@ -14215,37 +12685,6 @@ impl Clone for DD_GETFORMATCOUNTDATA { *self } } -#[repr(C)] -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub struct DD_GETFORMATDATA { - pub gdi2: DD_GETDRIVERINFO2DATA, - pub dwFormatIndex: u32, - pub format: super::super::super::Win32::Graphics::DirectDraw::DDPIXELFORMAT, -} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Copy for DD_GETFORMATDATA {} -#[cfg(feature = "Win32_Graphics_DirectDraw")] -impl Clone for DD_GETFORMATDATA { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub struct DD_MULTISAMPLEQUALITYLEVELSDATA { - pub gdi2: DD_GETDRIVERINFO2DATA, - pub Format: super::super::super::Win32::Graphics::Direct3D9::D3DFORMAT, - pub _bitfield: i32, - pub QualityLevels: u32, -} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Copy for DD_MULTISAMPLEQUALITYLEVELSDATA {} -#[cfg(feature = "Win32_Graphics_Direct3D9")] -impl Clone for DD_MULTISAMPLEQUALITYLEVELSDATA { - fn clone(&self) -> Self { - *self - } -} #[repr(C, packed(1))] pub struct DISPLAYID_DETAILED_TIMING_TYPE_I { pub Anonymous1: DISPLAYID_DETAILED_TIMING_TYPE_I_0, @@ -15252,45 +13691,19 @@ impl Clone for _NT_D3DLINEPATTERN { *self } } -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub type LPD3DHAL_CLEAR2CB = Option u32>; -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub type LPD3DHAL_CLEARCB = Option u32>; -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub type LPD3DHAL_CONTEXTCREATECB = Option u32>; pub type LPD3DHAL_CONTEXTDESTROYALLCB = Option u32>; pub type LPD3DHAL_CONTEXTDESTROYCB = Option u32>; -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub type LPD3DHAL_DRAWONEINDEXEDPRIMITIVECB = Option u32>; -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub type LPD3DHAL_DRAWONEPRIMITIVECB = Option u32>; -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub type LPD3DHAL_DRAWPRIMITIVES2CB = Option u32>; pub type LPD3DHAL_DRAWPRIMITIVESCB = Option u32>; -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub type LPD3DHAL_GETSTATECB = Option u32>; -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub type LPD3DHAL_RENDERPRIMITIVECB = Option u32>; pub type LPD3DHAL_RENDERSTATECB = Option u32>; pub type LPD3DHAL_SCENECAPTURECB = Option u32>; -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub type LPD3DHAL_SETRENDERTARGETCB = Option u32>; pub type LPD3DHAL_TEXTURECREATECB = Option u32>; pub type LPD3DHAL_TEXTUREDESTROYCB = Option u32>; pub type LPD3DHAL_TEXTUREGETSURFCB = Option u32>; pub type LPD3DHAL_TEXTURESWAPCB = Option u32>; pub type LPD3DHAL_VALIDATETEXTURESTAGESTATECB = Option u32>; -#[cfg(feature = "Win32_Graphics_Direct3D9")] -pub type LPD3DNTHAL_CLEAR2CB = Option u32>; -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub type LPD3DNTHAL_CONTEXTCREATECB = Option u32>; pub type LPD3DNTHAL_CONTEXTDESTROYALLCB = Option u32>; pub type LPD3DNTHAL_CONTEXTDESTROYCB = Option u32>; -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub type LPD3DNTHAL_DRAWPRIMITIVES2CB = Option u32>; pub type LPD3DNTHAL_SCENECAPTURECB = Option u32>; -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub type LPD3DNTHAL_SETRENDERTARGETCB = Option u32>; pub type LPD3DNTHAL_TEXTURECREATECB = Option u32>; pub type LPD3DNTHAL_TEXTUREDESTROYCB = Option u32>; pub type LPD3DNTHAL_TEXTUREGETSURFCB = Option u32>; diff --git a/crates/libs/sys/src/Windows/Win32/Devices/Display/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/Display/mod.rs index 18e362449d..dbfb2bc27f 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Display/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Display/mod.rs @@ -4219,8 +4219,6 @@ pub type PFN_DrvCreateDeviceBitmap = Option super::super::Graphics::Gdi::HBITMAP>; pub type PFN_DrvDeleteDeviceBitmap = Option; pub type PFN_DrvDeleteDeviceBitmapEx = Option; -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub type PFN_DrvDeriveSurface = Option super::super::Graphics::Gdi::HBITMAP>; #[cfg(feature = "Win32_Graphics_OpenGL")] pub type PFN_DrvDescribePixelFormat = Option i32>; pub type PFN_DrvDestroyFont = Option; @@ -4230,8 +4228,6 @@ pub type PFN_DrvDisablePDEV = Option; pub type PFN_DrvDisableSurface = Option; pub type PFN_DrvDitherColor = Option u32>; pub type PFN_DrvDrawEscape = Option u32>; -#[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub type PFN_DrvEnableDirectDraw = Option super::super::Foundation::BOOL>; pub type PFN_DrvEnableDriver = Option super::super::Foundation::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] pub type PFN_DrvEnablePDEV = Option DHPDEV>; @@ -4242,8 +4238,6 @@ pub type PFN_DrvEscape = Option super::super::Foundation::BOOL>; pub type PFN_DrvFontManagement = Option u32>; pub type PFN_DrvFree = Option; -#[cfg(feature = "Win32_Graphics_DirectDraw")] -pub type PFN_DrvGetDirectDrawInfo = Option super::super::Foundation::BOOL>; pub type PFN_DrvGetGlyphMode = Option u32>; #[cfg(feature = "Win32_Graphics_Gdi")] pub type PFN_DrvGetModes = Option u32>; diff --git a/crates/libs/sys/src/Windows/Win32/Media/KernelStreaming/mod.rs b/crates/libs/sys/src/Windows/Win32/Media/KernelStreaming/mod.rs index 3417e7004e..9729eee839 100644 --- a/crates/libs/sys/src/Windows/Win32/Media/KernelStreaming/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Media/KernelStreaming/mod.rs @@ -6,8 +6,6 @@ windows_targets::link!("ksuser.dll" "system" fn KsCreatePin(filterhandle : super windows_targets::link!("ksuser.dll" "system" fn KsCreatePin2(filterhandle : super::super::Foundation:: HANDLE, connect : *const KSPIN_CONNECT, desiredaccess : u32, connectionhandle : *mut super::super::Foundation:: HANDLE) -> windows_sys::core::HRESULT); windows_targets::link!("ksuser.dll" "system" fn KsCreateTopologyNode(parenthandle : super::super::Foundation:: HANDLE, nodecreate : *const KSNODE_CREATE, desiredaccess : u32, nodehandle : *mut super::super::Foundation:: HANDLE) -> u32); windows_targets::link!("ksuser.dll" "system" fn KsCreateTopologyNode2(parenthandle : super::super::Foundation:: HANDLE, nodecreate : *const KSNODE_CREATE, desiredaccess : u32, nodehandle : *mut super::super::Foundation:: HANDLE) -> windows_sys::core::HRESULT); -#[cfg(feature = "Win32_Media_MediaFoundation")] -windows_targets::link!("ksproxy.ax" "system" fn KsGetMediaType(position : i32, ammediatype : *mut super::MediaFoundation:: AM_MEDIA_TYPE, filterhandle : super::super::Foundation:: HANDLE, pinfactoryid : u32) -> windows_sys::core::HRESULT); windows_targets::link!("ksproxy.ax" "system" fn KsGetMediaTypeCount(filterhandle : super::super::Foundation:: HANDLE, pinfactoryid : u32, mediatypecount : *mut u32) -> windows_sys::core::HRESULT); windows_targets::link!("ksproxy.ax" "system" fn KsGetMultiplePinFactoryItems(filterhandle : super::super::Foundation:: HANDLE, pinfactoryid : u32, propertyid : u32, items : *mut *mut core::ffi::c_void) -> windows_sys::core::HRESULT); windows_targets::link!("ksproxy.ax" "system" fn KsOpenDefaultDevice(category : *const windows_sys::core::GUID, access : u32, devicehandle : *mut super::super::Foundation:: HANDLE) -> windows_sys::core::HRESULT); diff --git a/crates/libs/sys/src/Windows/Win32/System/Js/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Js/mod.rs index 60992bf1ce..af86c589ac 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Js/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Js/mod.rs @@ -83,8 +83,6 @@ windows_targets::link!("chakra.dll" "system" fn JsSetRuntimeMemoryLimit(runtime windows_targets::link!("chakra.dll" "system" fn JsStartDebugging(debugapplication : * mut core::ffi::c_void) -> JsErrorCode); #[cfg(target_arch = "x86")] windows_targets::link!("chakra.dll" "system" fn JsStartDebugging(debugapplication : * mut core::ffi::c_void) -> JsErrorCode); -#[cfg(feature = "Win32_System_Diagnostics_Debug_ActiveScript")] -windows_targets::link!("chakra.dll" "system" fn JsStartProfiling(callback : * mut core::ffi::c_void, eventmask : super::Diagnostics::Debug::ActiveScript:: PROFILER_EVENT_MASK, context : u32) -> JsErrorCode); windows_targets::link!("chakra.dll" "system" fn JsStopProfiling(reason : windows_sys::core::HRESULT) -> JsErrorCode); windows_targets::link!("chakra.dll" "system" fn JsStrictEquals(object1 : *const core::ffi::c_void, object2 : *const core::ffi::c_void, result : *mut bool) -> JsErrorCode); windows_targets::link!("chakra.dll" "system" fn JsStringToPointer(value : *const core::ffi::c_void, stringvalue : *mut *mut u16, stringlength : *mut usize) -> JsErrorCode); diff --git a/crates/libs/targets/src/lib.rs b/crates/libs/targets/src/lib.rs index e4751989f1..205cc94ce9 100644 --- a/crates/libs/targets/src/lib.rs +++ b/crates/libs/targets/src/lib.rs @@ -3,6 +3,7 @@ Learn more about Rust for Windows here: (); -} -#[repr(C)] -pub struct ILicenseManagerStatics_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Storage_Streams")] - pub AddLicenseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Storage_Streams"))] - AddLicenseAsync: usize, - #[cfg(feature = "Foundation_Collections")] - pub GetSatisfactionInfosAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSatisfactionInfosAsync: usize, -} -windows_core::imp::define_interface!(ILicenseManagerStatics2, ILicenseManagerStatics2_Vtbl, 0xab2ec47b_1f79_4480_b87e_2c499e601ba3); -impl windows_core::RuntimeType for ILicenseManagerStatics2 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ILicenseManagerStatics2_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub RefreshLicensesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, LicenseRefreshOption, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(ILicenseSatisfactionInfo, ILicenseSatisfactionInfo_Vtbl, 0x3ccbb08f_db31_48d5_8384_fa17c81474e2); -impl windows_core::RuntimeType for ILicenseSatisfactionInfo { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ILicenseSatisfactionInfo_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub SatisfiedByDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SatisfiedByOpenLicense: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SatisfiedByTrial: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SatisfiedByPass: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SatisfiedByInstallMedia: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SatisfiedBySignedInUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub IsSatisfied: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(ILicenseSatisfactionResult, ILicenseSatisfactionResult_Vtbl, 0x3c674f73_3c87_4ee1_8201_f428359bd3af); -impl windows_core::RuntimeType for ILicenseSatisfactionResult { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ILicenseSatisfactionResult_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] - pub LicenseSatisfactionInfos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - LicenseSatisfactionInfos: usize, - pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, -} -pub struct LicenseManager; -impl LicenseManager { - #[cfg(feature = "Storage_Streams")] - pub fn AddLicenseAsync(license: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - Self::ILicenseManagerStatics(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AddLicenseAsync)(windows_core::Interface::as_raw(this), license.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSatisfactionInfosAsync(contentids: P0, keyids: P1) -> windows_core::Result> - where - P0: windows_core::Param>, - P1: windows_core::Param>, - { - Self::ILicenseManagerStatics(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetSatisfactionInfosAsync)(windows_core::Interface::as_raw(this), contentids.param().abi(), keyids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn RefreshLicensesAsync(refreshoption: LicenseRefreshOption) -> windows_core::Result { - Self::ILicenseManagerStatics2(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RefreshLicensesAsync)(windows_core::Interface::as_raw(this), refreshoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[doc(hidden)] - pub fn ILicenseManagerStatics windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn ILicenseManagerStatics2 windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } -} -impl windows_core::RuntimeName for LicenseManager { - const NAME: &'static str = "Windows.ApplicationModel.Store.LicenseManagement.LicenseManager"; -} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct LicenseSatisfactionInfo(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(LicenseSatisfactionInfo, windows_core::IUnknown, windows_core::IInspectable); -impl LicenseSatisfactionInfo { - pub fn SatisfiedByDevice(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SatisfiedByDevice)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SatisfiedByOpenLicense(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SatisfiedByOpenLicense)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SatisfiedByTrial(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SatisfiedByTrial)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SatisfiedByPass(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SatisfiedByPass)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SatisfiedByInstallMedia(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SatisfiedByInstallMedia)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SatisfiedBySignedInUser(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SatisfiedBySignedInUser)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn IsSatisfied(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsSatisfied)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } -} -impl windows_core::RuntimeType for LicenseSatisfactionInfo { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for LicenseSatisfactionInfo { - type Vtable = ILicenseSatisfactionInfo_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for LicenseSatisfactionInfo { - const NAME: &'static str = "Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo"; -} -unsafe impl Send for LicenseSatisfactionInfo {} -unsafe impl Sync for LicenseSatisfactionInfo {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct LicenseSatisfactionResult(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(LicenseSatisfactionResult, windows_core::IUnknown, windows_core::IInspectable); -impl LicenseSatisfactionResult { - #[cfg(feature = "Foundation_Collections")] - pub fn LicenseSatisfactionInfos(&self) -> windows_core::Result> { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LicenseSatisfactionInfos)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn ExtendedError(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ExtendedError)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } -} -impl windows_core::RuntimeType for LicenseSatisfactionResult { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for LicenseSatisfactionResult { - type Vtable = ILicenseSatisfactionResult_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for LicenseSatisfactionResult { - const NAME: &'static str = "Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionResult"; -} -unsafe impl Send for LicenseSatisfactionResult {} -unsafe impl Sync for LicenseSatisfactionResult {} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct LicenseRefreshOption(pub i32); -impl LicenseRefreshOption { - pub const RunningLicenses: Self = Self(0i32); - pub const AllLicenses: Self = Self(1i32); -} -impl windows_core::TypeKind for LicenseRefreshOption { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for LicenseRefreshOption { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("LicenseRefreshOption").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for LicenseRefreshOption { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.LicenseManagement.LicenseRefreshOption;i4)"); -} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/InstallControl/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/InstallControl/mod.rs deleted file mode 100644 index fdc18fe493..0000000000 --- a/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/InstallControl/mod.rs +++ /dev/null @@ -1,1431 +0,0 @@ -windows_core::imp::define_interface!(IAppInstallItem, IAppInstallItem_Vtbl, 0x49d3dfab_168a_4cbf_a93a_9e448c82737d); -impl windows_core::RuntimeType for IAppInstallItem { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallItem_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub ProductId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub PackageFamilyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub InstallType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AppInstallType) -> windows_core::HRESULT, - pub IsUserInitiated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub GetCurrentStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Cancel: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Pause: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Restart: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Completed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT, - pub RemoveCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT, - pub StatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT, - pub RemoveStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallItem2, IAppInstallItem2_Vtbl, 0xd3972af8_40c0_4fd7_aa6c_0aa13ca6188c); -impl windows_core::RuntimeType for IAppInstallItem2 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallItem2_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub CancelWithTelemetry: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub PauseWithTelemetry: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub RestartWithTelemetry: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallItem3, IAppInstallItem3_Vtbl, 0x6f3dc998_dd47_433c_9234_560172d67a45); -impl windows_core::RuntimeType for IAppInstallItem3 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallItem3_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] - pub Children: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Children: usize, - pub ItemOperationsMightAffectOtherItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallItem4, IAppInstallItem4_Vtbl, 0xc2d1ce12_71ff_4fc8_b540_453d4b37e1d1); -impl windows_core::RuntimeType for IAppInstallItem4 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallItem4_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub LaunchAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetLaunchAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallItem5, IAppInstallItem5_Vtbl, 0x5510e7cc_4076_4a0b_9472_c21d9d380e55); -impl windows_core::RuntimeType for IAppInstallItem5 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallItem5_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub PinToDesktopAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetPinToDesktopAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - pub PinToStartAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetPinToStartAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - pub PinToTaskbarAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetPinToTaskbarAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - pub CompletedInstallToastNotificationMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AppInstallationToastNotificationMode) -> windows_core::HRESULT, - pub SetCompletedInstallToastNotificationMode: unsafe extern "system" fn(*mut core::ffi::c_void, AppInstallationToastNotificationMode) -> windows_core::HRESULT, - pub InstallInProgressToastNotificationMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AppInstallationToastNotificationMode) -> windows_core::HRESULT, - pub SetInstallInProgressToastNotificationMode: unsafe extern "system" fn(*mut core::ffi::c_void, AppInstallationToastNotificationMode) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallManager, IAppInstallManager_Vtbl, 0x9353e170_8441_4b45_bd72_7c2fa925beee); -impl windows_core::RuntimeType for IAppInstallManager { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallManager_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] - pub AppInstallItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AppInstallItems: usize, - pub Cancel: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub Pause: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub Restart: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub ItemCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT, - pub RemoveItemCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT, - pub ItemStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT, - pub RemoveItemStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT, - pub AutoUpdateSetting: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AutoUpdateSetting) -> windows_core::HRESULT, - pub SetAutoUpdateSetting: unsafe extern "system" fn(*mut core::ffi::c_void, AutoUpdateSetting) -> windows_core::HRESULT, - pub AcquisitionIdentity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub SetAcquisitionIdentity: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub GetIsApplicableAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub StartAppInstallAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, bool, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub UpdateAppByPackageFamilyNameAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SearchForUpdatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub SearchForAllUpdatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SearchForAllUpdatesAsync: usize, - pub IsStoreBlockedByPolicyAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetIsAppAllowedToInstallAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallManager2, IAppInstallManager2_Vtbl, 0x16937851_ed37_480d_8314_52e27c03f04a); -impl windows_core::RuntimeType for IAppInstallManager2 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallManager2_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub StartAppInstallWithTelemetryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, bool, bool, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub UpdateAppByPackageFamilyNameWithTelemetryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SearchForUpdatesWithTelemetryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub SearchForAllUpdatesWithTelemetryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SearchForAllUpdatesWithTelemetryAsync: usize, - pub GetIsAppAllowedToInstallWithTelemetryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CancelWithTelemetry: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub PauseWithTelemetry: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub RestartWithTelemetry: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallManager3, IAppInstallManager3_Vtbl, 0x95b24b17_e96a_4d0e_84e1_c8cb417a0178); -impl windows_core::RuntimeType for IAppInstallManager3 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallManager3_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Management_Deployment"))] - pub StartProductInstallAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, bool, bool, std::mem::MaybeUninit, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Management_Deployment")))] - StartProductInstallAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Management_Deployment", feature = "System"))] - pub StartProductInstallForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, bool, bool, std::mem::MaybeUninit, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Management_Deployment", feature = "System")))] - StartProductInstallForUserAsync: usize, - #[cfg(feature = "System")] - pub UpdateAppByPackageFamilyNameForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - UpdateAppByPackageFamilyNameForUserAsync: usize, - #[cfg(feature = "System")] - pub SearchForUpdatesForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - SearchForUpdatesForUserAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] - pub SearchForAllUpdatesForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "System")))] - SearchForAllUpdatesForUserAsync: usize, - #[cfg(feature = "System")] - pub GetIsAppAllowedToInstallForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - GetIsAppAllowedToInstallForUserAsync: usize, - #[cfg(feature = "System")] - pub GetIsApplicableForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - GetIsApplicableForUserAsync: usize, - pub MoveToFrontOfDownloadQueue: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallManager4, IAppInstallManager4_Vtbl, 0x260a2a16_5a9e_4ebd_b944_f2ba75c31159); -impl windows_core::RuntimeType for IAppInstallManager4 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallManager4_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub GetFreeUserEntitlementAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "System")] - pub GetFreeUserEntitlementForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - GetFreeUserEntitlementForUserAsync: usize, - pub GetFreeDeviceEntitlementAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallManager5, IAppInstallManager5_Vtbl, 0x3cd7be4c_1be9_4f7f_b675_aa1d64a529b2); -impl windows_core::RuntimeType for IAppInstallManager5 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallManager5_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] - pub AppInstallItemsWithGroupSupport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AppInstallItemsWithGroupSupport: usize, -} -windows_core::imp::define_interface!(IAppInstallManager6, IAppInstallManager6_Vtbl, 0xc9e7d408_f27a_4471_b2f4_e76efcbebcca); -impl windows_core::RuntimeType for IAppInstallManager6 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallManager6_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] - pub SearchForAllUpdatesWithUpdateOptionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SearchForAllUpdatesWithUpdateOptionsAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] - pub SearchForAllUpdatesWithUpdateOptionsForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "System")))] - SearchForAllUpdatesWithUpdateOptionsForUserAsync: usize, - pub SearchForUpdatesWithUpdateOptionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "System")] - pub SearchForUpdatesWithUpdateOptionsForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - SearchForUpdatesWithUpdateOptionsForUserAsync: usize, - #[cfg(feature = "Foundation_Collections")] - pub StartProductInstallWithOptionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StartProductInstallWithOptionsAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] - pub StartProductInstallWithOptionsForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "System")))] - StartProductInstallWithOptionsForUserAsync: usize, - pub GetIsPackageIdentityAllowedToInstallAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "System")] - pub GetIsPackageIdentityAllowedToInstallForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - GetIsPackageIdentityAllowedToInstallForUserAsync: usize, -} -windows_core::imp::define_interface!(IAppInstallManager7, IAppInstallManager7_Vtbl, 0xa5ee7b30_d5e4_49a3_9853_3db03203321d); -impl windows_core::RuntimeType for IAppInstallManager7 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallManager7_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub CanInstallForAllUsers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallManagerItemEventArgs, IAppInstallManagerItemEventArgs_Vtbl, 0xbc505743_4674_4dd1_957e_c25682086a14); -impl windows_core::RuntimeType for IAppInstallManagerItemEventArgs { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallManagerItemEventArgs_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub Item: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallOptions, IAppInstallOptions_Vtbl, 0xc9808300_1cb8_4eb6_8c9f_6a30c64a5b51); -impl windows_core::RuntimeType for IAppInstallOptions { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallOptions_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub CatalogId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub SetCatalogId: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub ForceUseOfNonRemovableStorage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetForceUseOfNonRemovableStorage: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - pub AllowForcedAppRestart: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetAllowForcedAppRestart: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - pub Repair: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetRepair: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Management_Deployment")] - pub TargetVolume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Management_Deployment"))] - TargetVolume: usize, - #[cfg(feature = "Management_Deployment")] - pub SetTargetVolume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Management_Deployment"))] - SetTargetVolume: usize, - pub LaunchAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetLaunchAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallOptions2, IAppInstallOptions2_Vtbl, 0x8a04c0d7_c94b_425e_95b4_bf27faeaee89); -impl windows_core::RuntimeType for IAppInstallOptions2 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallOptions2_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub PinToDesktopAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetPinToDesktopAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - pub PinToStartAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetPinToStartAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - pub PinToTaskbarAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetPinToTaskbarAfterInstall: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - pub CompletedInstallToastNotificationMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AppInstallationToastNotificationMode) -> windows_core::HRESULT, - pub SetCompletedInstallToastNotificationMode: unsafe extern "system" fn(*mut core::ffi::c_void, AppInstallationToastNotificationMode) -> windows_core::HRESULT, - pub InstallInProgressToastNotificationMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AppInstallationToastNotificationMode) -> windows_core::HRESULT, - pub SetInstallInProgressToastNotificationMode: unsafe extern "system" fn(*mut core::ffi::c_void, AppInstallationToastNotificationMode) -> windows_core::HRESULT, - pub InstallForAllUsers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetInstallForAllUsers: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - pub StageButDoNotInstall: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetStageButDoNotInstall: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - pub CampaignId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub SetCampaignId: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub ExtendedCampaignId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub SetExtendedCampaignId: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallStatus, IAppInstallStatus_Vtbl, 0x936dccfa_2450_4126_88b1_6127a644dd5c); -impl windows_core::RuntimeType for IAppInstallStatus { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallStatus_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub InstallState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AppInstallState) -> windows_core::HRESULT, - pub DownloadSizeInBytes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, - pub BytesDownloaded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, - pub PercentComplete: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - pub ErrorCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallStatus2, IAppInstallStatus2_Vtbl, 0x96e7818a_5e92_4aa9_8edc_58fed4b87e00); -impl windows_core::RuntimeType for IAppInstallStatus2 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallStatus2_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "System")] - pub User: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - User: usize, - pub ReadyForLaunch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppInstallStatus3, IAppInstallStatus3_Vtbl, 0xcb880c56_837b_4b4c_9ebb_6d44a0a96307); -impl windows_core::RuntimeType for IAppInstallStatus3 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppInstallStatus3_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub IsStaged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppUpdateOptions, IAppUpdateOptions_Vtbl, 0x26f0b02f_c2f3_4aea_af8c_6308dd9db85f); -impl windows_core::RuntimeType for IAppUpdateOptions { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppUpdateOptions_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub CatalogId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub SetCatalogId: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub AllowForcedAppRestart: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetAllowForcedAppRestart: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IAppUpdateOptions2, IAppUpdateOptions2_Vtbl, 0xf4646e08_ed26_4bf9_9679_48f628e53df8); -impl windows_core::RuntimeType for IAppUpdateOptions2 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IAppUpdateOptions2_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub AutomaticallyDownloadAndInstallUpdateIfFound: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub SetAutomaticallyDownloadAndInstallUpdateIfFound: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IGetEntitlementResult, IGetEntitlementResult_Vtbl, 0x74fc843f_1a9e_4609_8e4d_819086d08a3d); -impl windows_core::RuntimeType for IGetEntitlementResult { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IGetEntitlementResult_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GetEntitlementStatus) -> windows_core::HRESULT, -} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct AppInstallItem(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(AppInstallItem, windows_core::IUnknown, windows_core::IInspectable); -impl AppInstallItem { - pub fn ProductId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProductId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn PackageFamilyName(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PackageFamilyName)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn InstallType(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InstallType)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn IsUserInitiated(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsUserInitiated)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn GetCurrentStatus(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetCurrentStatus)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Cancel(&self) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).Cancel)(windows_core::Interface::as_raw(this)).ok() } - } - pub fn Pause(&self) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).Pause)(windows_core::Interface::as_raw(this)).ok() } - } - pub fn Restart(&self) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).Restart)(windows_core::Interface::as_raw(this)).ok() } - } - pub fn Completed(&self, handler: P0) -> windows_core::Result - where - P0: windows_core::Param>, - { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Completed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) - } - } - pub fn RemoveCompleted(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveCompleted)(windows_core::Interface::as_raw(this), token).ok() } - } - pub fn StatusChanged(&self, handler: P0) -> windows_core::Result - where - P0: windows_core::Param>, - { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) - } - } - pub fn RemoveStatusChanged(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveStatusChanged)(windows_core::Interface::as_raw(this), token).ok() } - } - pub fn CancelWithTelemetry(&self, correlationvector: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).CancelWithTelemetry)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(correlationvector)).ok() } - } - pub fn PauseWithTelemetry(&self, correlationvector: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PauseWithTelemetry)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(correlationvector)).ok() } - } - pub fn RestartWithTelemetry(&self, correlationvector: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).RestartWithTelemetry)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(correlationvector)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Children)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn ItemOperationsMightAffectOtherItems(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ItemOperationsMightAffectOtherItems)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn LaunchAfterInstall(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchAfterInstall)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetLaunchAfterInstall(&self, value: bool) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetLaunchAfterInstall)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn PinToDesktopAfterInstall(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PinToDesktopAfterInstall)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetPinToDesktopAfterInstall(&self, value: bool) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPinToDesktopAfterInstall)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn PinToStartAfterInstall(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PinToStartAfterInstall)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetPinToStartAfterInstall(&self, value: bool) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPinToStartAfterInstall)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn PinToTaskbarAfterInstall(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PinToTaskbarAfterInstall)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetPinToTaskbarAfterInstall(&self, value: bool) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPinToTaskbarAfterInstall)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn CompletedInstallToastNotificationMode(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CompletedInstallToastNotificationMode)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetCompletedInstallToastNotificationMode(&self, value: AppInstallationToastNotificationMode) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetCompletedInstallToastNotificationMode)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn InstallInProgressToastNotificationMode(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InstallInProgressToastNotificationMode)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetInstallInProgressToastNotificationMode(&self, value: AppInstallationToastNotificationMode) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetInstallInProgressToastNotificationMode)(windows_core::Interface::as_raw(this), value).ok() } - } -} -impl windows_core::RuntimeType for AppInstallItem { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for AppInstallItem { - type Vtable = IAppInstallItem_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for AppInstallItem { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallItem"; -} -unsafe impl Send for AppInstallItem {} -unsafe impl Sync for AppInstallItem {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct AppInstallManager(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(AppInstallManager, windows_core::IUnknown, windows_core::IInspectable); -impl AppInstallManager { - pub fn new() -> windows_core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[cfg(feature = "Foundation_Collections")] - pub fn AppInstallItems(&self) -> windows_core::Result> { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppInstallItems)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Cancel(&self, productid: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).Cancel)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid)).ok() } - } - pub fn Pause(&self, productid: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).Pause)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid)).ok() } - } - pub fn Restart(&self, productid: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).Restart)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid)).ok() } - } - pub fn ItemCompleted(&self, handler: P0) -> windows_core::Result - where - P0: windows_core::Param>, - { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ItemCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) - } - } - pub fn RemoveItemCompleted(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveItemCompleted)(windows_core::Interface::as_raw(this), token).ok() } - } - pub fn ItemStatusChanged(&self, handler: P0) -> windows_core::Result - where - P0: windows_core::Param>, - { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ItemStatusChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) - } - } - pub fn RemoveItemStatusChanged(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveItemStatusChanged)(windows_core::Interface::as_raw(this), token).ok() } - } - pub fn AutoUpdateSetting(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AutoUpdateSetting)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetAutoUpdateSetting(&self, value: AutoUpdateSetting) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAutoUpdateSetting)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn AcquisitionIdentity(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AcquisitionIdentity)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SetAcquisitionIdentity(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAcquisitionIdentity)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } - } - pub fn GetIsApplicableAsync(&self, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING) -> windows_core::Result> { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetIsApplicableAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn StartAppInstallAsync(&self, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING, repair: bool, forceuseofnonremovablestorage: bool) -> windows_core::Result> { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartAppInstallAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), repair, forceuseofnonremovablestorage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn UpdateAppByPackageFamilyNameAsync(&self, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateAppByPackageFamilyNameAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SearchForUpdatesAsync(&self, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING) -> windows_core::Result> { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForUpdatesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn SearchForAllUpdatesAsync(&self) -> windows_core::Result>> { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForAllUpdatesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn IsStoreBlockedByPolicyAsync(&self, storeclientname: &windows_core::HSTRING, storeclientpublisher: &windows_core::HSTRING) -> windows_core::Result> { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsStoreBlockedByPolicyAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(storeclientname), core::mem::transmute_copy(storeclientpublisher), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn GetIsAppAllowedToInstallAsync(&self, productid: &windows_core::HSTRING) -> windows_core::Result> { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetIsAppAllowedToInstallAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn StartAppInstallWithTelemetryAsync(&self, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING, repair: bool, forceuseofnonremovablestorage: bool, catalogid: &windows_core::HSTRING, bundleid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartAppInstallWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), repair, forceuseofnonremovablestorage, core::mem::transmute_copy(catalogid), core::mem::transmute_copy(bundleid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn UpdateAppByPackageFamilyNameWithTelemetryAsync(&self, packagefamilyname: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateAppByPackageFamilyNameWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SearchForUpdatesWithTelemetryAsync(&self, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING, catalogid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForUpdatesWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn SearchForAllUpdatesWithTelemetryAsync(&self, correlationvector: &windows_core::HSTRING) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForAllUpdatesWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn GetIsAppAllowedToInstallWithTelemetryAsync(&self, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING, catalogid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetIsAppAllowedToInstallWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn CancelWithTelemetry(&self, productid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).CancelWithTelemetry)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(correlationvector)).ok() } - } - pub fn PauseWithTelemetry(&self, productid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).PauseWithTelemetry)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(correlationvector)).ok() } - } - pub fn RestartWithTelemetry(&self, productid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).RestartWithTelemetry)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(correlationvector)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "Management_Deployment"))] - pub fn StartProductInstallAsync(&self, productid: &windows_core::HSTRING, catalogid: &windows_core::HSTRING, flightid: &windows_core::HSTRING, clientid: &windows_core::HSTRING, repair: bool, forceuseofnonremovablestorage: bool, correlationvector: &windows_core::HSTRING, targetvolume: P0) -> windows_core::Result>> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartProductInstallAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(flightid), core::mem::transmute_copy(clientid), repair, forceuseofnonremovablestorage, core::mem::transmute_copy(correlationvector), targetvolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "Management_Deployment", feature = "System"))] - pub fn StartProductInstallForUserAsync(&self, user: P0, productid: &windows_core::HSTRING, catalogid: &windows_core::HSTRING, flightid: &windows_core::HSTRING, clientid: &windows_core::HSTRING, repair: bool, forceuseofnonremovablestorage: bool, correlationvector: &windows_core::HSTRING, targetvolume: P1) -> windows_core::Result>> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartProductInstallForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(flightid), core::mem::transmute_copy(clientid), repair, forceuseofnonremovablestorage, core::mem::transmute_copy(correlationvector), targetvolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "System")] - pub fn UpdateAppByPackageFamilyNameForUserAsync(&self, user: P0, packagefamilyname: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).UpdateAppByPackageFamilyNameForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(packagefamilyname), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "System")] - pub fn SearchForUpdatesForUserAsync(&self, user: P0, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING, catalogid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForUpdatesForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] - pub fn SearchForAllUpdatesForUserAsync(&self, user: P0, correlationvector: &windows_core::HSTRING) -> windows_core::Result>> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForAllUpdatesForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "System")] - pub fn GetIsAppAllowedToInstallForUserAsync(&self, user: P0, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING, catalogid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetIsAppAllowedToInstallForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(catalogid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "System")] - pub fn GetIsApplicableForUserAsync(&self, user: P0, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING) -> windows_core::Result> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetIsApplicableForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn MoveToFrontOfDownloadQueue(&self, productid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).MoveToFrontOfDownloadQueue)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(correlationvector)).ok() } - } - pub fn GetFreeUserEntitlementAsync(&self, storeid: &windows_core::HSTRING, campaignid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFreeUserEntitlementAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(storeid), core::mem::transmute_copy(campaignid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "System")] - pub fn GetFreeUserEntitlementForUserAsync(&self, user: P0, storeid: &windows_core::HSTRING, campaignid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFreeUserEntitlementForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(storeid), core::mem::transmute_copy(campaignid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn GetFreeDeviceEntitlementAsync(&self, storeid: &windows_core::HSTRING, campaignid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING) -> windows_core::Result> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetFreeDeviceEntitlementAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(storeid), core::mem::transmute_copy(campaignid), core::mem::transmute_copy(correlationvector), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn AppInstallItemsWithGroupSupport(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppInstallItemsWithGroupSupport)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn SearchForAllUpdatesWithUpdateOptionsAsync(&self, correlationvector: &windows_core::HSTRING, clientid: &windows_core::HSTRING, updateoptions: P0) -> windows_core::Result>> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForAllUpdatesWithUpdateOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(clientid), updateoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] - pub fn SearchForAllUpdatesWithUpdateOptionsForUserAsync(&self, user: P0, correlationvector: &windows_core::HSTRING, clientid: &windows_core::HSTRING, updateoptions: P1) -> windows_core::Result>> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForAllUpdatesWithUpdateOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(clientid), updateoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SearchForUpdatesWithUpdateOptionsAsync(&self, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING, clientid: &windows_core::HSTRING, updateoptions: P0) -> windows_core::Result> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForUpdatesWithUpdateOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(clientid), updateoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "System")] - pub fn SearchForUpdatesWithUpdateOptionsForUserAsync(&self, user: P0, productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING, clientid: &windows_core::HSTRING, updateoptions: P1) -> windows_core::Result> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SearchForUpdatesWithUpdateOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(clientid), updateoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn StartProductInstallWithOptionsAsync(&self, productid: &windows_core::HSTRING, flightid: &windows_core::HSTRING, clientid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING, installoptions: P0) -> windows_core::Result>> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartProductInstallWithOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(flightid), core::mem::transmute_copy(clientid), core::mem::transmute_copy(correlationvector), installoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] - pub fn StartProductInstallWithOptionsForUserAsync(&self, user: P0, productid: &windows_core::HSTRING, flightid: &windows_core::HSTRING, clientid: &windows_core::HSTRING, correlationvector: &windows_core::HSTRING, installoptions: P1) -> windows_core::Result>> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StartProductInstallWithOptionsForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(productid), core::mem::transmute_copy(flightid), core::mem::transmute_copy(clientid), core::mem::transmute_copy(correlationvector), installoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn GetIsPackageIdentityAllowedToInstallAsync(&self, correlationvector: &windows_core::HSTRING, packageidentityname: &windows_core::HSTRING, publishercertificatename: &windows_core::HSTRING) -> windows_core::Result> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetIsPackageIdentityAllowedToInstallAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(packageidentityname), core::mem::transmute_copy(publishercertificatename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "System")] - pub fn GetIsPackageIdentityAllowedToInstallForUserAsync(&self, user: P0, correlationvector: &windows_core::HSTRING, packageidentityname: &windows_core::HSTRING, publishercertificatename: &windows_core::HSTRING) -> windows_core::Result> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetIsPackageIdentityAllowedToInstallForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(correlationvector), core::mem::transmute_copy(packageidentityname), core::mem::transmute_copy(publishercertificatename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn CanInstallForAllUsers(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CanInstallForAllUsers)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } -} -impl windows_core::RuntimeType for AppInstallManager { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for AppInstallManager { - type Vtable = IAppInstallManager_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for AppInstallManager { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManager"; -} -unsafe impl Send for AppInstallManager {} -unsafe impl Sync for AppInstallManager {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct AppInstallManagerItemEventArgs(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(AppInstallManagerItemEventArgs, windows_core::IUnknown, windows_core::IInspectable); -impl AppInstallManagerItemEventArgs { - pub fn Item(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Item)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } -} -impl windows_core::RuntimeType for AppInstallManagerItemEventArgs { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for AppInstallManagerItemEventArgs { - type Vtable = IAppInstallManagerItemEventArgs_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for AppInstallManagerItemEventArgs { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManagerItemEventArgs"; -} -unsafe impl Send for AppInstallManagerItemEventArgs {} -unsafe impl Sync for AppInstallManagerItemEventArgs {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct AppInstallOptions(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(AppInstallOptions, windows_core::IUnknown, windows_core::IInspectable); -impl AppInstallOptions { - pub fn new() -> windows_core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - pub fn CatalogId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CatalogId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SetCatalogId(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCatalogId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } - } - pub fn ForceUseOfNonRemovableStorage(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ForceUseOfNonRemovableStorage)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetForceUseOfNonRemovableStorage(&self, value: bool) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetForceUseOfNonRemovableStorage)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn AllowForcedAppRestart(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AllowForcedAppRestart)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetAllowForcedAppRestart(&self, value: bool) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAllowForcedAppRestart)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn Repair(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Repair)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetRepair(&self, value: bool) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetRepair)(windows_core::Interface::as_raw(this), value).ok() } - } - #[cfg(feature = "Management_Deployment")] - pub fn TargetVolume(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TargetVolume)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "Management_Deployment")] - pub fn SetTargetVolume(&self, value: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetTargetVolume)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } - } - pub fn LaunchAfterInstall(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LaunchAfterInstall)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetLaunchAfterInstall(&self, value: bool) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetLaunchAfterInstall)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn PinToDesktopAfterInstall(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PinToDesktopAfterInstall)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetPinToDesktopAfterInstall(&self, value: bool) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPinToDesktopAfterInstall)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn PinToStartAfterInstall(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PinToStartAfterInstall)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetPinToStartAfterInstall(&self, value: bool) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPinToStartAfterInstall)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn PinToTaskbarAfterInstall(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PinToTaskbarAfterInstall)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetPinToTaskbarAfterInstall(&self, value: bool) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetPinToTaskbarAfterInstall)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn CompletedInstallToastNotificationMode(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CompletedInstallToastNotificationMode)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetCompletedInstallToastNotificationMode(&self, value: AppInstallationToastNotificationMode) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetCompletedInstallToastNotificationMode)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn InstallInProgressToastNotificationMode(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InstallInProgressToastNotificationMode)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetInstallInProgressToastNotificationMode(&self, value: AppInstallationToastNotificationMode) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetInstallInProgressToastNotificationMode)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn InstallForAllUsers(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InstallForAllUsers)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetInstallForAllUsers(&self, value: bool) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetInstallForAllUsers)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn StageButDoNotInstall(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StageButDoNotInstall)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetStageButDoNotInstall(&self, value: bool) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetStageButDoNotInstall)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn CampaignId(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CampaignId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SetCampaignId(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetCampaignId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } - } - pub fn ExtendedCampaignId(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ExtendedCampaignId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SetExtendedCampaignId(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetExtendedCampaignId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } - } -} -impl windows_core::RuntimeType for AppInstallOptions { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for AppInstallOptions { - type Vtable = IAppInstallOptions_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for AppInstallOptions { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallOptions"; -} -unsafe impl Send for AppInstallOptions {} -unsafe impl Sync for AppInstallOptions {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct AppInstallStatus(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(AppInstallStatus, windows_core::IUnknown, windows_core::IInspectable); -impl AppInstallStatus { - pub fn InstallState(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).InstallState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn DownloadSizeInBytes(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DownloadSizeInBytes)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn BytesDownloaded(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).BytesDownloaded)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn PercentComplete(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PercentComplete)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn ErrorCode(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ErrorCode)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - #[cfg(feature = "System")] - pub fn User(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).User)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn ReadyForLaunch(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReadyForLaunch)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn IsStaged(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsStaged)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } -} -impl windows_core::RuntimeType for AppInstallStatus { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for AppInstallStatus { - type Vtable = IAppInstallStatus_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for AppInstallStatus { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallStatus"; -} -unsafe impl Send for AppInstallStatus {} -unsafe impl Sync for AppInstallStatus {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct AppUpdateOptions(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(AppUpdateOptions, windows_core::IUnknown, windows_core::IInspectable); -impl AppUpdateOptions { - pub fn new() -> windows_core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - pub fn CatalogId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CatalogId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SetCatalogId(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetCatalogId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } - } - pub fn AllowForcedAppRestart(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AllowForcedAppRestart)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetAllowForcedAppRestart(&self, value: bool) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetAllowForcedAppRestart)(windows_core::Interface::as_raw(this), value).ok() } - } - pub fn AutomaticallyDownloadAndInstallUpdateIfFound(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AutomaticallyDownloadAndInstallUpdateIfFound)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn SetAutomaticallyDownloadAndInstallUpdateIfFound(&self, value: bool) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAutomaticallyDownloadAndInstallUpdateIfFound)(windows_core::Interface::as_raw(this), value).ok() } - } -} -impl windows_core::RuntimeType for AppUpdateOptions { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for AppUpdateOptions { - type Vtable = IAppUpdateOptions_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for AppUpdateOptions { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.AppUpdateOptions"; -} -unsafe impl Send for AppUpdateOptions {} -unsafe impl Sync for AppUpdateOptions {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct GetEntitlementResult(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(GetEntitlementResult, windows_core::IUnknown, windows_core::IInspectable); -impl GetEntitlementResult { - pub fn Status(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } -} -impl windows_core::RuntimeType for GetEntitlementResult { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for GetEntitlementResult { - type Vtable = IGetEntitlementResult_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for GetEntitlementResult { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.GetEntitlementResult"; -} -unsafe impl Send for GetEntitlementResult {} -unsafe impl Sync for GetEntitlementResult {} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct AppInstallState(pub i32); -impl AppInstallState { - pub const Pending: Self = Self(0i32); - pub const Starting: Self = Self(1i32); - pub const AcquiringLicense: Self = Self(2i32); - pub const Downloading: Self = Self(3i32); - pub const RestoringData: Self = Self(4i32); - pub const Installing: Self = Self(5i32); - pub const Completed: Self = Self(6i32); - pub const Canceled: Self = Self(7i32); - pub const Paused: Self = Self(8i32); - pub const Error: Self = Self(9i32); - pub const PausedLowBattery: Self = Self(10i32); - pub const PausedWiFiRecommended: Self = Self(11i32); - pub const PausedWiFiRequired: Self = Self(12i32); - pub const ReadyToDownload: Self = Self(13i32); -} -impl windows_core::TypeKind for AppInstallState { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for AppInstallState { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("AppInstallState").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for AppInstallState { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallState;i4)"); -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct AppInstallType(pub i32); -impl AppInstallType { - pub const Install: Self = Self(0i32); - pub const Update: Self = Self(1i32); - pub const Repair: Self = Self(2i32); -} -impl windows_core::TypeKind for AppInstallType { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for AppInstallType { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("AppInstallType").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for AppInstallType { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallType;i4)"); -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct AppInstallationToastNotificationMode(pub i32); -impl AppInstallationToastNotificationMode { - pub const Default: Self = Self(0i32); - pub const Toast: Self = Self(1i32); - pub const ToastWithoutPopup: Self = Self(2i32); - pub const NoToast: Self = Self(3i32); -} -impl windows_core::TypeKind for AppInstallationToastNotificationMode { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for AppInstallationToastNotificationMode { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("AppInstallationToastNotificationMode").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for AppInstallationToastNotificationMode { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallationToastNotificationMode;i4)"); -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct AutoUpdateSetting(pub i32); -impl AutoUpdateSetting { - pub const Disabled: Self = Self(0i32); - pub const Enabled: Self = Self(1i32); - pub const DisabledByPolicy: Self = Self(2i32); - pub const EnabledByPolicy: Self = Self(3i32); -} -impl windows_core::TypeKind for AutoUpdateSetting { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for AutoUpdateSetting { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("AutoUpdateSetting").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for AutoUpdateSetting { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.Preview.InstallControl.AutoUpdateSetting;i4)"); -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct GetEntitlementStatus(pub i32); -impl GetEntitlementStatus { - pub const Succeeded: Self = Self(0i32); - pub const NoStoreAccount: Self = Self(1i32); - pub const NetworkError: Self = Self(2i32); - pub const ServerError: Self = Self(3i32); -} -impl windows_core::TypeKind for GetEntitlementStatus { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for GetEntitlementStatus { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("GetEntitlementStatus").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for GetEntitlementStatus { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.Preview.InstallControl.GetEntitlementStatus;i4)"); -} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/mod.rs deleted file mode 100644 index ff3efd9a79..0000000000 --- a/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/mod.rs +++ /dev/null @@ -1,895 +0,0 @@ -#[cfg(feature = "ApplicationModel_Store_Preview_InstallControl")] -pub mod InstallControl; -windows_core::imp::define_interface!(IDeliveryOptimizationSettings, IDeliveryOptimizationSettings_Vtbl, 0x1810fda0_e853_565e_b874_7a8a7b9a0e0f); -impl windows_core::RuntimeType for IDeliveryOptimizationSettings { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IDeliveryOptimizationSettings_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub DownloadMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DeliveryOptimizationDownloadMode) -> windows_core::HRESULT, - pub DownloadModeSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DeliveryOptimizationDownloadModeSource) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IDeliveryOptimizationSettingsStatics, IDeliveryOptimizationSettingsStatics_Vtbl, 0x5c817caf_aed5_5999_b4c9_8c60898bc4f3); -impl windows_core::RuntimeType for IDeliveryOptimizationSettingsStatics { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IDeliveryOptimizationSettingsStatics_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub GetCurrentSettings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IStoreConfigurationStatics, IStoreConfigurationStatics_Vtbl, 0x728f7fc0_8628_42ec_84a2_07780eb44d8b); -impl windows_core::RuntimeType for IStoreConfigurationStatics { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IStoreConfigurationStatics_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub SetSystemConfiguration: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, super::super::super::Foundation::DateTime, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub SetMobileOperatorConfiguration: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, u32, u32) -> windows_core::HRESULT, - pub SetStoreWebAccountId: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub IsStoreWebAccountId: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, *mut bool) -> windows_core::HRESULT, - pub HardwareManufacturerInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub FilterUnsupportedSystemFeaturesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FilterUnsupportedSystemFeaturesAsync: usize, -} -windows_core::imp::define_interface!(IStoreConfigurationStatics2, IStoreConfigurationStatics2_Vtbl, 0x657c4595_c8b7_4fe9_9f4c_4d71027d347e); -impl windows_core::RuntimeType for IStoreConfigurationStatics2 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IStoreConfigurationStatics2_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub PurchasePromptingPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetPurchasePromptingPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IStoreConfigurationStatics3, IStoreConfigurationStatics3_Vtbl, 0x6d45f57c_f144_4cb5_9d3f_4eb05e30b6d3); -impl windows_core::RuntimeType for IStoreConfigurationStatics3 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IStoreConfigurationStatics3_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub HasStoreWebAccount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "System")] - pub HasStoreWebAccountForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - HasStoreWebAccountForUser: usize, - #[cfg(feature = "Storage_Streams")] - pub GetStoreLogDataAsync: unsafe extern "system" fn(*mut core::ffi::c_void, StoreLogOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Storage_Streams"))] - GetStoreLogDataAsync: usize, - #[cfg(feature = "System")] - pub SetStoreWebAccountIdForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - SetStoreWebAccountIdForUser: usize, - #[cfg(feature = "System")] - pub IsStoreWebAccountIdForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - IsStoreWebAccountIdForUser: usize, - #[cfg(feature = "System")] - pub GetPurchasePromptingPolicyForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - GetPurchasePromptingPolicyForUser: usize, - #[cfg(feature = "System")] - pub SetPurchasePromptingPolicyForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - SetPurchasePromptingPolicyForUser: usize, -} -windows_core::imp::define_interface!(IStoreConfigurationStatics4, IStoreConfigurationStatics4_Vtbl, 0x20ff56d2_4ee3_4cf0_9b12_552c03310f75); -impl windows_core::RuntimeType for IStoreConfigurationStatics4 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IStoreConfigurationStatics4_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub GetStoreWebAccountId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(feature = "System")] - pub GetStoreWebAccountIdForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - GetStoreWebAccountIdForUser: usize, - pub SetEnterpriseStoreWebAccountId: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(feature = "System")] - pub SetEnterpriseStoreWebAccountIdForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - SetEnterpriseStoreWebAccountIdForUser: usize, - pub GetEnterpriseStoreWebAccountId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(feature = "System")] - pub GetEnterpriseStoreWebAccountIdForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - GetEnterpriseStoreWebAccountIdForUser: usize, - pub ShouldRestrictToEnterpriseStoreOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "System")] - pub ShouldRestrictToEnterpriseStoreOnlyForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - ShouldRestrictToEnterpriseStoreOnlyForUser: usize, -} -windows_core::imp::define_interface!(IStoreConfigurationStatics5, IStoreConfigurationStatics5_Vtbl, 0xf7613191_8fa9_49db_822b_0160e7e4e5c5); -impl windows_core::RuntimeType for IStoreConfigurationStatics5 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IStoreConfigurationStatics5_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub IsPinToDesktopSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub IsPinToTaskbarSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub IsPinToStartSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub PinToDesktop: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(feature = "System")] - pub PinToDesktopForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(not(feature = "System"))] - PinToDesktopForUser: usize, -} -windows_core::imp::define_interface!(IStoreHardwareManufacturerInfo, IStoreHardwareManufacturerInfo_Vtbl, 0xf292dc08_c654_43ac_a21f_34801c9d3388); -impl windows_core::RuntimeType for IStoreHardwareManufacturerInfo { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IStoreHardwareManufacturerInfo_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub HardwareManufacturerId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub StoreContentModifierId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub ModelName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub ManufacturerName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IStorePreview, IStorePreview_Vtbl, 0x8a157241_840e_49a9_bc01_5d5b01fbc8e9); -impl windows_core::RuntimeType for IStorePreview { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IStorePreview_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub RequestProductPurchaseByProductIdAndSkuIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub LoadAddOnProductInfosAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - LoadAddOnProductInfosAsync: usize, -} -windows_core::imp::define_interface!(IStorePreviewProductInfo, IStorePreviewProductInfo_Vtbl, 0x1937dbb3_6c01_4c9d_85cd_5babaac2b351); -impl windows_core::RuntimeType for IStorePreviewProductInfo { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IStorePreviewProductInfo_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub ProductId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub ProductType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub Title: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub Description: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub SkuInfoList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SkuInfoList: usize, -} -windows_core::imp::define_interface!(IStorePreviewPurchaseResults, IStorePreviewPurchaseResults_Vtbl, 0xb0daaed1_d6c5_4e53_a043_fba0d8e61231); -impl windows_core::RuntimeType for IStorePreviewPurchaseResults { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IStorePreviewPurchaseResults_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub ProductPurchaseStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut StorePreviewProductPurchaseStatus) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IStorePreviewSkuInfo, IStorePreviewSkuInfo_Vtbl, 0x81fd76e2_0b26_48d9_98ce_27461c669d6c); -impl windows_core::RuntimeType for IStorePreviewSkuInfo { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IStorePreviewSkuInfo_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub ProductId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub SkuId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub SkuType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub Title: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub Description: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub CustomDeveloperData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub CurrencyCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub FormattedListPrice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub ExtendedData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IWebAuthenticationCoreManagerHelper, IWebAuthenticationCoreManagerHelper_Vtbl, 0x06a50525_e715_4123_9276_9d6f865ba55f); -impl windows_core::RuntimeType for IWebAuthenticationCoreManagerHelper { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IWebAuthenticationCoreManagerHelper_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Security_Authentication_Web_Core", feature = "UI_Xaml"))] - pub RequestTokenWithUIElementHostingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Security_Authentication_Web_Core", feature = "UI_Xaml")))] - RequestTokenWithUIElementHostingAsync: usize, - #[cfg(all(feature = "Security_Authentication_Web_Core", feature = "Security_Credentials", feature = "UI_Xaml"))] - pub RequestTokenWithUIElementHostingAndWebAccountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Security_Authentication_Web_Core", feature = "Security_Credentials", feature = "UI_Xaml")))] - RequestTokenWithUIElementHostingAndWebAccountAsync: usize, -} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct DeliveryOptimizationSettings(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(DeliveryOptimizationSettings, windows_core::IUnknown, windows_core::IInspectable); -impl DeliveryOptimizationSettings { - pub fn DownloadMode(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DownloadMode)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn DownloadModeSource(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).DownloadModeSource)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn GetCurrentSettings() -> windows_core::Result { - Self::IDeliveryOptimizationSettingsStatics(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetCurrentSettings)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[doc(hidden)] - pub fn IDeliveryOptimizationSettingsStatics windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } -} -impl windows_core::RuntimeType for DeliveryOptimizationSettings { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for DeliveryOptimizationSettings { - type Vtable = IDeliveryOptimizationSettings_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for DeliveryOptimizationSettings { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.DeliveryOptimizationSettings"; -} -unsafe impl Send for DeliveryOptimizationSettings {} -unsafe impl Sync for DeliveryOptimizationSettings {} -pub struct StoreConfiguration; -impl StoreConfiguration { - pub fn SetSystemConfiguration(cataloghardwaremanufacturerid: &windows_core::HSTRING, catalogstorecontentmodifierid: &windows_core::HSTRING, systemconfigurationexpiration: super::super::super::Foundation::DateTime, cataloghardwaredescriptor: &windows_core::HSTRING) -> windows_core::Result<()> { - Self::IStoreConfigurationStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetSystemConfiguration)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(cataloghardwaremanufacturerid), core::mem::transmute_copy(catalogstorecontentmodifierid), systemconfigurationexpiration, core::mem::transmute_copy(cataloghardwaredescriptor)).ok() }) - } - pub fn SetMobileOperatorConfiguration(mobileoperatorid: &windows_core::HSTRING, appdownloadlimitinmegabytes: u32, updatedownloadlimitinmegabytes: u32) -> windows_core::Result<()> { - Self::IStoreConfigurationStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetMobileOperatorConfiguration)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(mobileoperatorid), appdownloadlimitinmegabytes, updatedownloadlimitinmegabytes).ok() }) - } - pub fn SetStoreWebAccountId(webaccountid: &windows_core::HSTRING) -> windows_core::Result<()> { - Self::IStoreConfigurationStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetStoreWebAccountId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountid)).ok() }) - } - pub fn IsStoreWebAccountId(webaccountid: &windows_core::HSTRING) -> windows_core::Result { - Self::IStoreConfigurationStatics(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsStoreWebAccountId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountid), &mut result__).map(|| result__) - }) - } - pub fn HardwareManufacturerInfo() -> windows_core::Result { - Self::IStoreConfigurationStatics(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HardwareManufacturerInfo)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "Foundation_Collections")] - pub fn FilterUnsupportedSystemFeaturesAsync(systemfeatures: P0) -> windows_core::Result>> - where - P0: windows_core::Param>, - { - Self::IStoreConfigurationStatics(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FilterUnsupportedSystemFeaturesAsync)(windows_core::Interface::as_raw(this), systemfeatures.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn PurchasePromptingPolicy() -> windows_core::Result> { - Self::IStoreConfigurationStatics2(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).PurchasePromptingPolicy)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn SetPurchasePromptingPolicy(value: P0) -> windows_core::Result<()> - where - P0: windows_core::Param>, - { - Self::IStoreConfigurationStatics2(|this| unsafe { (windows_core::Interface::vtable(this).SetPurchasePromptingPolicy)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) - } - pub fn HasStoreWebAccount() -> windows_core::Result { - Self::IStoreConfigurationStatics3(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HasStoreWebAccount)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - }) - } - #[cfg(feature = "System")] - pub fn HasStoreWebAccountForUser(user: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - Self::IStoreConfigurationStatics3(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HasStoreWebAccountForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).map(|| result__) - }) - } - #[cfg(feature = "Storage_Streams")] - pub fn GetStoreLogDataAsync(options: StoreLogOptions) -> windows_core::Result> { - Self::IStoreConfigurationStatics3(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStoreLogDataAsync)(windows_core::Interface::as_raw(this), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "System")] - pub fn SetStoreWebAccountIdForUser(user: P0, webaccountid: &windows_core::HSTRING) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - Self::IStoreConfigurationStatics3(|this| unsafe { (windows_core::Interface::vtable(this).SetStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(webaccountid)).ok() }) - } - #[cfg(feature = "System")] - pub fn IsStoreWebAccountIdForUser(user: P0, webaccountid: &windows_core::HSTRING) -> windows_core::Result - where - P0: windows_core::Param, - { - Self::IStoreConfigurationStatics3(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(webaccountid), &mut result__).map(|| result__) - }) - } - #[cfg(feature = "System")] - pub fn GetPurchasePromptingPolicyForUser(user: P0) -> windows_core::Result> - where - P0: windows_core::Param, - { - Self::IStoreConfigurationStatics3(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetPurchasePromptingPolicyForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "System")] - pub fn SetPurchasePromptingPolicyForUser(user: P0, value: P1) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param>, - { - Self::IStoreConfigurationStatics3(|this| unsafe { (windows_core::Interface::vtable(this).SetPurchasePromptingPolicyForUser)(windows_core::Interface::as_raw(this), user.param().abi(), value.param().abi()).ok() }) - } - pub fn GetStoreWebAccountId() -> windows_core::Result { - Self::IStoreConfigurationStatics4(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStoreWebAccountId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "System")] - pub fn GetStoreWebAccountIdForUser(user: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - Self::IStoreConfigurationStatics4(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn SetEnterpriseStoreWebAccountId(webaccountid: &windows_core::HSTRING) -> windows_core::Result<()> { - Self::IStoreConfigurationStatics4(|this| unsafe { (windows_core::Interface::vtable(this).SetEnterpriseStoreWebAccountId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountid)).ok() }) - } - #[cfg(feature = "System")] - pub fn SetEnterpriseStoreWebAccountIdForUser(user: P0, webaccountid: &windows_core::HSTRING) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - Self::IStoreConfigurationStatics4(|this| unsafe { (windows_core::Interface::vtable(this).SetEnterpriseStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(webaccountid)).ok() }) - } - pub fn GetEnterpriseStoreWebAccountId() -> windows_core::Result { - Self::IStoreConfigurationStatics4(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetEnterpriseStoreWebAccountId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "System")] - pub fn GetEnterpriseStoreWebAccountIdForUser(user: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - Self::IStoreConfigurationStatics4(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetEnterpriseStoreWebAccountIdForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn ShouldRestrictToEnterpriseStoreOnly() -> windows_core::Result { - Self::IStoreConfigurationStatics4(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShouldRestrictToEnterpriseStoreOnly)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - }) - } - #[cfg(feature = "System")] - pub fn ShouldRestrictToEnterpriseStoreOnlyForUser(user: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - Self::IStoreConfigurationStatics4(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ShouldRestrictToEnterpriseStoreOnlyForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).map(|| result__) - }) - } - pub fn IsPinToDesktopSupported() -> windows_core::Result { - Self::IStoreConfigurationStatics5(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsPinToDesktopSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - }) - } - pub fn IsPinToTaskbarSupported() -> windows_core::Result { - Self::IStoreConfigurationStatics5(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsPinToTaskbarSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - }) - } - pub fn IsPinToStartSupported() -> windows_core::Result { - Self::IStoreConfigurationStatics5(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsPinToStartSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - }) - } - pub fn PinToDesktop(apppackagefamilyname: &windows_core::HSTRING) -> windows_core::Result<()> { - Self::IStoreConfigurationStatics5(|this| unsafe { (windows_core::Interface::vtable(this).PinToDesktop)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(apppackagefamilyname)).ok() }) - } - #[cfg(feature = "System")] - pub fn PinToDesktopForUser(user: P0, apppackagefamilyname: &windows_core::HSTRING) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - Self::IStoreConfigurationStatics5(|this| unsafe { (windows_core::Interface::vtable(this).PinToDesktopForUser)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(apppackagefamilyname)).ok() }) - } - #[doc(hidden)] - pub fn IStoreConfigurationStatics windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IStoreConfigurationStatics2 windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IStoreConfigurationStatics3 windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IStoreConfigurationStatics4 windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IStoreConfigurationStatics5 windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } -} -impl windows_core::RuntimeName for StoreConfiguration { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.StoreConfiguration"; -} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct StoreHardwareManufacturerInfo(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(StoreHardwareManufacturerInfo, windows_core::IUnknown, windows_core::IInspectable); -impl StoreHardwareManufacturerInfo { - pub fn HardwareManufacturerId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).HardwareManufacturerId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn StoreContentModifierId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).StoreContentModifierId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn ModelName(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ModelName)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn ManufacturerName(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ManufacturerName)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } -} -impl windows_core::RuntimeType for StoreHardwareManufacturerInfo { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for StoreHardwareManufacturerInfo { - type Vtable = IStoreHardwareManufacturerInfo_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for StoreHardwareManufacturerInfo { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.StoreHardwareManufacturerInfo"; -} -unsafe impl Send for StoreHardwareManufacturerInfo {} -unsafe impl Sync for StoreHardwareManufacturerInfo {} -pub struct StorePreview; -impl StorePreview { - pub fn RequestProductPurchaseByProductIdAndSkuIdAsync(productid: &windows_core::HSTRING, skuid: &windows_core::HSTRING) -> windows_core::Result> { - Self::IStorePreview(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestProductPurchaseByProductIdAndSkuIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(skuid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "Foundation_Collections")] - pub fn LoadAddOnProductInfosAsync() -> windows_core::Result>> { - Self::IStorePreview(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadAddOnProductInfosAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[doc(hidden)] - pub fn IStorePreview windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } -} -impl windows_core::RuntimeName for StorePreview { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.StorePreview"; -} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct StorePreviewProductInfo(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(StorePreviewProductInfo, windows_core::IUnknown, windows_core::IInspectable); -impl StorePreviewProductInfo { - pub fn ProductId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProductId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn ProductType(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProductType)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Title(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Title)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Description(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Description)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn SkuInfoList(&self) -> windows_core::Result> { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SkuInfoList)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } -} -impl windows_core::RuntimeType for StorePreviewProductInfo { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for StorePreviewProductInfo { - type Vtable = IStorePreviewProductInfo_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for StorePreviewProductInfo { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.StorePreviewProductInfo"; -} -unsafe impl Send for StorePreviewProductInfo {} -unsafe impl Sync for StorePreviewProductInfo {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct StorePreviewPurchaseResults(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(StorePreviewPurchaseResults, windows_core::IUnknown, windows_core::IInspectable); -impl StorePreviewPurchaseResults { - pub fn ProductPurchaseStatus(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProductPurchaseStatus)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } -} -impl windows_core::RuntimeType for StorePreviewPurchaseResults { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for StorePreviewPurchaseResults { - type Vtable = IStorePreviewPurchaseResults_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for StorePreviewPurchaseResults { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.StorePreviewPurchaseResults"; -} -unsafe impl Send for StorePreviewPurchaseResults {} -unsafe impl Sync for StorePreviewPurchaseResults {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct StorePreviewSkuInfo(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(StorePreviewSkuInfo, windows_core::IUnknown, windows_core::IInspectable); -impl StorePreviewSkuInfo { - pub fn ProductId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProductId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SkuId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SkuId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SkuType(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SkuType)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Title(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Title)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Description(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Description)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn CustomDeveloperData(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CustomDeveloperData)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn CurrencyCode(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CurrencyCode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn FormattedListPrice(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FormattedListPrice)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn ExtendedData(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ExtendedData)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } -} -impl windows_core::RuntimeType for StorePreviewSkuInfo { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for StorePreviewSkuInfo { - type Vtable = IStorePreviewSkuInfo_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for StorePreviewSkuInfo { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo"; -} -unsafe impl Send for StorePreviewSkuInfo {} -unsafe impl Sync for StorePreviewSkuInfo {} -pub struct WebAuthenticationCoreManagerHelper; -impl WebAuthenticationCoreManagerHelper { - #[cfg(all(feature = "Security_Authentication_Web_Core", feature = "UI_Xaml"))] - pub fn RequestTokenWithUIElementHostingAsync(request: P0, uielement: P1) -> windows_core::Result> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - Self::IWebAuthenticationCoreManagerHelper(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestTokenWithUIElementHostingAsync)(windows_core::Interface::as_raw(this), request.param().abi(), uielement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(all(feature = "Security_Authentication_Web_Core", feature = "Security_Credentials", feature = "UI_Xaml"))] - pub fn RequestTokenWithUIElementHostingAndWebAccountAsync(request: P0, webaccount: P1, uielement: P2) -> windows_core::Result> - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - Self::IWebAuthenticationCoreManagerHelper(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestTokenWithUIElementHostingAndWebAccountAsync)(windows_core::Interface::as_raw(this), request.param().abi(), webaccount.param().abi(), uielement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[doc(hidden)] - pub fn IWebAuthenticationCoreManagerHelper windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } -} -impl windows_core::RuntimeName for WebAuthenticationCoreManagerHelper { - const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.WebAuthenticationCoreManagerHelper"; -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct DeliveryOptimizationDownloadMode(pub i32); -impl DeliveryOptimizationDownloadMode { - pub const Simple: Self = Self(0i32); - pub const HttpOnly: Self = Self(1i32); - pub const Lan: Self = Self(2i32); - pub const Group: Self = Self(3i32); - pub const Internet: Self = Self(4i32); - pub const Bypass: Self = Self(5i32); -} -impl windows_core::TypeKind for DeliveryOptimizationDownloadMode { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for DeliveryOptimizationDownloadMode { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("DeliveryOptimizationDownloadMode").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for DeliveryOptimizationDownloadMode { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.Preview.DeliveryOptimizationDownloadMode;i4)"); -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct DeliveryOptimizationDownloadModeSource(pub i32); -impl DeliveryOptimizationDownloadModeSource { - pub const Default: Self = Self(0i32); - pub const Policy: Self = Self(1i32); -} -impl windows_core::TypeKind for DeliveryOptimizationDownloadModeSource { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for DeliveryOptimizationDownloadModeSource { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("DeliveryOptimizationDownloadModeSource").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for DeliveryOptimizationDownloadModeSource { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.Preview.DeliveryOptimizationDownloadModeSource;i4)"); -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct StoreLogOptions(pub u32); -impl StoreLogOptions { - pub const None: Self = Self(0u32); - pub const TryElevate: Self = Self(1u32); -} -impl windows_core::TypeKind for StoreLogOptions { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for StoreLogOptions { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("StoreLogOptions").field(&self.0).finish() - } -} -impl StoreLogOptions { - pub const fn contains(&self, other: Self) -> bool { - self.0 & other.0 == other.0 - } -} -impl core::ops::BitOr for StoreLogOptions { - type Output = Self; - fn bitor(self, other: Self) -> Self { - Self(self.0 | other.0) - } -} -impl core::ops::BitAnd for StoreLogOptions { - type Output = Self; - fn bitand(self, other: Self) -> Self { - Self(self.0 & other.0) - } -} -impl core::ops::BitOrAssign for StoreLogOptions { - fn bitor_assign(&mut self, other: Self) { - self.0.bitor_assign(other.0) - } -} -impl core::ops::BitAndAssign for StoreLogOptions { - fn bitand_assign(&mut self, other: Self) { - self.0.bitand_assign(other.0) - } -} -impl core::ops::Not for StoreLogOptions { - type Output = Self; - fn not(self) -> Self { - Self(self.0.not()) - } -} -impl windows_core::RuntimeType for StoreLogOptions { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.Preview.StoreLogOptions;u4)"); -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct StorePreviewProductPurchaseStatus(pub i32); -impl StorePreviewProductPurchaseStatus { - pub const Succeeded: Self = Self(0i32); - pub const AlreadyPurchased: Self = Self(1i32); - pub const NotFulfilled: Self = Self(2i32); - pub const NotPurchased: Self = Self(3i32); -} -impl windows_core::TypeKind for StorePreviewProductPurchaseStatus { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for StorePreviewProductPurchaseStatus { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("StorePreviewProductPurchaseStatus").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for StorePreviewProductPurchaseStatus { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.Preview.StorePreviewProductPurchaseStatus;i4)"); -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct StoreSystemFeature(pub i32); -impl StoreSystemFeature { - pub const ArchitectureX86: Self = Self(0i32); - pub const ArchitectureX64: Self = Self(1i32); - pub const ArchitectureArm: Self = Self(2i32); - pub const DirectX9: Self = Self(3i32); - pub const DirectX10: Self = Self(4i32); - pub const DirectX11: Self = Self(5i32); - pub const D3D12HardwareFL11: Self = Self(6i32); - pub const D3D12HardwareFL12: Self = Self(7i32); - pub const Memory300MB: Self = Self(8i32); - pub const Memory750MB: Self = Self(9i32); - pub const Memory1GB: Self = Self(10i32); - pub const Memory2GB: Self = Self(11i32); - pub const CameraFront: Self = Self(12i32); - pub const CameraRear: Self = Self(13i32); - pub const Gyroscope: Self = Self(14i32); - pub const Hover: Self = Self(15i32); - pub const Magnetometer: Self = Self(16i32); - pub const Nfc: Self = Self(17i32); - pub const Resolution720P: Self = Self(18i32); - pub const ResolutionWvga: Self = Self(19i32); - pub const ResolutionWvgaOr720P: Self = Self(20i32); - pub const ResolutionWxga: Self = Self(21i32); - pub const ResolutionWvgaOrWxga: Self = Self(22i32); - pub const ResolutionWxgaOr720P: Self = Self(23i32); - pub const Memory4GB: Self = Self(24i32); - pub const Memory6GB: Self = Self(25i32); - pub const Memory8GB: Self = Self(26i32); - pub const Memory12GB: Self = Self(27i32); - pub const Memory16GB: Self = Self(28i32); - pub const Memory20GB: Self = Self(29i32); - pub const VideoMemory2GB: Self = Self(30i32); - pub const VideoMemory4GB: Self = Self(31i32); - pub const VideoMemory6GB: Self = Self(32i32); - pub const VideoMemory1GB: Self = Self(33i32); - pub const ArchitectureArm64: Self = Self(34i32); -} -impl windows_core::TypeKind for StoreSystemFeature { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for StoreSystemFeature { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("StoreSystemFeature").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for StoreSystemFeature { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.Preview.StoreSystemFeature;i4)"); -} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs deleted file mode 100644 index 952e09c638..0000000000 --- a/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs +++ /dev/null @@ -1,1158 +0,0 @@ -#[cfg(feature = "ApplicationModel_Store_LicenseManagement")] -pub mod LicenseManagement; -#[cfg(feature = "ApplicationModel_Store_Preview")] -pub mod Preview; -windows_core::imp::define_interface!(ICurrentApp, ICurrentApp_Vtbl, 0xd52dc065_da3f_4685_995e_9b482eb5e603); -impl windows_core::RuntimeType for ICurrentApp { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ICurrentApp_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub LicenseInformation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub LinkUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub AppId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - pub RequestAppPurchaseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "deprecated")] - pub RequestProductPurchaseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RequestProductPurchaseAsync: usize, - pub LoadListingInformationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetAppReceiptAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetProductReceiptAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(ICurrentApp2Statics, ICurrentApp2Statics_Vtbl, 0xdf4e6e2d_3171_4ad3_8614_2c61244373cb); -impl windows_core::RuntimeType for ICurrentApp2Statics { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ICurrentApp2Statics_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub GetCustomerPurchaseIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetCustomerCollectionsIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(ICurrentAppSimulator, ICurrentAppSimulator_Vtbl, 0xf17f9db1_74cd_4787_9787_19866e9a5559); -impl windows_core::RuntimeType for ICurrentAppSimulator { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ICurrentAppSimulator_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub LicenseInformation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub LinkUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub AppId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - pub RequestAppPurchaseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "deprecated")] - pub RequestProductPurchaseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RequestProductPurchaseAsync: usize, - pub LoadListingInformationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetAppReceiptAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetProductReceiptAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Storage")] - pub ReloadSimulatorAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Storage"))] - ReloadSimulatorAsync: usize, -} -windows_core::imp::define_interface!(ICurrentAppSimulatorStaticsWithFiltering, ICurrentAppSimulatorStaticsWithFiltering_Vtbl, 0x617e70e2_f86f_4b54_9666_dde285092c68); -impl windows_core::RuntimeType for ICurrentAppSimulatorStaticsWithFiltering { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ICurrentAppSimulatorStaticsWithFiltering_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] - pub LoadListingInformationByProductIdsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - LoadListingInformationByProductIdsAsync: usize, - #[cfg(feature = "Foundation_Collections")] - pub LoadListingInformationByKeywordsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - LoadListingInformationByKeywordsAsync: usize, -} -windows_core::imp::define_interface!(ICurrentAppSimulatorWithCampaignId, ICurrentAppSimulatorWithCampaignId_Vtbl, 0x84678a43_df00_4672_a43f_b25b1441cfcf); -impl windows_core::RuntimeType for ICurrentAppSimulatorWithCampaignId { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ICurrentAppSimulatorWithCampaignId_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub GetAppPurchaseCampaignIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(ICurrentAppSimulatorWithConsumables, ICurrentAppSimulatorWithConsumables_Vtbl, 0x4e51f0ab_20e7_4412_9b85_59bb78388667); -impl windows_core::RuntimeType for ICurrentAppSimulatorWithConsumables { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ICurrentAppSimulatorWithConsumables_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub ReportConsumableFulfillmentAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub RequestProductPurchaseWithResultsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub RequestProductPurchaseWithDisplayPropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub GetUnfulfilledConsumablesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetUnfulfilledConsumablesAsync: usize, -} -windows_core::imp::define_interface!(ICurrentAppStaticsWithFiltering, ICurrentAppStaticsWithFiltering_Vtbl, 0xd36d6542_9085_438e_97ba_a25c976be2fd); -impl windows_core::RuntimeType for ICurrentAppStaticsWithFiltering { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ICurrentAppStaticsWithFiltering_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] - pub LoadListingInformationByProductIdsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - LoadListingInformationByProductIdsAsync: usize, - #[cfg(feature = "Foundation_Collections")] - pub LoadListingInformationByKeywordsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - LoadListingInformationByKeywordsAsync: usize, - pub ReportProductFulfillment: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(ICurrentAppWithCampaignId, ICurrentAppWithCampaignId_Vtbl, 0x312f4cd0_36c1_44a6_b32b_432d608e4dd6); -impl windows_core::RuntimeType for ICurrentAppWithCampaignId { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ICurrentAppWithCampaignId_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub GetAppPurchaseCampaignIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(ICurrentAppWithConsumables, ICurrentAppWithConsumables_Vtbl, 0x844e0071_9e4f_4f79_995a_5f91172e6cef); -impl windows_core::RuntimeType for ICurrentAppWithConsumables { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ICurrentAppWithConsumables_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub ReportConsumableFulfillmentAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub RequestProductPurchaseWithResultsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub RequestProductPurchaseWithDisplayPropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, std::mem::MaybeUninit, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub GetUnfulfilledConsumablesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetUnfulfilledConsumablesAsync: usize, -} -windows_core::imp::define_interface!(ILicenseInformation, ILicenseInformation_Vtbl, 0x8eb7dc30_f170_4ed5_8e21_1516da3fd367); -impl windows_core::RuntimeType for ILicenseInformation { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct ILicenseInformation_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] - pub ProductLicenses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProductLicenses: usize, - pub IsActive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub IsTrial: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub ExpirationDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, - pub LicenseChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT, - pub RemoveLicenseChanged: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::EventRegistrationToken) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IListingInformation, IListingInformation_Vtbl, 0x588b4abf_bc74_4383_b78c_99606323dece); -impl windows_core::RuntimeType for IListingInformation { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IListingInformation_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub CurrentMarket: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub Description: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub ProductListings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProductListings: usize, - pub FormattedPrice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub AgeRating: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IListingInformation2, IListingInformation2_Vtbl, 0xc0fd2c1d_b30e_4384_84ea_72fefa82223e); -impl windows_core::RuntimeType for IListingInformation2 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IListingInformation2_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub FormattedBasePrice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub SaleEndDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, - pub IsOnSale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub CurrencyCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IProductLicense, IProductLicense_Vtbl, 0x363308c7_2bcf_4c0e_8f2f_e808aaa8f99d); -impl windows_core::RuntimeType for IProductLicense { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IProductLicense_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub ProductId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub IsActive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub ExpirationDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IProductLicenseWithFulfillment, IProductLicenseWithFulfillment_Vtbl, 0xfc535c8a_f667_40f3_ba3c_045a63abb3ac); -impl windows_core::RuntimeType for IProductLicenseWithFulfillment { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IProductLicenseWithFulfillment_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub IsConsumable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IProductListing, IProductListing_Vtbl, 0x45a7d6ad_c750_4d9c_947c_b00dcbf9e9c2); -impl windows_core::RuntimeType for IProductListing { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IProductListing_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub ProductId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub FormattedPrice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IProductListing2, IProductListing2_Vtbl, 0xf89e290f_73fe_494d_a939_08a9b2495abe); -impl windows_core::RuntimeType for IProductListing2 { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IProductListing2_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub FormattedBasePrice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub SaleEndDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, - pub IsOnSale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub CurrencyCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IProductListingWithConsumables, IProductListingWithConsumables_Vtbl, 0xeb9e9790_8f6b_481f_93a7_5c3a63068149); -impl windows_core::RuntimeType for IProductListingWithConsumables { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IProductListingWithConsumables_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub ProductType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ProductType) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IProductListingWithMetadata, IProductListingWithMetadata_Vtbl, 0x124da567_23f8_423e_9532_189943c40ace); -impl windows_core::RuntimeType for IProductListingWithMetadata { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IProductListingWithMetadata_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub Description: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub Keywords: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Keywords: usize, - pub ProductType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ProductType) -> windows_core::HRESULT, - pub Tag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub ImageUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IProductPurchaseDisplayProperties, IProductPurchaseDisplayProperties_Vtbl, 0xd70b7420_bc92_401b_a809_c9b2e5dbbdaf); -impl windows_core::RuntimeType for IProductPurchaseDisplayProperties { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IProductPurchaseDisplayProperties_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub SetName: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub Description: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub SetDescription: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit) -> windows_core::HRESULT, - pub Image: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetImage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IProductPurchaseDisplayPropertiesFactory, IProductPurchaseDisplayPropertiesFactory_Vtbl, 0x6f491df4_32d6_4b40_b474_b83038a4d9cf); -impl windows_core::RuntimeType for IProductPurchaseDisplayPropertiesFactory { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IProductPurchaseDisplayPropertiesFactory_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub CreateProductPurchaseDisplayProperties: unsafe extern "system" fn(*mut core::ffi::c_void, std::mem::MaybeUninit, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IPurchaseResults, IPurchaseResults_Vtbl, 0xed50b37e_8656_4f65_b8c8_ac7e0cb1a1c2); -impl windows_core::RuntimeType for IPurchaseResults { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IPurchaseResults_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ProductPurchaseStatus) -> windows_core::HRESULT, - pub TransactionId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - pub ReceiptXml: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub OfferId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!(IUnfulfilledConsumable, IUnfulfilledConsumable_Vtbl, 0x2df7fbbb_1cdd_4cb8_a014_7b9cf8986927); -impl windows_core::RuntimeType for IUnfulfilledConsumable { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct IUnfulfilledConsumable_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub ProductId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - pub TransactionId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - pub OfferId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, -} -pub struct CurrentApp; -impl CurrentApp { - pub fn LicenseInformation() -> windows_core::Result { - Self::ICurrentApp(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LicenseInformation)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn LinkUri() -> windows_core::Result { - Self::ICurrentApp(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LinkUri)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn AppId() -> windows_core::Result { - Self::ICurrentApp(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - }) - } - pub fn RequestAppPurchaseAsync(includereceipt: bool) -> windows_core::Result> { - Self::ICurrentApp(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAppPurchaseAsync)(windows_core::Interface::as_raw(this), includereceipt, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "deprecated")] - pub fn RequestProductPurchaseAsync(productid: &windows_core::HSTRING, includereceipt: bool) -> windows_core::Result> { - Self::ICurrentApp(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestProductPurchaseAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), includereceipt, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn LoadListingInformationAsync() -> windows_core::Result> { - Self::ICurrentApp(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadListingInformationAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn GetAppReceiptAsync() -> windows_core::Result> { - Self::ICurrentApp(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAppReceiptAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn GetProductReceiptAsync(productid: &windows_core::HSTRING) -> windows_core::Result> { - Self::ICurrentApp(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetProductReceiptAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn GetCustomerPurchaseIdAsync(serviceticket: &windows_core::HSTRING, publisheruserid: &windows_core::HSTRING) -> windows_core::Result> { - Self::ICurrentApp2Statics(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetCustomerPurchaseIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(serviceticket), core::mem::transmute_copy(publisheruserid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn GetCustomerCollectionsIdAsync(serviceticket: &windows_core::HSTRING, publisheruserid: &windows_core::HSTRING) -> windows_core::Result> { - Self::ICurrentApp2Statics(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetCustomerCollectionsIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(serviceticket), core::mem::transmute_copy(publisheruserid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "Foundation_Collections")] - pub fn LoadListingInformationByProductIdsAsync(productids: P0) -> windows_core::Result> - where - P0: windows_core::Param>, - { - Self::ICurrentAppStaticsWithFiltering(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadListingInformationByProductIdsAsync)(windows_core::Interface::as_raw(this), productids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "Foundation_Collections")] - pub fn LoadListingInformationByKeywordsAsync(keywords: P0) -> windows_core::Result> - where - P0: windows_core::Param>, - { - Self::ICurrentAppStaticsWithFiltering(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadListingInformationByKeywordsAsync)(windows_core::Interface::as_raw(this), keywords.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn ReportProductFulfillment(productid: &windows_core::HSTRING) -> windows_core::Result<()> { - Self::ICurrentAppStaticsWithFiltering(|this| unsafe { (windows_core::Interface::vtable(this).ReportProductFulfillment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid)).ok() }) - } - pub fn GetAppPurchaseCampaignIdAsync() -> windows_core::Result> { - Self::ICurrentAppWithCampaignId(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAppPurchaseCampaignIdAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn ReportConsumableFulfillmentAsync(productid: &windows_core::HSTRING, transactionid: windows_core::GUID) -> windows_core::Result> { - Self::ICurrentAppWithConsumables(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportConsumableFulfillmentAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), transactionid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn RequestProductPurchaseWithResultsAsync(productid: &windows_core::HSTRING) -> windows_core::Result> { - Self::ICurrentAppWithConsumables(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestProductPurchaseWithResultsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn RequestProductPurchaseWithDisplayPropertiesAsync(productid: &windows_core::HSTRING, offerid: &windows_core::HSTRING, displayproperties: P0) -> windows_core::Result> - where - P0: windows_core::Param, - { - Self::ICurrentAppWithConsumables(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestProductPurchaseWithDisplayPropertiesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(offerid), displayproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetUnfulfilledConsumablesAsync() -> windows_core::Result>> { - Self::ICurrentAppWithConsumables(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetUnfulfilledConsumablesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[doc(hidden)] - pub fn ICurrentApp windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn ICurrentApp2Statics windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn ICurrentAppStaticsWithFiltering windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn ICurrentAppWithCampaignId windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn ICurrentAppWithConsumables windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } -} -impl windows_core::RuntimeName for CurrentApp { - const NAME: &'static str = "Windows.ApplicationModel.Store.CurrentApp"; -} -pub struct CurrentAppSimulator; -impl CurrentAppSimulator { - pub fn LicenseInformation() -> windows_core::Result { - Self::ICurrentAppSimulator(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LicenseInformation)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn LinkUri() -> windows_core::Result { - Self::ICurrentAppSimulator(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LinkUri)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn AppId() -> windows_core::Result { - Self::ICurrentAppSimulator(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AppId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - }) - } - pub fn RequestAppPurchaseAsync(includereceipt: bool) -> windows_core::Result> { - Self::ICurrentAppSimulator(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestAppPurchaseAsync)(windows_core::Interface::as_raw(this), includereceipt, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "deprecated")] - pub fn RequestProductPurchaseAsync(productid: &windows_core::HSTRING, includereceipt: bool) -> windows_core::Result> { - Self::ICurrentAppSimulator(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestProductPurchaseAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), includereceipt, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn LoadListingInformationAsync() -> windows_core::Result> { - Self::ICurrentAppSimulator(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadListingInformationAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn GetAppReceiptAsync() -> windows_core::Result> { - Self::ICurrentAppSimulator(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAppReceiptAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn GetProductReceiptAsync(productid: &windows_core::HSTRING) -> windows_core::Result> { - Self::ICurrentAppSimulator(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetProductReceiptAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "Storage")] - pub fn ReloadSimulatorAsync(simulatorsettingsfile: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - Self::ICurrentAppSimulator(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReloadSimulatorAsync)(windows_core::Interface::as_raw(this), simulatorsettingsfile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "Foundation_Collections")] - pub fn LoadListingInformationByProductIdsAsync(productids: P0) -> windows_core::Result> - where - P0: windows_core::Param>, - { - Self::ICurrentAppSimulatorStaticsWithFiltering(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadListingInformationByProductIdsAsync)(windows_core::Interface::as_raw(this), productids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "Foundation_Collections")] - pub fn LoadListingInformationByKeywordsAsync(keywords: P0) -> windows_core::Result> - where - P0: windows_core::Param>, - { - Self::ICurrentAppSimulatorStaticsWithFiltering(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LoadListingInformationByKeywordsAsync)(windows_core::Interface::as_raw(this), keywords.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn GetAppPurchaseCampaignIdAsync() -> windows_core::Result> { - Self::ICurrentAppSimulatorWithCampaignId(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAppPurchaseCampaignIdAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn ReportConsumableFulfillmentAsync(productid: &windows_core::HSTRING, transactionid: windows_core::GUID) -> windows_core::Result> { - Self::ICurrentAppSimulatorWithConsumables(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReportConsumableFulfillmentAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), transactionid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn RequestProductPurchaseWithResultsAsync(productid: &windows_core::HSTRING) -> windows_core::Result> { - Self::ICurrentAppSimulatorWithConsumables(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestProductPurchaseWithResultsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - pub fn RequestProductPurchaseWithDisplayPropertiesAsync(productid: &windows_core::HSTRING, offerid: &windows_core::HSTRING, displayproperties: P0) -> windows_core::Result> - where - P0: windows_core::Param, - { - Self::ICurrentAppSimulatorWithConsumables(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).RequestProductPurchaseWithDisplayPropertiesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productid), core::mem::transmute_copy(offerid), displayproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetUnfulfilledConsumablesAsync() -> windows_core::Result>> { - Self::ICurrentAppSimulatorWithConsumables(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).GetUnfulfilledConsumablesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[doc(hidden)] - pub fn ICurrentAppSimulator windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn ICurrentAppSimulatorStaticsWithFiltering windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn ICurrentAppSimulatorWithCampaignId windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn ICurrentAppSimulatorWithConsumables windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } -} -impl windows_core::RuntimeName for CurrentAppSimulator { - const NAME: &'static str = "Windows.ApplicationModel.Store.CurrentAppSimulator"; -} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct LicenseInformation(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(LicenseInformation, windows_core::IUnknown, windows_core::IInspectable); -impl LicenseInformation { - #[cfg(feature = "Foundation_Collections")] - pub fn ProductLicenses(&self) -> windows_core::Result> { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProductLicenses)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn IsActive(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsActive)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn IsTrial(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsTrial)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn ExpirationDate(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ExpirationDate)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn LicenseChanged(&self, handler: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).LicenseChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) - } - } - pub fn RemoveLicenseChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveLicenseChanged)(windows_core::Interface::as_raw(this), cookie).ok() } - } -} -impl windows_core::RuntimeType for LicenseInformation { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for LicenseInformation { - type Vtable = ILicenseInformation_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for LicenseInformation { - const NAME: &'static str = "Windows.ApplicationModel.Store.LicenseInformation"; -} -unsafe impl Send for LicenseInformation {} -unsafe impl Sync for LicenseInformation {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct ListingInformation(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(ListingInformation, windows_core::IUnknown, windows_core::IInspectable); -impl ListingInformation { - pub fn CurrentMarket(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CurrentMarket)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Description(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Description)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn ProductListings(&self) -> windows_core::Result> { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProductListings)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn FormattedPrice(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FormattedPrice)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Name(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Name)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn AgeRating(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).AgeRating)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn FormattedBasePrice(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FormattedBasePrice)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SaleEndDate(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaleEndDate)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn IsOnSale(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsOnSale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn CurrencyCode(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CurrencyCode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } -} -impl windows_core::RuntimeType for ListingInformation { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for ListingInformation { - type Vtable = IListingInformation_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for ListingInformation { - const NAME: &'static str = "Windows.ApplicationModel.Store.ListingInformation"; -} -unsafe impl Send for ListingInformation {} -unsafe impl Sync for ListingInformation {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct ProductLicense(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(ProductLicense, windows_core::IUnknown, windows_core::IInspectable); -impl ProductLicense { - pub fn ProductId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProductId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn IsActive(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsActive)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn ExpirationDate(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ExpirationDate)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn IsConsumable(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsConsumable)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } -} -impl windows_core::RuntimeType for ProductLicense { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for ProductLicense { - type Vtable = IProductLicense_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for ProductLicense { - const NAME: &'static str = "Windows.ApplicationModel.Store.ProductLicense"; -} -unsafe impl Send for ProductLicense {} -unsafe impl Sync for ProductLicense {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct ProductListing(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(ProductListing, windows_core::IUnknown, windows_core::IInspectable); -impl ProductListing { - pub fn ProductId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProductId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn FormattedPrice(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FormattedPrice)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Name(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Name)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn FormattedBasePrice(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).FormattedBasePrice)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SaleEndDate(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).SaleEndDate)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn IsOnSale(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).IsOnSale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn CurrencyCode(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CurrencyCode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Description(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Description)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Keywords(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Keywords)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn ProductType(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProductType)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn Tag(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Tag)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn ImageUri(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::(self)?; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ImageUri)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } -} -impl windows_core::RuntimeType for ProductListing { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for ProductListing { - type Vtable = IProductListing_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for ProductListing { - const NAME: &'static str = "Windows.ApplicationModel.Store.ProductListing"; -} -unsafe impl Send for ProductListing {} -unsafe impl Sync for ProductListing {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct ProductPurchaseDisplayProperties(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(ProductPurchaseDisplayProperties, windows_core::IUnknown, windows_core::IInspectable); -impl ProductPurchaseDisplayProperties { - pub fn new() -> windows_core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } - pub fn Name(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Name)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SetName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } - } - pub fn Description(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Description)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SetDescription(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetDescription)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } - } - pub fn Image(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Image)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn SetImage(&self, value: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - let this = self; - unsafe { (windows_core::Interface::vtable(this).SetImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } - } - pub fn CreateProductPurchaseDisplayProperties(name: &windows_core::HSTRING) -> windows_core::Result { - Self::IProductPurchaseDisplayPropertiesFactory(|this| unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).CreateProductPurchaseDisplayProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - }) - } - #[doc(hidden)] - pub fn IProductPurchaseDisplayPropertiesFactory windows_core::Result>(callback: F) -> windows_core::Result { - static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); - SHARED.call(callback) - } -} -impl windows_core::RuntimeType for ProductPurchaseDisplayProperties { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for ProductPurchaseDisplayProperties { - type Vtable = IProductPurchaseDisplayProperties_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for ProductPurchaseDisplayProperties { - const NAME: &'static str = "Windows.ApplicationModel.Store.ProductPurchaseDisplayProperties"; -} -unsafe impl Send for ProductPurchaseDisplayProperties {} -unsafe impl Sync for ProductPurchaseDisplayProperties {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct PurchaseResults(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(PurchaseResults, windows_core::IUnknown, windows_core::IInspectable); -impl PurchaseResults { - pub fn Status(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn TransactionId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TransactionId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn ReceiptXml(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ReceiptXml)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn OfferId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OfferId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } -} -impl windows_core::RuntimeType for PurchaseResults { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for PurchaseResults { - type Vtable = IPurchaseResults_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for PurchaseResults { - const NAME: &'static str = "Windows.ApplicationModel.Store.PurchaseResults"; -} -unsafe impl Send for PurchaseResults {} -unsafe impl Sync for PurchaseResults {} -#[repr(transparent)] -#[derive(PartialEq, Eq, core::fmt::Debug, Clone)] -pub struct UnfulfilledConsumable(windows_core::IUnknown); -windows_core::imp::interface_hierarchy!(UnfulfilledConsumable, windows_core::IUnknown, windows_core::IInspectable); -impl UnfulfilledConsumable { - pub fn ProductId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).ProductId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn TransactionId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).TransactionId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn OfferId(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(this).OfferId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } -} -impl windows_core::RuntimeType for UnfulfilledConsumable { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); -} -unsafe impl windows_core::Interface for UnfulfilledConsumable { - type Vtable = IUnfulfilledConsumable_Vtbl; - const IID: windows_core::GUID = ::IID; -} -impl windows_core::RuntimeName for UnfulfilledConsumable { - const NAME: &'static str = "Windows.ApplicationModel.Store.UnfulfilledConsumable"; -} -unsafe impl Send for UnfulfilledConsumable {} -unsafe impl Sync for UnfulfilledConsumable {} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FulfillmentResult(pub i32); -impl FulfillmentResult { - pub const Succeeded: Self = Self(0i32); - pub const NothingToFulfill: Self = Self(1i32); - pub const PurchasePending: Self = Self(2i32); - pub const PurchaseReverted: Self = Self(3i32); - pub const ServerError: Self = Self(4i32); -} -impl windows_core::TypeKind for FulfillmentResult { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FulfillmentResult { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FulfillmentResult").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for FulfillmentResult { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.FulfillmentResult;i4)"); -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct ProductPurchaseStatus(pub i32); -impl ProductPurchaseStatus { - pub const Succeeded: Self = Self(0i32); - pub const AlreadyPurchased: Self = Self(1i32); - pub const NotFulfilled: Self = Self(2i32); - pub const NotPurchased: Self = Self(3i32); -} -impl windows_core::TypeKind for ProductPurchaseStatus { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for ProductPurchaseStatus { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("ProductPurchaseStatus").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for ProductPurchaseStatus { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.ProductPurchaseStatus;i4)"); -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct ProductType(pub i32); -impl ProductType { - pub const Unknown: Self = Self(0i32); - pub const Durable: Self = Self(1i32); - pub const Consumable: Self = Self(2i32); -} -impl windows_core::TypeKind for ProductType { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for ProductType { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("ProductType").field(&self.0).finish() - } -} -impl windows_core::RuntimeType for ProductType { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.ProductType;i4)"); -} -windows_core::imp::define_interface!(LicenseChangedEventHandler, LicenseChangedEventHandler_Vtbl, 0xd4a50255_1369_4c36_832f_6f2d88e3659b); -impl LicenseChangedEventHandler { - pub fn new windows_core::Result<()> + Send + 'static>(invoke: F) -> Self { - let com = LicenseChangedEventHandlerBox:: { vtable: &LicenseChangedEventHandlerBox::::VTABLE, count: windows_core::imp::RefCount::new(1), invoke }; - unsafe { core::mem::transmute(Box::new(com)) } - } - pub fn Invoke(&self) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this)).ok() } - } -} -#[repr(C)] -struct LicenseChangedEventHandlerBox windows_core::Result<()> + Send + 'static> { - vtable: *const LicenseChangedEventHandler_Vtbl, - invoke: F, - count: windows_core::imp::RefCount, -} -impl windows_core::Result<()> + Send + 'static> LicenseChangedEventHandlerBox { - const VTABLE: LicenseChangedEventHandler_Vtbl = LicenseChangedEventHandler_Vtbl { base__: windows_core::IUnknown_Vtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; - unsafe extern "system" fn QueryInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, interface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { - let this = this as *mut *mut core::ffi::c_void as *mut Self; - if iid.is_null() || interface.is_null() { - return windows_core::HRESULT(-2147467261); - } - *interface = if *iid == ::IID || *iid == ::IID || *iid == ::IID { &mut (*this).vtable as *mut _ as _ } else { core::ptr::null_mut() }; - if (*interface).is_null() { - windows_core::HRESULT(-2147467262) - } else { - (*this).count.add_ref(); - windows_core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: *mut core::ffi::c_void) -> u32 { - let this = this as *mut *mut core::ffi::c_void as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: *mut core::ffi::c_void) -> u32 { - let this = this as *mut *mut core::ffi::c_void as *mut Self; - let remaining = (*this).count.release(); - if remaining == 0 { - let _ = Box::from_raw(this); - } - remaining - } - unsafe extern "system" fn Invoke(this: *mut core::ffi::c_void) -> windows_core::HRESULT { - let this = &mut *(this as *mut *mut core::ffi::c_void as *mut Self); - (this.invoke)().into() - } -} -impl windows_core::RuntimeType for LicenseChangedEventHandler { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); -} -#[repr(C)] -pub struct LicenseChangedEventHandler_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub Invoke: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, -} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/mod.rs index 19fecdd083..01647b7ca7 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/mod.rs @@ -38,8 +38,6 @@ pub mod Preview; pub mod Resources; #[cfg(feature = "ApplicationModel_Search")] pub mod Search; -#[cfg(feature = "ApplicationModel_Store")] -pub mod Store; #[cfg(feature = "ApplicationModel_UserActivities")] pub mod UserActivities; #[cfg(feature = "ApplicationModel_UserDataAccounts")] diff --git a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/impl.rs b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/impl.rs index 63bf204711..bd756edfb5 100644 --- a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/impl.rs @@ -213,116 +213,6 @@ impl IDithererImpl_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] -pub trait IDocObjectService_Impl: Sized { - fn FireBeforeNavigate2(&self, pdispatch: Option<&super::super::System::Com::IDispatch>, lpszurl: &windows_core::PCWSTR, dwflags: u32, lpszframename: &windows_core::PCWSTR, ppostdata: *const u8, cbpostdata: u32, lpszheaders: &windows_core::PCWSTR, fplaynavsound: super::super::Foundation::BOOL) -> windows_core::Result; - fn FireNavigateComplete2(&self, phtmlwindow2: Option<&super::MsHtml::IHTMLWindow2>, dwflags: u32) -> windows_core::Result<()>; - fn FireDownloadBegin(&self) -> windows_core::Result<()>; - fn FireDownloadComplete(&self) -> windows_core::Result<()>; - fn FireDocumentComplete(&self, phtmlwindow: Option<&super::MsHtml::IHTMLWindow2>, dwflags: u32) -> windows_core::Result<()>; - fn UpdateDesktopComponent(&self, phtmlwindow: Option<&super::MsHtml::IHTMLWindow2>) -> windows_core::Result<()>; - fn GetPendingUrl(&self) -> windows_core::Result; - fn ActiveElementChanged(&self, phtmlelement: Option<&super::MsHtml::IHTMLElement>) -> windows_core::Result<()>; - fn GetUrlSearchComponent(&self) -> windows_core::Result; - fn IsErrorUrl(&self, lpszurl: &windows_core::PCWSTR) -> windows_core::Result; -} -#[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] -impl windows_core::RuntimeName for IDocObjectService {} -#[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] -impl IDocObjectService_Vtbl { - pub const fn new, Impl: IDocObjectService_Impl, const OFFSET: isize>() -> IDocObjectService_Vtbl { - unsafe extern "system" fn FireBeforeNavigate2, Impl: IDocObjectService_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, pdispatch: *mut core::ffi::c_void, lpszurl: windows_core::PCWSTR, dwflags: u32, lpszframename: windows_core::PCWSTR, ppostdata: *const u8, cbpostdata: u32, lpszheaders: windows_core::PCWSTR, fplaynavsound: super::super::Foundation::BOOL, pfcancel: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match IDocObjectService_Impl::FireBeforeNavigate2(this, windows_core::from_raw_borrowed(&pdispatch), core::mem::transmute(&lpszurl), core::mem::transmute_copy(&dwflags), core::mem::transmute(&lpszframename), core::mem::transmute_copy(&ppostdata), core::mem::transmute_copy(&cbpostdata), core::mem::transmute(&lpszheaders), core::mem::transmute_copy(&fplaynavsound)) { - Ok(ok__) => { - core::ptr::write(pfcancel, core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn FireNavigateComplete2, Impl: IDocObjectService_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, phtmlwindow2: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - IDocObjectService_Impl::FireNavigateComplete2(this, windows_core::from_raw_borrowed(&phtmlwindow2), core::mem::transmute_copy(&dwflags)).into() - } - unsafe extern "system" fn FireDownloadBegin, Impl: IDocObjectService_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - IDocObjectService_Impl::FireDownloadBegin(this).into() - } - unsafe extern "system" fn FireDownloadComplete, Impl: IDocObjectService_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - IDocObjectService_Impl::FireDownloadComplete(this).into() - } - unsafe extern "system" fn FireDocumentComplete, Impl: IDocObjectService_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, phtmlwindow: *mut core::ffi::c_void, dwflags: u32) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - IDocObjectService_Impl::FireDocumentComplete(this, windows_core::from_raw_borrowed(&phtmlwindow), core::mem::transmute_copy(&dwflags)).into() - } - unsafe extern "system" fn UpdateDesktopComponent, Impl: IDocObjectService_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, phtmlwindow: *mut core::ffi::c_void) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - IDocObjectService_Impl::UpdateDesktopComponent(this, windows_core::from_raw_borrowed(&phtmlwindow)).into() - } - unsafe extern "system" fn GetPendingUrl, Impl: IDocObjectService_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, pbstrpendingurl: *mut std::mem::MaybeUninit) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match IDocObjectService_Impl::GetPendingUrl(this) { - Ok(ok__) => { - core::ptr::write(pbstrpendingurl, core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn ActiveElementChanged, Impl: IDocObjectService_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, phtmlelement: *mut core::ffi::c_void) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - IDocObjectService_Impl::ActiveElementChanged(this, windows_core::from_raw_borrowed(&phtmlelement)).into() - } - unsafe extern "system" fn GetUrlSearchComponent, Impl: IDocObjectService_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, pbstrsearch: *mut std::mem::MaybeUninit) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match IDocObjectService_Impl::GetUrlSearchComponent(this) { - Ok(ok__) => { - core::ptr::write(pbstrsearch, core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn IsErrorUrl, Impl: IDocObjectService_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, lpszurl: windows_core::PCWSTR, pfiserror: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match IDocObjectService_Impl::IsErrorUrl(this, core::mem::transmute(&lpszurl)) { - Ok(ok__) => { - core::ptr::write(pfiserror, core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - FireBeforeNavigate2: FireBeforeNavigate2::, - FireNavigateComplete2: FireNavigateComplete2::, - FireDownloadBegin: FireDownloadBegin::, - FireDownloadComplete: FireDownloadComplete::, - FireDocumentComplete: FireDocumentComplete::, - UpdateDesktopComponent: UpdateDesktopComponent::, - GetPendingUrl: GetPendingUrl::, - ActiveElementChanged: ActiveElementChanged::, - GetUrlSearchComponent: GetUrlSearchComponent::, - IsErrorUrl: IsErrorUrl::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} #[cfg(feature = "Win32_System_Com")] pub trait IDownloadBehavior_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn startDownload(&self, bstrurl: &windows_core::BSTR, pdispcallback: Option<&super::super::System::Com::IDispatch>) -> windows_core::Result<()>; @@ -571,48 +461,6 @@ impl IEnumSTATURL_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] -pub trait IExtensionValidation_Impl: Sized { - fn Validate(&self, extensionguid: *const windows_core::GUID, extensionmodulepath: &windows_core::PCWSTR, extensionfileversionms: u32, extensionfileversionls: u32, htmldocumenttop: Option<&super::MsHtml::IHTMLDocument2>, htmldocumentsubframe: Option<&super::MsHtml::IHTMLDocument2>, htmlelement: Option<&super::MsHtml::IHTMLElement>, contexts: ExtensionValidationContexts) -> windows_core::Result; - fn DisplayName(&self) -> windows_core::Result; -} -#[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] -impl windows_core::RuntimeName for IExtensionValidation {} -#[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] -impl IExtensionValidation_Vtbl { - pub const fn new, Impl: IExtensionValidation_Impl, const OFFSET: isize>() -> IExtensionValidation_Vtbl { - unsafe extern "system" fn Validate, Impl: IExtensionValidation_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, extensionguid: *const windows_core::GUID, extensionmodulepath: windows_core::PCWSTR, extensionfileversionms: u32, extensionfileversionls: u32, htmldocumenttop: *mut core::ffi::c_void, htmldocumentsubframe: *mut core::ffi::c_void, htmlelement: *mut core::ffi::c_void, contexts: ExtensionValidationContexts, results: *mut ExtensionValidationResults) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match IExtensionValidation_Impl::Validate(this, core::mem::transmute_copy(&extensionguid), core::mem::transmute(&extensionmodulepath), core::mem::transmute_copy(&extensionfileversionms), core::mem::transmute_copy(&extensionfileversionls), windows_core::from_raw_borrowed(&htmldocumenttop), windows_core::from_raw_borrowed(&htmldocumentsubframe), windows_core::from_raw_borrowed(&htmlelement), core::mem::transmute_copy(&contexts)) { - Ok(ok__) => { - core::ptr::write(results, core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn DisplayName, Impl: IExtensionValidation_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, displayname: *mut windows_core::PWSTR) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match IExtensionValidation_Impl::DisplayName(this) { - Ok(ok__) => { - core::ptr::write(displayname, core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - Validate: Validate::, - DisplayName: DisplayName::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} pub trait IHTMLPersistData_Impl: Sized { fn save(&self, punk: Option<&windows_core::IUnknown>, ltype: i32) -> windows_core::Result; fn load(&self, punk: Option<&windows_core::IUnknown>, ltype: i32) -> windows_core::Result; @@ -3080,36 +2928,6 @@ impl ITridentTouchInput_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Web_MsHtml")] -pub trait ITridentTouchInputSite_Impl: Sized { - fn SetManipulationMode(&self, mstouchaction: super::MsHtml::styleMsTouchAction) -> windows_core::Result<()>; - fn ZoomToPoint(&self, x: i32, y: i32) -> windows_core::Result<()>; -} -#[cfg(feature = "Win32_Web_MsHtml")] -impl windows_core::RuntimeName for ITridentTouchInputSite {} -#[cfg(feature = "Win32_Web_MsHtml")] -impl ITridentTouchInputSite_Vtbl { - pub const fn new, Impl: ITridentTouchInputSite_Impl, const OFFSET: isize>() -> ITridentTouchInputSite_Vtbl { - unsafe extern "system" fn SetManipulationMode, Impl: ITridentTouchInputSite_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, mstouchaction: super::MsHtml::styleMsTouchAction) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - ITridentTouchInputSite_Impl::SetManipulationMode(this, core::mem::transmute_copy(&mstouchaction)).into() - } - unsafe extern "system" fn ZoomToPoint, Impl: ITridentTouchInputSite_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, x: i32, y: i32) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - ITridentTouchInputSite_Impl::ZoomToPoint(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)).into() - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - SetManipulationMode: SetManipulationMode::, - ZoomToPoint: ZoomToPoint::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} #[cfg(feature = "Win32_System_Ole")] pub trait IUrlHistoryNotify_Impl: Sized + super::super::System::Ole::IOleCommandTarget_Impl {} #[cfg(feature = "Win32_System_Ole")] @@ -3258,108 +3076,6 @@ impl IViewObjectPresentFlip2_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Web_MsHtml"))] -pub trait IViewObjectPresentFlipSite_Impl: Sized { - fn CreateSurfacePresenterFlip(&self, pdevice: Option<&windows_core::IUnknown>, width: u32, height: u32, backbuffercount: u32, format: super::super::Graphics::Dxgi::Common::DXGI_FORMAT, mode: super::MsHtml::VIEW_OBJECT_ALPHA_MODE) -> windows_core::Result; - fn GetDeviceLuid(&self) -> windows_core::Result; - fn EnterFullScreen(&self) -> windows_core::Result<()>; - fn ExitFullScreen(&self) -> windows_core::Result<()>; - fn IsFullScreen(&self) -> windows_core::Result; - fn GetBoundingRect(&self) -> windows_core::Result; - fn GetMetrics(&self, ppos: *mut super::super::Foundation::POINT, psize: *mut super::super::Foundation::SIZE, pscalex: *mut f32, pscaley: *mut f32) -> windows_core::Result<()>; - fn GetFullScreenSize(&self) -> windows_core::Result; -} -#[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Web_MsHtml"))] -impl windows_core::RuntimeName for IViewObjectPresentFlipSite {} -#[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Web_MsHtml"))] -impl IViewObjectPresentFlipSite_Vtbl { - pub const fn new, Impl: IViewObjectPresentFlipSite_Impl, const OFFSET: isize>() -> IViewObjectPresentFlipSite_Vtbl { - unsafe extern "system" fn CreateSurfacePresenterFlip, Impl: IViewObjectPresentFlipSite_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, width: u32, height: u32, backbuffercount: u32, format: super::super::Graphics::Dxgi::Common::DXGI_FORMAT, mode: super::MsHtml::VIEW_OBJECT_ALPHA_MODE, ppspflip: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match IViewObjectPresentFlipSite_Impl::CreateSurfacePresenterFlip(this, windows_core::from_raw_borrowed(&pdevice), core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&backbuffercount), core::mem::transmute_copy(&format), core::mem::transmute_copy(&mode)) { - Ok(ok__) => { - core::ptr::write(ppspflip, core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn GetDeviceLuid, Impl: IViewObjectPresentFlipSite_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, pluid: *mut super::super::Foundation::LUID) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match IViewObjectPresentFlipSite_Impl::GetDeviceLuid(this) { - Ok(ok__) => { - core::ptr::write(pluid, core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EnterFullScreen, Impl: IViewObjectPresentFlipSite_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - IViewObjectPresentFlipSite_Impl::EnterFullScreen(this).into() - } - unsafe extern "system" fn ExitFullScreen, Impl: IViewObjectPresentFlipSite_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - IViewObjectPresentFlipSite_Impl::ExitFullScreen(this).into() - } - unsafe extern "system" fn IsFullScreen, Impl: IViewObjectPresentFlipSite_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, pffullscreen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match IViewObjectPresentFlipSite_Impl::IsFullScreen(this) { - Ok(ok__) => { - core::ptr::write(pffullscreen, core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn GetBoundingRect, Impl: IViewObjectPresentFlipSite_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match IViewObjectPresentFlipSite_Impl::GetBoundingRect(this) { - Ok(ok__) => { - core::ptr::write(prect, core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn GetMetrics, Impl: IViewObjectPresentFlipSite_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, ppos: *mut super::super::Foundation::POINT, psize: *mut super::super::Foundation::SIZE, pscalex: *mut f32, pscaley: *mut f32) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - IViewObjectPresentFlipSite_Impl::GetMetrics(this, core::mem::transmute_copy(&ppos), core::mem::transmute_copy(&psize), core::mem::transmute_copy(&pscalex), core::mem::transmute_copy(&pscaley)).into() - } - unsafe extern "system" fn GetFullScreenSize, Impl: IViewObjectPresentFlipSite_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, psize: *mut super::super::Foundation::SIZE) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match IViewObjectPresentFlipSite_Impl::GetFullScreenSize(this) { - Ok(ok__) => { - core::ptr::write(psize, core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - CreateSurfacePresenterFlip: CreateSurfacePresenterFlip::, - GetDeviceLuid: GetDeviceLuid::, - EnterFullScreen: EnterFullScreen::, - ExitFullScreen: ExitFullScreen::, - IsFullScreen: IsFullScreen::, - GetBoundingRect: GetBoundingRect::, - GetMetrics: GetMetrics::, - GetFullScreenSize: GetFullScreenSize::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub trait IViewObjectPresentFlipSite2_Impl: Sized { fn GetRotationForCurrentOutput(&self) -> windows_core::Result; diff --git a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs index 5748c4f214..e34cd6da83 100644 --- a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs @@ -681,44 +681,16 @@ impl IDocObjectService { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(self).FireBeforeNavigate2)(windows_core::Interface::as_raw(self), pdispatch.param().abi(), lpszurl.param().abi(), dwflags, lpszframename.param().abi(), ppostdata, cbpostdata, lpszheaders.param().abi(), fplaynavsound.param().abi(), &mut result__).map(|| result__) } - #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] - pub unsafe fn FireNavigateComplete2(&self, phtmlwindow2: P0, dwflags: u32) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).FireNavigateComplete2)(windows_core::Interface::as_raw(self), phtmlwindow2.param().abi(), dwflags).ok() - } pub unsafe fn FireDownloadBegin(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FireDownloadBegin)(windows_core::Interface::as_raw(self)).ok() } pub unsafe fn FireDownloadComplete(&self) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).FireDownloadComplete)(windows_core::Interface::as_raw(self)).ok() } - #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] - pub unsafe fn FireDocumentComplete(&self, phtmlwindow: P0, dwflags: u32) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).FireDocumentComplete)(windows_core::Interface::as_raw(self), phtmlwindow.param().abi(), dwflags).ok() - } - #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] - pub unsafe fn UpdateDesktopComponent(&self, phtmlwindow: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).UpdateDesktopComponent)(windows_core::Interface::as_raw(self), phtmlwindow.param().abi()).ok() - } pub unsafe fn GetPendingUrl(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(self).GetPendingUrl)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } - #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] - pub unsafe fn ActiveElementChanged(&self, phtmlelement: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).ActiveElementChanged)(windows_core::Interface::as_raw(self), phtmlelement.param().abi()).ok() - } pub unsafe fn GetUrlSearchComponent(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(self).GetUrlSearchComponent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -738,24 +710,12 @@ pub struct IDocObjectService_Vtbl { pub FireBeforeNavigate2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PCWSTR, u32, windows_core::PCWSTR, *const u8, u32, windows_core::PCWSTR, super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] FireBeforeNavigate2: usize, - #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] - pub FireNavigateComplete2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml")))] FireNavigateComplete2: usize, pub FireDownloadBegin: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub FireDownloadComplete: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] - pub FireDocumentComplete: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml")))] FireDocumentComplete: usize, - #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] - pub UpdateDesktopComponent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml")))] UpdateDesktopComponent: usize, pub GetPendingUrl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, - #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] - pub ActiveElementChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml")))] ActiveElementChanged: usize, pub GetUrlSearchComponent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut std::mem::MaybeUninit) -> windows_core::HRESULT, pub IsErrorUrl: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, @@ -964,17 +924,6 @@ impl std::ops::Deref for IExtensionValidation { } windows_core::imp::interface_hierarchy!(IExtensionValidation, windows_core::IUnknown); impl IExtensionValidation { - #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] - pub unsafe fn Validate(&self, extensionguid: *const windows_core::GUID, extensionmodulepath: P0, extensionfileversionms: u32, extensionfileversionls: u32, htmldocumenttop: P1, htmldocumentsubframe: P2, htmlelement: P3, contexts: ExtensionValidationContexts) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - P3: windows_core::Param, - { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).Validate)(windows_core::Interface::as_raw(self), extensionguid, extensionmodulepath.param().abi(), extensionfileversionms, extensionfileversionls, htmldocumenttop.param().abi(), htmldocumentsubframe.param().abi(), htmlelement.param().abi(), contexts, &mut result__).map(|| result__) - } pub unsafe fn DisplayName(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(self).DisplayName)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -983,9 +932,6 @@ impl IExtensionValidation { #[repr(C)] pub struct IExtensionValidation_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] - pub Validate: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::PCWSTR, u32, u32, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, ExtensionValidationContexts, *mut ExtensionValidationResults) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml")))] Validate: usize, pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, } @@ -2917,10 +2863,6 @@ impl std::ops::Deref for ITridentTouchInputSite { } windows_core::imp::interface_hierarchy!(ITridentTouchInputSite, windows_core::IUnknown); impl ITridentTouchInputSite { - #[cfg(feature = "Win32_Web_MsHtml")] - pub unsafe fn SetManipulationMode(&self, mstouchaction: super::MsHtml::styleMsTouchAction) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetManipulationMode)(windows_core::Interface::as_raw(self), mstouchaction).ok() - } pub unsafe fn ZoomToPoint(&self, x: i32, y: i32) -> windows_core::Result<()> { (windows_core::Interface::vtable(self).ZoomToPoint)(windows_core::Interface::as_raw(self), x, y).ok() } @@ -2928,9 +2870,6 @@ impl ITridentTouchInputSite { #[repr(C)] pub struct ITridentTouchInputSite_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - #[cfg(feature = "Win32_Web_MsHtml")] - pub SetManipulationMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::MsHtml::styleMsTouchAction) -> windows_core::HRESULT, - #[cfg(not(feature = "Win32_Web_MsHtml"))] SetManipulationMode: usize, pub ZoomToPoint: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32) -> windows_core::HRESULT, } @@ -3097,14 +3036,6 @@ impl std::ops::Deref for IViewObjectPresentFlipSite { } windows_core::imp::interface_hierarchy!(IViewObjectPresentFlipSite, windows_core::IUnknown); impl IViewObjectPresentFlipSite { - #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Web_MsHtml"))] - pub unsafe fn CreateSurfacePresenterFlip(&self, pdevice: P0, width: u32, height: u32, backbuffercount: u32, format: super::super::Graphics::Dxgi::Common::DXGI_FORMAT, mode: super::MsHtml::VIEW_OBJECT_ALPHA_MODE) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = std::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateSurfacePresenterFlip)(windows_core::Interface::as_raw(self), pdevice.param().abi(), width, height, backbuffercount, format, mode, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } pub unsafe fn GetDeviceLuid(&self) -> windows_core::Result { let mut result__ = std::mem::zeroed(); (windows_core::Interface::vtable(self).GetDeviceLuid)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3134,9 +3065,6 @@ impl IViewObjectPresentFlipSite { #[repr(C)] pub struct IViewObjectPresentFlipSite_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Web_MsHtml"))] - pub CreateSurfacePresenterFlip: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, u32, super::super::Graphics::Dxgi::Common::DXGI_FORMAT, super::MsHtml::VIEW_OBJECT_ALPHA_MODE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Web_MsHtml")))] CreateSurfacePresenterFlip: usize, pub GetDeviceLuid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::LUID) -> windows_core::HRESULT, pub EnterFullScreen: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, diff --git a/crates/tests/calling_convention/tests/sys.rs b/crates/tests/calling_convention/tests/sys.rs index bfdb6628b8..3f2a92b29a 100644 --- a/crates/tests/calling_convention/tests/sys.rs +++ b/crates/tests/calling_convention/tests/sys.rs @@ -1,3 +1,5 @@ +#![allow(unexpected_cfgs)] + use windows_sys::{ core::*, Win32::Foundation::*, Win32::Networking::Ldap::*, Win32::System::SystemInformation::*, Win32::UI::WindowsAndMessaging::*, diff --git a/crates/tests/calling_convention/tests/win.rs b/crates/tests/calling_convention/tests/win.rs index eae2d52ca5..4e8d33e35f 100644 --- a/crates/tests/calling_convention/tests/win.rs +++ b/crates/tests/calling_convention/tests/win.rs @@ -1,3 +1,5 @@ +#![allow(unexpected_cfgs)] + use windows::{ Win32::Foundation::*, Win32::Networking::Ldap::*, Win32::System::SystemInformation::*, }; diff --git a/crates/tests/debugger_visualizer/tests/test.rs b/crates/tests/debugger_visualizer/tests/test.rs index 4f264112ad..97ececf852 100644 --- a/crates/tests/debugger_visualizer/tests/test.rs +++ b/crates/tests/debugger_visualizer/tests/test.rs @@ -1,3 +1,4 @@ +#![allow(unexpected_cfgs)] #![cfg(windows_debugger_visualizer)] use debugger_test::*; diff --git a/crates/tools/windows/bindings.txt b/crates/tools/windows/bindings.txt index e2e34616c9..c998ffab1b 100644 --- a/crates/tools/windows/bindings.txt +++ b/crates/tools/windows/bindings.txt @@ -10,6 +10,7 @@ Windows !Windows.AI.MachineLearning.Preview !Windows.ApplicationModel.SocialInfo + !Windows.ApplicationModel.Store !Windows.Devices.AllJoyn !Windows.Devices.Perception !Windows.Security.Authentication.Identity.Provider