ToIntPtr() public method

public ToIntPtr ( ) : IntPtr
return IntPtr
Exemplo n.º 1
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();
 }
 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();
 }
Exemplo n.º 3
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 StoreOperationUninstallDeployment(IDefinitionAppId appid, StoreApplicationReference AppRef)
 {
     this.Size = (uint) Marshal.SizeOf(typeof(StoreOperationUninstallDeployment));
     this.Flags = OpFlags.Nothing;
     this.Application = appid;
     this.Reference = AppRef.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.º 6
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();
 }
Exemplo n.º 7
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 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;
 }
 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();
 }
 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();
 }
 [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();
 }
        [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;
        }