public StoreOperationUninstallDeployment(IDefinitionAppId appid, StoreApplicationReference AppRef)
 {
     this.Size = (uint) Marshal.SizeOf(typeof(StoreOperationUninstallDeployment));
     this.Flags = OpFlags.Nothing;
     this.Application = appid;
     this.Reference = AppRef.ToIntPtr();
 }
Exemplo n.º 2
0
        public StoreDeploymentMetadataPropertyEnumeration EnumInstallerDeploymentProperties(Guid InstallerId, string InstallerName, string InstallerMetadata, IDefinitionAppId Deployment)
        {
            StoreApplicationReference storeApplicationReference = new StoreApplicationReference(InstallerId, InstallerName, InstallerMetadata);
            object obj = this._pStore.EnumInstallerDeploymentMetadataProperties(0U, ref storeApplicationReference, Deployment, ref IsolationInterop.IID_IEnumSTORE_DEPLOYMENT_METADATA_PROPERTY);

            return(new StoreDeploymentMetadataPropertyEnumeration((IEnumSTORE_DEPLOYMENT_METADATA_PROPERTY)obj));
        }
Exemplo n.º 3
0
        public StoreDeploymentMetadataEnumeration EnumInstallerDeployments(Guid InstallerId, string InstallerName, string InstallerMetadata, IReferenceAppId DeploymentFilter)
        {
            StoreApplicationReference storeApplicationReference = new StoreApplicationReference(InstallerId, InstallerName, InstallerMetadata);
            object obj = this._pStore.EnumInstallerDeploymentMetadata(0U, ref storeApplicationReference, DeploymentFilter, ref IsolationInterop.IID_IEnumSTORE_DEPLOYMENT_METADATA);

            return(new StoreDeploymentMetadataEnumeration((IEnumSTORE_DEPLOYMENT_METADATA)obj));
        }
Exemplo n.º 4
0
 public StoreOperationUninstallDeployment(IDefinitionAppId appid, StoreApplicationReference AppRef)
 {
     this.Size        = (uint)Marshal.SizeOf(typeof(StoreOperationUninstallDeployment));
     this.Flags       = StoreOperationUninstallDeployment.OpFlags.Nothing;
     this.Application = appid;
     this.Reference   = AppRef.ToIntPtr();
 }
Exemplo n.º 5
0
 public StoreOperationUnpinDeployment(IDefinitionAppId app, StoreApplicationReference reference)
 {
     this.Size        = (uint)Marshal.SizeOf(typeof(StoreOperationUnpinDeployment));
     this.Flags       = StoreOperationUnpinDeployment.OpFlags.Nothing;
     this.Application = app;
     this.Reference   = reference.ToIntPtr();
 }
 public StoreOperationSetDeploymentMetadata(IDefinitionAppId Deployment, StoreApplicationReference Reference, StoreOperationMetadataProperty[] SetProperties, StoreOperationMetadataProperty[] TestProperties)
 {
     this.Size = (uint) Marshal.SizeOf(typeof(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(IDefinitionAppId app, StoreApplicationReference reference)
 {
     this.Size = (uint) Marshal.SizeOf(typeof(StoreOperationUnpinDeployment));
     this.Flags = OpFlags.Nothing;
     this.Application = app;
     this.Reference = reference.ToIntPtr();
 }
Exemplo n.º 8
0
 public StoreOperationSetDeploymentMetadata(IDefinitionAppId Deployment, StoreApplicationReference Reference, StoreOperationMetadataProperty[] SetProperties, StoreOperationMetadataProperty[] TestProperties)
 {
     this.Size       = (uint)Marshal.SizeOf(typeof(StoreOperationSetDeploymentMetadata));
     this.Flags      = StoreOperationSetDeploymentMetadata.OpFlags.Nothing;
     this.Deployment = Deployment;
     if (SetProperties != null)
     {
         this.PropertiesToSet  = StoreOperationSetDeploymentMetadata.MarshalProperties(SetProperties);
         this.cPropertiesToSet = new IntPtr(SetProperties.Length);
     }
     else
     {
         this.PropertiesToSet  = IntPtr.Zero;
         this.cPropertiesToSet = IntPtr.Zero;
     }
     if (TestProperties != null)
     {
         this.PropertiesToTest  = StoreOperationSetDeploymentMetadata.MarshalProperties(TestProperties);
         this.cPropertiesToTest = new IntPtr(TestProperties.Length);
     }
     else
     {
         this.PropertiesToTest  = IntPtr.Zero;
         this.cPropertiesToTest = IntPtr.Zero;
     }
     this.InstallerReference = Reference.ToIntPtr();
 }
 public StoreOperationPinDeployment(IDefinitionAppId AppId, StoreApplicationReference Ref)
 {
     this.Size = (uint) Marshal.SizeOf(typeof(StoreOperationPinDeployment));
     this.Flags = OpFlags.NeverExpires;
     this.Application = AppId;
     this.Reference = Ref.ToIntPtr();
     this.ExpirationTime = 0L;
 }
Exemplo n.º 10
0
 public StoreOperationPinDeployment(IDefinitionAppId AppId, StoreApplicationReference Ref)
 {
     this.Size           = (uint)Marshal.SizeOf(typeof(StoreOperationPinDeployment));
     this.Flags          = StoreOperationPinDeployment.OpFlags.NeverExpires;
     this.Application    = AppId;
     this.Reference      = Ref.ToIntPtr();
     this.ExpirationTime = 0L;
 }
 public StoreOperationInstallDeployment(IDefinitionAppId App, bool UninstallOthers, StoreApplicationReference reference)
 {
     this.Size = (uint) Marshal.SizeOf(typeof(StoreOperationInstallDeployment));
     this.Flags = OpFlags.Nothing;
     this.Application = App;
     if (UninstallOthers)
     {
         this.Flags |= OpFlags.UninstallOthers;
     }
     this.Reference = reference.ToIntPtr();
 }
Exemplo n.º 12
0
 public void Destroy()
 {
     if (this.PropertiesToSet != IntPtr.Zero)
     {
         StoreOperationSetDeploymentMetadata.DestroyProperties(this.PropertiesToSet, (ulong)this.cPropertiesToSet.ToInt64());
         this.PropertiesToSet  = IntPtr.Zero;
         this.cPropertiesToSet = IntPtr.Zero;
     }
     if (this.PropertiesToTest != IntPtr.Zero)
     {
         StoreOperationSetDeploymentMetadata.DestroyProperties(this.PropertiesToTest, (ulong)this.cPropertiesToTest.ToInt64());
         this.PropertiesToTest  = IntPtr.Zero;
         this.cPropertiesToTest = IntPtr.Zero;
     }
     if (this.InstallerReference != IntPtr.Zero)
     {
         StoreApplicationReference.Destroy(this.InstallerReference);
         this.InstallerReference = IntPtr.Zero;
     }
 }
 public StoreOperationPinDeployment(IDefinitionAppId AppId, DateTime Expiry, StoreApplicationReference Ref) : this(AppId, Ref)
 {
     this.Flags |= OpFlags.NeverExpires;
 }
        [System.Security.SecuritySafeCritical]  // auto-generated
        public StoreOperationPinDeployment(IDefinitionAppId AppId, StoreApplicationReference Ref)
        {
            Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationPinDeployment));
            Flags = OpFlags.NeverExpires;
            Application = AppId;

            Reference = Ref.ToIntPtr();
            ExpirationTime = 0;
        }
Exemplo n.º 15
0
 public StoreDeploymentMetadataEnumeration EnumInstallerDeployments(Guid InstallerId, string InstallerName, string InstallerMetadata, IReferenceAppId DeploymentFilter)
 {
     StoreApplicationReference reference = new StoreApplicationReference(InstallerId, InstallerName, InstallerMetadata);
     return new StoreDeploymentMetadataEnumeration((IEnumSTORE_DEPLOYMENT_METADATA) this._pStore.EnumInstallerDeploymentMetadata(0, ref reference, DeploymentFilter, ref IsolationInterop.IID_IEnumSTORE_DEPLOYMENT_METADATA));
 }
Exemplo n.º 16
0
 public StoreDeploymentMetadataPropertyEnumeration EnumInstallerDeploymentProperties(Guid InstallerId, string InstallerName, string InstallerMetadata, IDefinitionAppId Deployment)
 {
     StoreApplicationReference reference = new StoreApplicationReference(InstallerId, InstallerName, InstallerMetadata);
     return new StoreDeploymentMetadataPropertyEnumeration((IEnumSTORE_DEPLOYMENT_METADATA_PROPERTY) this._pStore.EnumInstallerDeploymentMetadataProperties(0, ref reference, Deployment, ref IsolationInterop.IID_IEnumSTORE_DEPLOYMENT_METADATA_PROPERTY));
 }
Exemplo n.º 17
0
 public void CalculateDelimiterOfDeploymentsBasedOnQuota(uint dwFlags, uint cDeployments, IDefinitionAppId[] rgpIDefinitionAppId_Deployments, ref 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();
 }
Exemplo n.º 18
0
 public byte[] GetDeploymentProperty(GetPackagePropertyFlags Flags, IDefinitionAppId Deployment, StoreApplicationReference Reference, Guid PropertySet, string PropertyName)
 {
     BLOB blob = new 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;
 }
 [System.Security.SecuritySafeCritical]  // auto-generated
 public StoreOperationUnpinDeployment(IDefinitionAppId app, StoreApplicationReference reference)
 {
     Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationUnpinDeployment));
     Flags = OpFlags.Nothing;
     Application = app;
     Reference = reference.ToIntPtr();
 }
Exemplo n.º 20
0
 public StoreOperationSetDeploymentMetadata(IDefinitionAppId Deployment, StoreApplicationReference Reference, StoreOperationMetadataProperty[] SetProperties)
 {
     this = new StoreOperationSetDeploymentMetadata(Deployment, Reference, SetProperties, (StoreOperationMetadataProperty[])null);
 }
 public StoreOperationSetDeploymentMetadata(IDefinitionAppId Deployment, StoreApplicationReference Reference, StoreOperationMetadataProperty[] SetProperties)
     : this(Deployment, Reference, SetProperties, null)
 {
 }
Exemplo n.º 22
0
 public StoreOperationPinDeployment(IDefinitionAppId AppId, DateTime Expiry, StoreApplicationReference Ref)
 {
     this       = new StoreOperationPinDeployment(AppId, Ref);
     this.Flags = this.Flags | StoreOperationPinDeployment.OpFlags.NeverExpires;
 }
        public void CalculateDelimiterOfDeploymentsBasedOnQuota(
            UInt32 dwFlags,
            UInt32 cDeployments,
            IDefinitionAppId[] rgpIDefinitionAppId_Deployments,
            ref StoreApplicationReference InstallerReference,
            UInt64 ulonglongQuota,
            ref UInt32 Delimiter,
            ref UInt64 SizeSharedWithExternalDeployment,
            ref UInt64 SizeConsumedByInputDeploymentArray
            )
        {
            IntPtr DelimIntPtr = IntPtr.Zero;
            
            _pStore.CalculateDelimiterOfDeploymentsBasedOnQuota(
                dwFlags,
                new IntPtr((Int64)cDeployments),
                rgpIDefinitionAppId_Deployments,
                ref InstallerReference,
                ulonglongQuota,
                ref DelimIntPtr,
                ref SizeSharedWithExternalDeployment,
                ref SizeConsumedByInputDeploymentArray);
                
            Delimiter = (UInt32)DelimIntPtr.ToInt64();

            return;
        }
        [System.Security.SecurityCritical]  // auto-generated
        public byte[] GetDeploymentProperty(
                GetPackagePropertyFlags Flags,
                IDefinitionAppId Deployment,
                StoreApplicationReference Reference,
                Guid PropertySet,
                string PropertyName
                )
        {
            BLOB b = new BLOB();
            byte[] retval = null;

            try
            {
                _pStore.GetDeploymentProperty(
                    (UInt32)Flags,
                    Deployment,
                    ref Reference,
                    ref PropertySet,
                    PropertyName,
                    out b);

                retval = new byte[b.Size];
                Marshal.Copy(b.BlobData, retval, 0, (int)b.Size);
            }
            finally
            {
                b.Dispose();
            }

            return retval;
        }
Exemplo n.º 25
0
        public byte[] GetDeploymentProperty(Store.GetPackagePropertyFlags Flags, IDefinitionAppId Deployment, StoreApplicationReference Reference, Guid PropertySet, string PropertyName)
        {
            BLOB blob = default(BLOB);

            byte[] array = null;
            try
            {
                this._pStore.GetDeploymentProperty((uint)Flags, Deployment, ref Reference, ref PropertySet, PropertyName, out blob);
                array = new byte[blob.Size];
                Marshal.Copy(blob.BlobData, array, 0, (int)blob.Size);
            }
            finally
            {
                blob.Dispose();
            }
            return(array);
        }
Exemplo n.º 26
0
        public void CalculateDelimiterOfDeploymentsBasedOnQuota(uint dwFlags, uint cDeployments, IDefinitionAppId[] rgpIDefinitionAppId_Deployments, ref StoreApplicationReference InstallerReference, ulong ulonglongQuota, ref uint Delimiter, ref ulong SizeSharedWithExternalDeployment, ref ulong SizeConsumedByInputDeploymentArray)
        {
            IntPtr zero = IntPtr.Zero;

            this._pStore.CalculateDelimiterOfDeploymentsBasedOnQuota(dwFlags, new IntPtr((long)((ulong)cDeployments)), rgpIDefinitionAppId_Deployments, ref InstallerReference, ulonglongQuota, ref zero, ref SizeSharedWithExternalDeployment, ref SizeConsumedByInputDeploymentArray);
            Delimiter = (uint)zero.ToInt64();
        }
 public StoreOperationInstallDeployment(IDefinitionAppId App, bool UninstallOthers, StoreApplicationReference reference)
 {
     this.Size        = (uint)Marshal.SizeOf(typeof(StoreOperationInstallDeployment));
     this.Flags       = StoreOperationInstallDeployment.OpFlags.Nothing;
     this.Application = App;
     if (UninstallOthers)
     {
         this.Flags |= StoreOperationInstallDeployment.OpFlags.UninstallOthers;
     }
     this.Reference = reference.ToIntPtr();
 }
Exemplo n.º 28
0
        public byte[] GetDeploymentProperty(Store.GetPackagePropertyFlags Flags, IDefinitionAppId Deployment, StoreApplicationReference Reference, Guid PropertySet, string PropertyName)
        {
            BLOB blob = new BLOB();

            byte[] destination = (byte[])null;
            try
            {
                this._pStore.GetDeploymentProperty((uint)Flags, Deployment, ref Reference, ref PropertySet, PropertyName, out blob);
                destination = new byte[(int)blob.Size];
                Marshal.Copy(blob.BlobData, destination, 0, (int)blob.Size);
            }
            finally
            {
                blob.Dispose();
            }
            return(destination);
        }
 // Token: 0x06004EB1 RID: 20145 RVA: 0x00117F0B File Offset: 0x0011610B
 public StoreOperationInstallDeployment(IDefinitionAppId App, StoreApplicationReference reference)
 {
     this = new StoreOperationInstallDeployment(App, true, reference);
 }
 public StoreOperationInstallDeployment(IDefinitionAppId App, StoreApplicationReference reference) : this(App, true, reference)
 {
 }
 public void Destroy()
 {
     StoreApplicationReference.Destroy(this.Reference);
 }
 public StoreOperationSetDeploymentMetadata(IDefinitionAppId Deployment, StoreApplicationReference Reference, StoreOperationMetadataProperty[] SetProperties) : this(Deployment, Reference, SetProperties, null)
 {
 }