Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public StoreOperationPinDeployment(System.Deployment.Internal.Isolation.IDefinitionAppId AppId, DateTime Expiry, System.Deployment.Internal.Isolation.StoreApplicationReference Ref) : this(AppId, Ref)
 {
     this.Flags |= OpFlags.NeverExpires;
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 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)));
 }
Ejemplo n.º 6
0
 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)
 {
 }
Ejemplo n.º 7
0
        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();
        }
Ejemplo n.º 8
0
 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)));
 }
Ejemplo n.º 9
0
 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));
 }