public StoreOperationUnpinDeployment(System.Deployment.Internal.Isolation.IDefinitionAppId app, System.Deployment.Internal.Isolation.StoreApplicationReference reference) { this.Size = (uint)Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationUnpinDeployment)); this.Flags = OpFlags.Nothing; this.Application = app; this.Reference = reference.ToIntPtr(); }
public StoreOperationSetDeploymentMetadata(System.Deployment.Internal.Isolation.IDefinitionAppId Deployment, System.Deployment.Internal.Isolation.StoreApplicationReference Reference, System.Deployment.Internal.Isolation.StoreOperationMetadataProperty[] SetProperties, System.Deployment.Internal.Isolation.StoreOperationMetadataProperty[] TestProperties) { this.Size = (uint) Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata)); this.Flags = OpFlags.Nothing; this.Deployment = Deployment; if (SetProperties != null) { this.PropertiesToSet = MarshalProperties(SetProperties); this.cPropertiesToSet = new IntPtr(SetProperties.Length); } else { this.PropertiesToSet = IntPtr.Zero; this.cPropertiesToSet = IntPtr.Zero; } if (TestProperties != null) { this.PropertiesToTest = MarshalProperties(TestProperties); this.cPropertiesToTest = new IntPtr(TestProperties.Length); } else { this.PropertiesToTest = IntPtr.Zero; this.cPropertiesToTest = IntPtr.Zero; } this.InstallerReference = Reference.ToIntPtr(); }
public StoreOperationSetDeploymentMetadata(System.Deployment.Internal.Isolation.IDefinitionAppId Deployment, System.Deployment.Internal.Isolation.StoreApplicationReference Reference, System.Deployment.Internal.Isolation.StoreOperationMetadataProperty[] SetProperties, System.Deployment.Internal.Isolation.StoreOperationMetadataProperty[] TestProperties) { this.Size = (uint)Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata)); this.Flags = OpFlags.Nothing; this.Deployment = Deployment; if (SetProperties != null) { this.PropertiesToSet = MarshalProperties(SetProperties); this.cPropertiesToSet = new IntPtr(SetProperties.Length); } else { this.PropertiesToSet = IntPtr.Zero; this.cPropertiesToSet = IntPtr.Zero; } if (TestProperties != null) { this.PropertiesToTest = MarshalProperties(TestProperties); this.cPropertiesToTest = new IntPtr(TestProperties.Length); } else { this.PropertiesToTest = IntPtr.Zero; this.cPropertiesToTest = IntPtr.Zero; } this.InstallerReference = Reference.ToIntPtr(); }
public StoreOperationUnpinDeployment(System.Deployment.Internal.Isolation.IDefinitionAppId app, System.Deployment.Internal.Isolation.StoreApplicationReference reference) { this.Size = (uint) Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationUnpinDeployment)); this.Flags = OpFlags.Nothing; this.Application = app; this.Reference = reference.ToIntPtr(); }
public StoreOperationStageComponent(System.Deployment.Internal.Isolation.IDefinitionAppId app, System.Deployment.Internal.Isolation.IDefinitionIdentity comp, string Manifest) { this.Size = (uint)Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationStageComponent)); this.Flags = OpFlags.Nothing; this.Application = app; this.Component = comp; this.ManifestPath = Manifest; }
internal DefinitionAppId(System.Deployment.Internal.Isolation.IDefinitionAppId id) { if (id == null) { throw new ArgumentNullException(); } this._id = id; }
public StoreOperationStageComponent(System.Deployment.Internal.Isolation.IDefinitionAppId app, System.Deployment.Internal.Isolation.IDefinitionIdentity comp, string Manifest) { this.Size = (uint) Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationStageComponent)); this.Flags = OpFlags.Nothing; this.Application = app; this.Component = comp; this.ManifestPath = Manifest; }
public StoreOperationPinDeployment(System.Deployment.Internal.Isolation.IDefinitionAppId AppId, System.Deployment.Internal.Isolation.StoreApplicationReference Ref) { this.Size = (uint)Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationPinDeployment)); this.Flags = OpFlags.NeverExpires; this.Application = AppId; this.Reference = Ref.ToIntPtr(); this.ExpirationTime = 0L; }
public StoreOperationPinDeployment(System.Deployment.Internal.Isolation.IDefinitionAppId AppId, System.Deployment.Internal.Isolation.StoreApplicationReference Ref) { this.Size = (uint) Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationPinDeployment)); this.Flags = OpFlags.NeverExpires; this.Application = AppId; this.Reference = Ref.ToIntPtr(); this.ExpirationTime = 0L; }
public StoreOperationStageComponentFile(System.Deployment.Internal.Isolation.IDefinitionAppId App, System.Deployment.Internal.Isolation.IDefinitionIdentity Component, string CompRelPath, string SrcFile) { this.Size = (uint)Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationStageComponentFile)); this.Flags = OpFlags.Nothing; this.Application = App; this.Component = Component; this.ComponentRelativePath = CompRelPath; this.SourceFilePath = SrcFile; }
public StoreOperationStageComponentFile(System.Deployment.Internal.Isolation.IDefinitionAppId App, System.Deployment.Internal.Isolation.IDefinitionIdentity Component, string CompRelPath, string SrcFile) { this.Size = (uint) Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationStageComponentFile)); this.Flags = OpFlags.Nothing; this.Application = App; this.Component = Component; this.ComponentRelativePath = CompRelPath; this.SourceFilePath = SrcFile; }
public bool MoveNext() { System.Deployment.Internal.Isolation.IDefinitionAppId[] appIds = new System.Deployment.Internal.Isolation.IDefinitionAppId[1]; uint num = this._enum.Next(1, appIds); if (num == 1) { this._current = appIds[0]; } return (this._fValid = num == 1); }
public StoreOperationInstallDeployment(System.Deployment.Internal.Isolation.IDefinitionAppId App, bool UninstallOthers, System.Deployment.Internal.Isolation.StoreApplicationReference reference) { this.Size = (uint)Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationInstallDeployment)); this.Flags = OpFlags.Nothing; this.Application = App; if (UninstallOthers) { this.Flags |= OpFlags.UninstallOthers; } this.Reference = reference.ToIntPtr(); }
public bool MoveNext() { System.Deployment.Internal.Isolation.IDefinitionAppId[] appIds = new System.Deployment.Internal.Isolation.IDefinitionAppId[1]; uint num = this._enum.Next(1, appIds); if (num == 1) { this._current = appIds[0]; } return(this._fValid = num == 1); }
public byte[] GetDeploymentProperty(GetPackagePropertyFlags Flags, System.Deployment.Internal.Isolation.IDefinitionAppId Deployment, System.Deployment.Internal.Isolation.StoreApplicationReference Reference, Guid PropertySet, string PropertyName) { System.Deployment.Internal.Isolation.BLOB blob = new System.Deployment.Internal.Isolation.BLOB(); byte[] destination = null; try { this._pStore.GetDeploymentProperty((uint)Flags, Deployment, ref Reference, ref PropertySet, PropertyName, out blob); destination = new byte[blob.Size]; Marshal.Copy(blob.BlobData, destination, 0, (int)blob.Size); } finally { blob.Dispose(); } return(destination); }
public System.Deployment.Internal.Isolation.StoreDeploymentMetadataPropertyEnumeration EnumInstallerDeploymentProperties(Guid InstallerId, string InstallerName, string InstallerMetadata, System.Deployment.Internal.Isolation.IDefinitionAppId Deployment) { System.Deployment.Internal.Isolation.StoreApplicationReference reference = new System.Deployment.Internal.Isolation.StoreApplicationReference(InstallerId, InstallerName, InstallerMetadata); return(new System.Deployment.Internal.Isolation.StoreDeploymentMetadataPropertyEnumeration((System.Deployment.Internal.Isolation.IEnumSTORE_DEPLOYMENT_METADATA_PROPERTY) this._pStore.EnumInstallerDeploymentMetadataProperties(0, ref reference, Deployment, ref System.Deployment.Internal.Isolation.IsolationInterop.IID_IEnumSTORE_DEPLOYMENT_METADATA_PROPERTY))); }
public StoreOperationSetDeploymentMetadata(System.Deployment.Internal.Isolation.IDefinitionAppId Deployment, System.Deployment.Internal.Isolation.StoreApplicationReference Reference, System.Deployment.Internal.Isolation.StoreOperationMetadataProperty[] SetProperties) : this(Deployment, Reference, SetProperties, null) { }
public StoreOperationPinDeployment(System.Deployment.Internal.Isolation.IDefinitionAppId AppId, DateTime Expiry, System.Deployment.Internal.Isolation.StoreApplicationReference Ref) : this(AppId, Ref) { this.Flags |= OpFlags.NeverExpires; }
public StoreOperationStageComponentFile(System.Deployment.Internal.Isolation.IDefinitionAppId App, string CompRelPath, string SrcFile) : this(App, null, CompRelPath, SrcFile) { }
public StoreOperationInstallDeployment(System.Deployment.Internal.Isolation.IDefinitionAppId App, System.Deployment.Internal.Isolation.StoreApplicationReference reference) : this(App, true, reference) { }
public System.Deployment.Internal.Isolation.StoreAssemblyFileEnumeration EnumPrivateFiles(EnumApplicationPrivateFiles Flags, System.Deployment.Internal.Isolation.IDefinitionAppId Application, System.Deployment.Internal.Isolation.IDefinitionIdentity Assembly) { Guid guidOfType = System.Deployment.Internal.Isolation.IsolationInterop.GetGuidOfType(typeof(System.Deployment.Internal.Isolation.IEnumSTORE_ASSEMBLY_FILE)); return(new System.Deployment.Internal.Isolation.StoreAssemblyFileEnumeration((System.Deployment.Internal.Isolation.IEnumSTORE_ASSEMBLY_FILE) this._pStore.EnumPrivateFiles((uint)Flags, Application, Assembly, ref guidOfType))); }
internal static System.Deployment.Internal.Isolation.IActContext CreateActContext(System.Deployment.Internal.Isolation.IDefinitionAppId AppId) { CreateActContextParameters parameters; CreateActContextParametersSource source; CreateActContextParametersSourceDefinitionAppid appid; System.Deployment.Internal.Isolation.IActContext context; parameters.Size = (uint)Marshal.SizeOf(typeof(CreateActContextParameters)); parameters.Flags = 0x10; parameters.CustomStoreList = IntPtr.Zero; parameters.CultureFallbackList = IntPtr.Zero; parameters.ProcessorArchitectureList = IntPtr.Zero; parameters.Source = IntPtr.Zero; parameters.ProcArch = 0; source.Size = (uint)Marshal.SizeOf(typeof(CreateActContextParametersSource)); source.Flags = 0; source.SourceType = 1; source.Data = IntPtr.Zero; appid.Size = (uint)Marshal.SizeOf(typeof(CreateActContextParametersSourceDefinitionAppid)); appid.Flags = 0; appid.AppId = AppId; try { source.Data = appid.ToIntPtr(); parameters.Source = source.ToIntPtr(); context = CreateActContext(ref parameters) as System.Deployment.Internal.Isolation.IActContext; } finally { if (source.Data != IntPtr.Zero) { CreateActContextParametersSourceDefinitionAppid.Destroy(source.Data); source.Data = IntPtr.Zero; } if (parameters.Source != IntPtr.Zero) { CreateActContextParametersSource.Destroy(parameters.Source); parameters.Source = IntPtr.Zero; } } return(context); }
public StoreOperationStageComponent(System.Deployment.Internal.Isolation.IDefinitionAppId app, string Manifest) : this(app, null, Manifest) { }
public IPathLock LockApplicationPath(System.Deployment.Internal.Isolation.IDefinitionAppId app) { IntPtr ptr; return(new ApplicationPathLock(this._pStore, ptr, this._pStore.LockApplicationPath(0, app, out ptr))); }