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, DateTime Expiry, System.Deployment.Internal.Isolation.StoreApplicationReference Ref) : this(AppId, Ref) { this.Flags |= OpFlags.NeverExpires; }
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 System.Deployment.Internal.Isolation.StoreDeploymentMetadataEnumeration EnumInstallerDeployments(Guid InstallerId, string InstallerName, string InstallerMetadata, System.Deployment.Internal.Isolation.IReferenceAppId DeploymentFilter) { System.Deployment.Internal.Isolation.StoreApplicationReference reference = new System.Deployment.Internal.Isolation.StoreApplicationReference(InstallerId, InstallerName, InstallerMetadata); return(new System.Deployment.Internal.Isolation.StoreDeploymentMetadataEnumeration((System.Deployment.Internal.Isolation.IEnumSTORE_DEPLOYMENT_METADATA) this._pStore.EnumInstallerDeploymentMetadata(0, ref reference, DeploymentFilter, ref System.Deployment.Internal.Isolation.IsolationInterop.IID_IEnumSTORE_DEPLOYMENT_METADATA))); }
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 void CalculateDelimiterOfDeploymentsBasedOnQuota(uint dwFlags, uint cDeployments, System.Deployment.Internal.Isolation.IDefinitionAppId[] rgpIDefinitionAppId_Deployments, ref System.Deployment.Internal.Isolation.StoreApplicationReference InstallerReference, ulong ulonglongQuota, ref uint Delimiter, ref ulong SizeSharedWithExternalDeployment, ref ulong SizeConsumedByInputDeploymentArray) { IntPtr zero = IntPtr.Zero; this._pStore.CalculateDelimiterOfDeploymentsBasedOnQuota(dwFlags, new IntPtr((long)cDeployments), rgpIDefinitionAppId_Deployments, ref InstallerReference, ulonglongQuota, ref zero, ref SizeSharedWithExternalDeployment, ref SizeConsumedByInputDeploymentArray); Delimiter = (uint)zero.ToInt64(); }
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 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 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 StoreOperationInstallDeployment(System.Deployment.Internal.Isolation.IDefinitionAppId App, System.Deployment.Internal.Isolation.StoreApplicationReference reference) : this(App, true, reference) { }
public System.Deployment.Internal.Isolation.StoreDeploymentMetadataEnumeration EnumInstallerDeployments(Guid InstallerId, string InstallerName, string InstallerMetadata, System.Deployment.Internal.Isolation.IReferenceAppId DeploymentFilter) { System.Deployment.Internal.Isolation.StoreApplicationReference reference = new System.Deployment.Internal.Isolation.StoreApplicationReference(InstallerId, InstallerName, InstallerMetadata); return new System.Deployment.Internal.Isolation.StoreDeploymentMetadataEnumeration((System.Deployment.Internal.Isolation.IEnumSTORE_DEPLOYMENT_METADATA) this._pStore.EnumInstallerDeploymentMetadata(0, ref reference, DeploymentFilter, ref System.Deployment.Internal.Isolation.IsolationInterop.IID_IEnumSTORE_DEPLOYMENT_METADATA)); }
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)); }