int IPropertySetStorage.Open( ref Guid rfmtid, UInt32 grfMode, out IPropertyStorage ppprstg ) { UnsafeNativeCompoundFileMethods.UnsafeNativeIPropertyStorage propertyStorage; int hr = _unsafePropertySetStorage.Open( ref rfmtid, grfMode, out propertyStorage ); if (propertyStorage != null) { ppprstg = new SafeIPropertyStorageImplementation(propertyStorage); } else { ppprstg = null; } return(hr); }
void IPropertySetStorage.Create( ref Guid rfmtid, ref Guid pclsid, UInt32 grfFlags, UInt32 grfMode, out IPropertyStorage ppprstg ) { UnsafeNativeCompoundFileMethods.UnsafeNativeIPropertyStorage propertyStorage; _unsafePropertySetStorage.Create( ref rfmtid, ref pclsid, grfFlags, grfMode, out propertyStorage ); if (propertyStorage != null) { ppprstg = new SafeIPropertyStorageImplementation(propertyStorage); } else { ppprstg = null; } }
int IPropertySetStorage.Open( ref Guid rfmtid, UInt32 grfMode, out IPropertyStorage ppprstg ) { SecurityHelper.DemandCompoundFileIOPermission(); UnsafeNativeCompoundFileMethods.UnsafeNativeIPropertyStorage propertyStorage; int hr = _unsafePropertySetStorage.Open( ref rfmtid, grfMode, out propertyStorage ); if (propertyStorage != null) ppprstg = new SafeIPropertyStorageImplementation(propertyStorage); else ppprstg = null; return hr; }
void IPropertySetStorage.Create( ref Guid rfmtid, ref Guid pclsid, UInt32 grfFlags, UInt32 grfMode, out IPropertyStorage ppprstg ) { SecurityHelper.DemandCompoundFileIOPermission(); UnsafeNativeCompoundFileMethods.UnsafeNativeIPropertyStorage propertyStorage; _unsafePropertySetStorage.Create( ref rfmtid, ref pclsid, grfFlags, grfMode, out propertyStorage ); if (propertyStorage != null) ppprstg = new SafeIPropertyStorageImplementation(propertyStorage); else ppprstg = null; }