diff --git a/crates/libs/bindgen/src/rust/implements.rs b/crates/libs/bindgen/src/rust/implements.rs index bb1a64bcae..fc5d92c156 100644 --- a/crates/libs/bindgen/src/rust/implements.rs +++ b/crates/libs/bindgen/src/rust/implements.rs @@ -190,12 +190,15 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef) -> TokenStream { } } #[doc(hidden)] + #[cfg(feature = "std")] #features struct #implvtbl_ident (core::marker::PhantomData); + #[cfg(feature = "std")] #features impl #implvtbl_ident { const VTABLE: #vtbl_ident = #vtbl_ident::new::(); } + #[cfg(feature = "std")] #features impl #type_ident { pub fn new<'a, T: #impl_ident>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/mod.rs index 570ad20bdf..4888b9b978 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/mod.rs @@ -146,10 +146,13 @@ impl ID3DInclude_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3DInclude_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3DInclude_ImplVtbl { const VTABLE: ID3DInclude_Vtbl = ID3DInclude_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3DInclude { pub fn new<'a, T: ID3DInclude_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3DInclude_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs index 60f1388943..f27686084e 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs @@ -2191,10 +2191,13 @@ impl ID3D10EffectBlendVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectBlendVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectBlendVariable_ImplVtbl { const VTABLE: ID3D10EffectBlendVariable_Vtbl = ID3D10EffectBlendVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectBlendVariable { pub fn new<'a, T: ID3D10EffectBlendVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectBlendVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -2292,10 +2295,13 @@ impl ID3D10EffectConstantBuffer_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectConstantBuffer_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectConstantBuffer_ImplVtbl { const VTABLE: ID3D10EffectConstantBuffer_Vtbl = ID3D10EffectConstantBuffer_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectConstantBuffer { pub fn new<'a, T: ID3D10EffectConstantBuffer_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectConstantBuffer_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -2354,10 +2360,13 @@ impl ID3D10EffectDepthStencilVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectDepthStencilVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectDepthStencilVariable_ImplVtbl { const VTABLE: ID3D10EffectDepthStencilVariable_Vtbl = ID3D10EffectDepthStencilVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectDepthStencilVariable { pub fn new<'a, T: ID3D10EffectDepthStencilVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectDepthStencilVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -2445,10 +2454,13 @@ impl ID3D10EffectDepthStencilViewVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectDepthStencilViewVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectDepthStencilViewVariable_ImplVtbl { const VTABLE: ID3D10EffectDepthStencilViewVariable_Vtbl = ID3D10EffectDepthStencilViewVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectDepthStencilViewVariable { pub fn new<'a, T: ID3D10EffectDepthStencilViewVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectDepthStencilViewVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -2570,10 +2582,13 @@ impl ID3D10EffectMatrixVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectMatrixVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectMatrixVariable_ImplVtbl { const VTABLE: ID3D10EffectMatrixVariable_Vtbl = ID3D10EffectMatrixVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectMatrixVariable { pub fn new<'a, T: ID3D10EffectMatrixVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectMatrixVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -2700,10 +2715,13 @@ impl ID3D10EffectPass_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectPass_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectPass_ImplVtbl { const VTABLE: ID3D10EffectPass_Vtbl = ID3D10EffectPass_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectPass { pub fn new<'a, T: ID3D10EffectPass_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectPass_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -2798,10 +2816,13 @@ impl ID3D10EffectRasterizerVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectRasterizerVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectRasterizerVariable_ImplVtbl { const VTABLE: ID3D10EffectRasterizerVariable_Vtbl = ID3D10EffectRasterizerVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectRasterizerVariable { pub fn new<'a, T: ID3D10EffectRasterizerVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectRasterizerVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -2889,10 +2910,13 @@ impl ID3D10EffectRenderTargetViewVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectRenderTargetViewVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectRenderTargetViewVariable_ImplVtbl { const VTABLE: ID3D10EffectRenderTargetViewVariable_Vtbl = ID3D10EffectRenderTargetViewVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectRenderTargetViewVariable { pub fn new<'a, T: ID3D10EffectRenderTargetViewVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectRenderTargetViewVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -2951,10 +2975,13 @@ impl ID3D10EffectSamplerVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectSamplerVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectSamplerVariable_ImplVtbl { const VTABLE: ID3D10EffectSamplerVariable_Vtbl = ID3D10EffectSamplerVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectSamplerVariable { pub fn new<'a, T: ID3D10EffectSamplerVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectSamplerVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -3144,10 +3171,13 @@ impl ID3D10EffectScalarVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectScalarVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectScalarVariable_ImplVtbl { const VTABLE: ID3D10EffectScalarVariable_Vtbl = ID3D10EffectScalarVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectScalarVariable { pub fn new<'a, T: ID3D10EffectScalarVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectScalarVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -3235,10 +3265,13 @@ impl ID3D10EffectShaderResourceVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectShaderResourceVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectShaderResourceVariable_ImplVtbl { const VTABLE: ID3D10EffectShaderResourceVariable_Vtbl = ID3D10EffectShaderResourceVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectShaderResourceVariable { pub fn new<'a, T: ID3D10EffectShaderResourceVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectShaderResourceVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -3369,12 +3402,15 @@ impl ID3D10EffectShaderVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] struct ID3D10EffectShaderVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10EffectShaderVariable_ImplVtbl { const VTABLE: ID3D10EffectShaderVariable_Vtbl = ID3D10EffectShaderVariable_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10EffectShaderVariable { pub fn new<'a, T: ID3D10EffectShaderVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -3434,10 +3470,13 @@ impl ID3D10EffectStringVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectStringVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectStringVariable_ImplVtbl { const VTABLE: ID3D10EffectStringVariable_Vtbl = ID3D10EffectStringVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectStringVariable { pub fn new<'a, T: ID3D10EffectStringVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectStringVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -3545,10 +3584,13 @@ impl ID3D10EffectTechnique_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectTechnique_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectTechnique_ImplVtbl { const VTABLE: ID3D10EffectTechnique_Vtbl = ID3D10EffectTechnique_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectTechnique { pub fn new<'a, T: ID3D10EffectTechnique_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectTechnique_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -3662,12 +3704,15 @@ impl ID3D10EffectType_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] struct ID3D10EffectType_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10EffectType_ImplVtbl { const VTABLE: ID3D10EffectType_Vtbl = ID3D10EffectType_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10EffectType { pub fn new<'a, T: ID3D10EffectType_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -3977,10 +4022,13 @@ impl ID3D10EffectVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectVariable_ImplVtbl { const VTABLE: ID3D10EffectVariable_Vtbl = ID3D10EffectVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectVariable { pub fn new<'a, T: ID3D10EffectVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -4146,10 +4194,13 @@ impl ID3D10EffectVectorVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10EffectVectorVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10EffectVectorVariable_ImplVtbl { const VTABLE: ID3D10EffectVectorVariable_Vtbl = ID3D10EffectVectorVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10EffectVectorVariable { pub fn new<'a, T: ID3D10EffectVectorVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10EffectVectorVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -5370,12 +5421,15 @@ impl ID3D10ShaderReflectionConstantBuffer_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] struct ID3D10ShaderReflectionConstantBuffer_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10ShaderReflectionConstantBuffer_ImplVtbl { const VTABLE: ID3D10ShaderReflectionConstantBuffer_Vtbl = ID3D10ShaderReflectionConstantBuffer_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10ShaderReflectionConstantBuffer { pub fn new<'a, T: ID3D10ShaderReflectionConstantBuffer_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -5454,12 +5508,15 @@ impl ID3D10ShaderReflectionType_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] struct ID3D10ShaderReflectionType_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10ShaderReflectionType_ImplVtbl { const VTABLE: ID3D10ShaderReflectionType_Vtbl = ID3D10ShaderReflectionType_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10ShaderReflectionType { pub fn new<'a, T: ID3D10ShaderReflectionType_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -5504,10 +5561,13 @@ impl ID3D10ShaderReflectionVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D10ShaderReflectionVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D10ShaderReflectionVariable_ImplVtbl { const VTABLE: ID3D10ShaderReflectionVariable_Vtbl = ID3D10ShaderReflectionVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D10ShaderReflectionVariable { pub fn new<'a, T: ID3D10ShaderReflectionVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D10ShaderReflectionVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs index fb3468549f..9cc3973816 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs @@ -4142,12 +4142,15 @@ impl ID3D11FunctionParameterReflection_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] struct ID3D11FunctionParameterReflection_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D11FunctionParameterReflection_ImplVtbl { const VTABLE: ID3D11FunctionParameterReflection_Vtbl = ID3D11FunctionParameterReflection_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D11FunctionParameterReflection { pub fn new<'a, T: ID3D11FunctionParameterReflection_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -4273,12 +4276,15 @@ impl ID3D11FunctionReflection_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] struct ID3D11FunctionReflection_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D11FunctionReflection_ImplVtbl { const VTABLE: ID3D11FunctionReflection_Vtbl = ID3D11FunctionReflection_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D11FunctionReflection { pub fn new<'a, T: ID3D11FunctionReflection_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -5990,12 +5996,15 @@ impl ID3D11ShaderReflectionConstantBuffer_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] struct ID3D11ShaderReflectionConstantBuffer_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D11ShaderReflectionConstantBuffer_ImplVtbl { const VTABLE: ID3D11ShaderReflectionConstantBuffer_Vtbl = ID3D11ShaderReflectionConstantBuffer_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D11ShaderReflectionConstantBuffer { pub fn new<'a, T: ID3D11ShaderReflectionConstantBuffer_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -6160,12 +6169,15 @@ impl ID3D11ShaderReflectionType_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] struct ID3D11ShaderReflectionType_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D11ShaderReflectionType_ImplVtbl { const VTABLE: ID3D11ShaderReflectionType_Vtbl = ID3D11ShaderReflectionType_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D11ShaderReflectionType { pub fn new<'a, T: ID3D11ShaderReflectionType_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -6230,10 +6242,13 @@ impl ID3D11ShaderReflectionVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D11ShaderReflectionVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D11ShaderReflectionVariable_ImplVtbl { const VTABLE: ID3D11ShaderReflectionVariable_Vtbl = ID3D11ShaderReflectionVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D11ShaderReflectionVariable { pub fn new<'a, T: ID3D11ShaderReflectionVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D11ShaderReflectionVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs index 33861bc794..0a77ec0a2e 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs @@ -3496,12 +3496,15 @@ impl ID3D12FunctionParameterReflection_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] struct ID3D12FunctionParameterReflection_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12FunctionParameterReflection_ImplVtbl { const VTABLE: ID3D12FunctionParameterReflection_Vtbl = ID3D12FunctionParameterReflection_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12FunctionParameterReflection { pub fn new<'a, T: ID3D12FunctionParameterReflection_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -3627,12 +3630,15 @@ impl ID3D12FunctionReflection_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] struct ID3D12FunctionReflection_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12FunctionReflection_ImplVtbl { const VTABLE: ID3D12FunctionReflection_Vtbl = ID3D12FunctionReflection_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12FunctionReflection { pub fn new<'a, T: ID3D12FunctionReflection_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -6944,12 +6950,15 @@ impl ID3D12ShaderReflectionConstantBuffer_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] struct ID3D12ShaderReflectionConstantBuffer_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12ShaderReflectionConstantBuffer_ImplVtbl { const VTABLE: ID3D12ShaderReflectionConstantBuffer_Vtbl = ID3D12ShaderReflectionConstantBuffer_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12ShaderReflectionConstantBuffer { pub fn new<'a, T: ID3D12ShaderReflectionConstantBuffer_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -7114,12 +7123,15 @@ impl ID3D12ShaderReflectionType_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] struct ID3D12ShaderReflectionType_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12ShaderReflectionType_ImplVtbl { const VTABLE: ID3D12ShaderReflectionType_Vtbl = ID3D12ShaderReflectionType_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D12ShaderReflectionType { pub fn new<'a, T: ID3D12ShaderReflectionType_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -7184,10 +7196,13 @@ impl ID3D12ShaderReflectionVariable_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ID3D12ShaderReflectionVariable_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ID3D12ShaderReflectionVariable_ImplVtbl { const VTABLE: ID3D12ShaderReflectionVariable_Vtbl = ID3D12ShaderReflectionVariable_Vtbl::new::(); } +#[cfg(feature = "std")] impl ID3D12ShaderReflectionVariable { pub fn new<'a, T: ID3D12ShaderReflectionVariable_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ID3D12ShaderReflectionVariable_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs index 2dd9ac22b0..35ceb0decd 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs @@ -3446,10 +3446,13 @@ impl GdiplusAbort_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct GdiplusAbort_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl GdiplusAbort_ImplVtbl { const VTABLE: GdiplusAbort_Vtbl = GdiplusAbort_Vtbl::new::(); } +#[cfg(feature = "std")] impl GdiplusAbort { pub fn new<'a, T: GdiplusAbort_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &GdiplusAbort_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/mod.rs index 100ec3be88..a18f01e18b 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/mod.rs @@ -460,10 +460,13 @@ impl IXAudio2EngineCallback_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct IXAudio2EngineCallback_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl IXAudio2EngineCallback_ImplVtbl { const VTABLE: IXAudio2EngineCallback_Vtbl = IXAudio2EngineCallback_Vtbl::new::(); } +#[cfg(feature = "std")] impl IXAudio2EngineCallback { pub fn new<'a, T: IXAudio2EngineCallback_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &IXAudio2EngineCallback_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -557,10 +560,13 @@ impl IXAudio2MasteringVoice_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct IXAudio2MasteringVoice_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl IXAudio2MasteringVoice_ImplVtbl { const VTABLE: IXAudio2MasteringVoice_Vtbl = IXAudio2MasteringVoice_Vtbl::new::(); } +#[cfg(feature = "std")] impl IXAudio2MasteringVoice { pub fn new<'a, T: IXAudio2MasteringVoice_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &IXAudio2MasteringVoice_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -704,10 +710,13 @@ impl IXAudio2SourceVoice_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct IXAudio2SourceVoice_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl IXAudio2SourceVoice_ImplVtbl { const VTABLE: IXAudio2SourceVoice_Vtbl = IXAudio2SourceVoice_Vtbl::new::(); } +#[cfg(feature = "std")] impl IXAudio2SourceVoice { pub fn new<'a, T: IXAudio2SourceVoice_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &IXAudio2SourceVoice_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -735,10 +744,13 @@ impl IXAudio2SubmixVoice_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct IXAudio2SubmixVoice_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl IXAudio2SubmixVoice_ImplVtbl { const VTABLE: IXAudio2SubmixVoice_Vtbl = IXAudio2SubmixVoice_Vtbl::new::(); } +#[cfg(feature = "std")] impl IXAudio2SubmixVoice { pub fn new<'a, T: IXAudio2SubmixVoice_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &IXAudio2SubmixVoice_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -994,10 +1006,13 @@ impl IXAudio2Voice_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct IXAudio2Voice_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl IXAudio2Voice_ImplVtbl { const VTABLE: IXAudio2Voice_Vtbl = IXAudio2Voice_Vtbl::new::(); } +#[cfg(feature = "std")] impl IXAudio2Voice { pub fn new<'a, T: IXAudio2Voice_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &IXAudio2Voice_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -1097,10 +1112,13 @@ impl IXAudio2VoiceCallback_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct IXAudio2VoiceCallback_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl IXAudio2VoiceCallback_ImplVtbl { const VTABLE: IXAudio2VoiceCallback_Vtbl = IXAudio2VoiceCallback_Vtbl::new::(); } +#[cfg(feature = "std")] impl IXAudio2VoiceCallback { pub fn new<'a, T: IXAudio2VoiceCallback_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &IXAudio2VoiceCallback_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; diff --git a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs index 49d512b729..9e6707f965 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs @@ -1474,10 +1474,13 @@ impl ISpNotifyCallback_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ISpNotifyCallback_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ISpNotifyCallback_ImplVtbl { const VTABLE: ISpNotifyCallback_Vtbl = ISpNotifyCallback_Vtbl::new::(); } +#[cfg(feature = "std")] impl ISpNotifyCallback { pub fn new<'a, T: ISpNotifyCallback_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ISpNotifyCallback_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -5877,10 +5880,13 @@ impl ISpTask_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ISpTask_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ISpTask_ImplVtbl { const VTABLE: ISpTask_Vtbl = ISpTask_Vtbl::new::(); } +#[cfg(feature = "std")] impl ISpTask { pub fn new<'a, T: ISpTask_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ISpTask_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -6201,10 +6207,13 @@ impl ISpThreadTask_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct ISpThreadTask_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl ISpThreadTask_ImplVtbl { const VTABLE: ISpThreadTask_Vtbl = ISpThreadTask_Vtbl::new::(); } +#[cfg(feature = "std")] impl ISpThreadTask { pub fn new<'a, T: ISpThreadTask_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &ISpThreadTask_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs index 9048d1d696..318407e748 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs @@ -1182,12 +1182,15 @@ impl IVssCreateWriterMetadata_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] struct IVssCreateWriterMetadata_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl IVssCreateWriterMetadata_ImplVtbl { const VTABLE: IVssCreateWriterMetadata_Vtbl = IVssCreateWriterMetadata_Vtbl::new::(); } +#[cfg(feature = "std")] #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl IVssCreateWriterMetadata { pub fn new<'a, T: IVssCreateWriterMetadata_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { @@ -2669,10 +2672,13 @@ impl IVssWriterComponents_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct IVssWriterComponents_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl IVssWriterComponents_ImplVtbl { const VTABLE: IVssWriterComponents_Vtbl = IVssWriterComponents_Vtbl::new::(); } +#[cfg(feature = "std")] impl IVssWriterComponents { pub fn new<'a, T: IVssWriterComponents_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &IVssWriterComponents_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs index b844be676c..34d50f352c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs @@ -1501,10 +1501,13 @@ impl IMemoryAllocator_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct IMemoryAllocator_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl IMemoryAllocator_ImplVtbl { const VTABLE: IMemoryAllocator_Vtbl = IMemoryAllocator_Vtbl::new::(); } +#[cfg(feature = "std")] impl IMemoryAllocator { pub fn new<'a, T: IMemoryAllocator_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &IMemoryAllocator_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs index b537e9f5a7..715a9b875c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/mod.rs @@ -27111,10 +27111,13 @@ impl IDebugFAEntryTags_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct IDebugFAEntryTags_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl IDebugFAEntryTags_ImplVtbl { const VTABLE: IDebugFAEntryTags_Vtbl = IDebugFAEntryTags_Vtbl::new::(); } +#[cfg(feature = "std")] impl IDebugFAEntryTags { pub fn new<'a, T: IDebugFAEntryTags_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &IDebugFAEntryTags_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; diff --git a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs index 3fc6d1806e..1cbf44aa50 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs @@ -13619,10 +13619,13 @@ impl IUMS_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct IUMS_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl IUMS_ImplVtbl { const VTABLE: IUMS_Vtbl = IUMS_Vtbl::new::(); } +#[cfg(feature = "std")] impl IUMS { pub fn new<'a, T: IUMS_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &IUMS_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/mod.rs index 7308f543ff..86f400879f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/mod.rs @@ -2948,10 +2948,13 @@ impl IRoMetaDataLocator_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct IRoMetaDataLocator_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl IRoMetaDataLocator_ImplVtbl { const VTABLE: IRoMetaDataLocator_Vtbl = IRoMetaDataLocator_Vtbl::new::(); } +#[cfg(feature = "std")] impl IRoMetaDataLocator { pub fn new<'a, T: IRoMetaDataLocator_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &IRoMetaDataLocator_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ }; @@ -3105,10 +3108,13 @@ impl IRoSimpleMetaDataBuilder_Vtbl { } } #[doc(hidden)] +#[cfg(feature = "std")] struct IRoSimpleMetaDataBuilder_ImplVtbl(core::marker::PhantomData); +#[cfg(feature = "std")] impl IRoSimpleMetaDataBuilder_ImplVtbl { const VTABLE: IRoSimpleMetaDataBuilder_Vtbl = IRoSimpleMetaDataBuilder_Vtbl::new::(); } +#[cfg(feature = "std")] impl IRoSimpleMetaDataBuilder { pub fn new<'a, T: IRoSimpleMetaDataBuilder_Impl>(this: &'a T) -> windows_core::ScopedInterface<'a, Self> { let this = windows_core::ScopedHeap { vtable: &IRoSimpleMetaDataBuilder_ImplVtbl::::VTABLE as *const _ as *const _, this: this as *const _ as *const _ };