@@ -2919,11 +2919,8 @@ windows_core::imp::define_interface!(IWiaPropertyStorage, IWiaPropertyStorage_Vt
2919
2919
windows_core:: imp:: interface_hierarchy!( IWiaPropertyStorage , windows_core:: IUnknown ) ;
2920
2920
impl IWiaPropertyStorage {
2921
2921
#[ cfg( all( feature = "Win32_System_Com_StructuredStorage" , feature = "Win32_System_Variant" ) ) ]
2922
- pub unsafe fn ReadMultiple ( & self , cpspec : u32 , rgpspec : * const super :: super :: System :: Com :: StructuredStorage :: PROPSPEC ) -> windows_core:: Result < super :: super :: System :: Com :: StructuredStorage :: PROPVARIANT > {
2923
- unsafe {
2924
- let mut result__ = core:: mem:: zeroed ( ) ;
2925
- ( windows_core:: Interface :: vtable ( self ) . ReadMultiple ) ( windows_core:: Interface :: as_raw ( self ) , cpspec, rgpspec, & mut result__) . map ( || core:: mem:: transmute ( result__) )
2926
- }
2922
+ pub unsafe fn ReadMultiple ( & self , cpspec : u32 , rgpspec : * const super :: super :: System :: Com :: StructuredStorage :: PROPSPEC , rgpropvar : * mut super :: super :: System :: Com :: StructuredStorage :: PROPVARIANT ) -> windows_core:: Result < ( ) > {
2923
+ unsafe { ( windows_core:: Interface :: vtable ( self ) . ReadMultiple ) ( windows_core:: Interface :: as_raw ( self ) , cpspec, rgpspec, core:: mem:: transmute ( rgpropvar) ) . ok ( ) }
2927
2924
}
2928
2925
#[ cfg( all( feature = "Win32_System_Com_StructuredStorage" , feature = "Win32_System_Variant" ) ) ]
2929
2926
pub unsafe fn WriteMultiple ( & self , cpspec : u32 , rgpspec : * const super :: super :: System :: Com :: StructuredStorage :: PROPSPEC , rgpropvar : * const super :: super :: System :: Com :: StructuredStorage :: PROPVARIANT , propidnamefirst : u32 ) -> windows_core:: Result < ( ) > {
@@ -2933,11 +2930,8 @@ impl IWiaPropertyStorage {
2933
2930
pub unsafe fn DeleteMultiple ( & self , rgpspec : & [ super :: super :: System :: Com :: StructuredStorage :: PROPSPEC ] ) -> windows_core:: Result < ( ) > {
2934
2931
unsafe { ( windows_core:: Interface :: vtable ( self ) . DeleteMultiple ) ( windows_core:: Interface :: as_raw ( self ) , rgpspec. len ( ) . try_into ( ) . unwrap ( ) , core:: mem:: transmute ( rgpspec. as_ptr ( ) ) ) . ok ( ) }
2935
2932
}
2936
- pub unsafe fn ReadPropertyNames ( & self , cpropid : u32 , rgpropid : * const u32 ) -> windows_core:: Result < windows_core:: PWSTR > {
2937
- unsafe {
2938
- let mut result__ = core:: mem:: zeroed ( ) ;
2939
- ( windows_core:: Interface :: vtable ( self ) . ReadPropertyNames ) ( windows_core:: Interface :: as_raw ( self ) , cpropid, rgpropid, & mut result__) . map ( || result__)
2940
- }
2933
+ pub unsafe fn ReadPropertyNames ( & self , cpropid : u32 , rgpropid : * const u32 , rglpwstrname : * mut windows_core:: PWSTR ) -> windows_core:: Result < ( ) > {
2934
+ unsafe { ( windows_core:: Interface :: vtable ( self ) . ReadPropertyNames ) ( windows_core:: Interface :: as_raw ( self ) , cpropid, rgpropid, core:: mem:: transmute ( rglpwstrname) ) . ok ( ) }
2941
2935
}
2942
2936
pub unsafe fn WritePropertyNames ( & self , cpropid : u32 , rgpropid : * const u32 , rglpwstrname : * const windows_core:: PCWSTR ) -> windows_core:: Result < ( ) > {
2943
2937
unsafe { ( windows_core:: Interface :: vtable ( self ) . WritePropertyNames ) ( windows_core:: Interface :: as_raw ( self ) , cpropid, rgpropid, rglpwstrname) . ok ( ) }
@@ -3036,10 +3030,10 @@ pub struct IWiaPropertyStorage_Vtbl {
3036
3030
}
3037
3031
#[ cfg( all( feature = "Win32_System_Com_StructuredStorage" , feature = "Win32_System_Variant" ) ) ]
3038
3032
pub trait IWiaPropertyStorage_Impl : windows_core:: IUnknownImpl {
3039
- fn ReadMultiple ( & self , cpspec : u32 , rgpspec : * const super :: super :: System :: Com :: StructuredStorage :: PROPSPEC ) -> windows_core :: Result < super :: super :: System :: Com :: StructuredStorage :: PROPVARIANT > ;
3033
+ fn ReadMultiple ( & self , cpspec : u32 , rgpspec : * const super :: super :: System :: Com :: StructuredStorage :: PROPSPEC , rgpropvar : * mut super :: super :: System :: Com :: StructuredStorage :: PROPVARIANT ) -> windows_core :: Result < ( ) > ;
3040
3034
fn WriteMultiple ( & self , cpspec : u32 , rgpspec : * const super :: super :: System :: Com :: StructuredStorage :: PROPSPEC , rgpropvar : * const super :: super :: System :: Com :: StructuredStorage :: PROPVARIANT , propidnamefirst : u32 ) -> windows_core:: Result < ( ) > ;
3041
3035
fn DeleteMultiple ( & self , cpspec : u32 , rgpspec : * const super :: super :: System :: Com :: StructuredStorage :: PROPSPEC ) -> windows_core:: Result < ( ) > ;
3042
- fn ReadPropertyNames ( & self , cpropid : u32 , rgpropid : * const u32 ) -> windows_core:: Result < windows_core :: PWSTR > ;
3036
+ fn ReadPropertyNames ( & self , cpropid : u32 , rgpropid : * const u32 , rglpwstrname : * mut windows_core :: PWSTR ) -> windows_core:: Result < ( ) > ;
3043
3037
fn WritePropertyNames ( & self , cpropid : u32 , rgpropid : * const u32 , rglpwstrname : * const windows_core:: PCWSTR ) -> windows_core:: Result < ( ) > ;
3044
3038
fn DeletePropertyNames ( & self , cpropid : u32 , rgpropid : * const u32 ) -> windows_core:: Result < ( ) > ;
3045
3039
fn Commit ( & self , grfcommitflags : u32 ) -> windows_core:: Result < ( ) > ;
@@ -3059,13 +3053,7 @@ impl IWiaPropertyStorage_Vtbl {
3059
3053
unsafe extern "system" fn ReadMultiple < Identity : IWiaPropertyStorage_Impl , const OFFSET : isize > ( this : * mut core:: ffi:: c_void , cpspec : u32 , rgpspec : * const super :: super :: System :: Com :: StructuredStorage :: PROPSPEC , rgpropvar : * mut super :: super :: System :: Com :: StructuredStorage :: PROPVARIANT ) -> windows_core:: HRESULT {
3060
3054
unsafe {
3061
3055
let this: & Identity = & * ( ( this as * const * const ( ) ) . offset ( OFFSET ) as * const Identity ) ;
3062
- match IWiaPropertyStorage_Impl :: ReadMultiple ( this, core:: mem:: transmute_copy ( & cpspec) , core:: mem:: transmute_copy ( & rgpspec) ) {
3063
- Ok ( ok__) => {
3064
- rgpropvar. write ( core:: mem:: transmute ( ok__) ) ;
3065
- windows_core:: HRESULT ( 0 )
3066
- }
3067
- Err ( err) => err. into ( ) ,
3068
- }
3056
+ IWiaPropertyStorage_Impl :: ReadMultiple ( this, core:: mem:: transmute_copy ( & cpspec) , core:: mem:: transmute_copy ( & rgpspec) , core:: mem:: transmute_copy ( & rgpropvar) ) . into ( )
3069
3057
}
3070
3058
}
3071
3059
unsafe extern "system" fn WriteMultiple < Identity : IWiaPropertyStorage_Impl , const OFFSET : isize > ( this : * mut core:: ffi:: c_void , cpspec : u32 , rgpspec : * const super :: super :: System :: Com :: StructuredStorage :: PROPSPEC , rgpropvar : * const super :: super :: System :: Com :: StructuredStorage :: PROPVARIANT , propidnamefirst : u32 ) -> windows_core:: HRESULT {
@@ -3083,13 +3071,7 @@ impl IWiaPropertyStorage_Vtbl {
3083
3071
unsafe extern "system" fn ReadPropertyNames < Identity : IWiaPropertyStorage_Impl , const OFFSET : isize > ( this : * mut core:: ffi:: c_void , cpropid : u32 , rgpropid : * const u32 , rglpwstrname : * mut windows_core:: PWSTR ) -> windows_core:: HRESULT {
3084
3072
unsafe {
3085
3073
let this: & Identity = & * ( ( this as * const * const ( ) ) . offset ( OFFSET ) as * const Identity ) ;
3086
- match IWiaPropertyStorage_Impl :: ReadPropertyNames ( this, core:: mem:: transmute_copy ( & cpropid) , core:: mem:: transmute_copy ( & rgpropid) ) {
3087
- Ok ( ok__) => {
3088
- rglpwstrname. write ( core:: mem:: transmute ( ok__) ) ;
3089
- windows_core:: HRESULT ( 0 )
3090
- }
3091
- Err ( err) => err. into ( ) ,
3092
- }
3074
+ IWiaPropertyStorage_Impl :: ReadPropertyNames ( this, core:: mem:: transmute_copy ( & cpropid) , core:: mem:: transmute_copy ( & rgpropid) , core:: mem:: transmute_copy ( & rglpwstrname) ) . into ( )
3093
3075
}
3094
3076
}
3095
3077
unsafe extern "system" fn WritePropertyNames < Identity : IWiaPropertyStorage_Impl , const OFFSET : isize > ( this : * mut core:: ffi:: c_void , cpropid : u32 , rgpropid : * const u32 , rglpwstrname : * const windows_core:: PCWSTR ) -> windows_core:: HRESULT {
0 commit comments