本文整理汇总了C#中IDefinitionAppId类的典型用法代码示例。如果您正苦于以下问题:C# IDefinitionAppId类的具体用法?C# IDefinitionAppId怎么用?C# IDefinitionAppId使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IDefinitionAppId类属于命名空间,在下文中一共展示了IDefinitionAppId类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StoreOperationSetDeploymentMetadata
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();
}
示例2: StoreOperationUnpinDeployment
public StoreOperationUnpinDeployment(IDefinitionAppId app, StoreApplicationReference reference)
{
this.Size = (uint) Marshal.SizeOf(typeof(StoreOperationUnpinDeployment));
this.Flags = OpFlags.Nothing;
this.Application = app;
this.Reference = reference.ToIntPtr();
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:7,代码来源:StoreOperationUnpinDeployment.cs
示例3: StoreOperationUninstallDeployment
public StoreOperationUninstallDeployment(IDefinitionAppId appid, StoreApplicationReference AppRef)
{
this.Size = (uint) Marshal.SizeOf(typeof(StoreOperationUninstallDeployment));
this.Flags = OpFlags.Nothing;
this.Application = appid;
this.Reference = AppRef.ToIntPtr();
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:7,代码来源:StoreOperationUninstallDeployment.cs
示例4: StoreOperationStageComponent
public StoreOperationStageComponent(IDefinitionAppId app, IDefinitionIdentity comp, string Manifest)
{
this.Size = (uint) Marshal.SizeOf(typeof(StoreOperationStageComponent));
this.Flags = OpFlags.Nothing;
this.Application = app;
this.Component = comp;
this.ManifestPath = Manifest;
}
示例5: StoreOperationPinDeployment
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;
}
示例6: StoreOperationStageComponentFile
public StoreOperationStageComponentFile(IDefinitionAppId App, IDefinitionIdentity Component, string CompRelPath, string SrcFile)
{
this.Size = (uint) Marshal.SizeOf(typeof(StoreOperationStageComponentFile));
this.Flags = OpFlags.Nothing;
this.Application = App;
this.Component = Component;
this.ComponentRelativePath = CompRelPath;
this.SourceFilePath = SrcFile;
}
示例7: MoveNext
public bool MoveNext()
{
IDefinitionAppId[] appIds = new IDefinitionAppId[1];
uint num = this._enum.Next(1, appIds);
if (num == 1)
{
this._current = appIds[0];
}
return (this._fValid = num == 1);
}
示例8: StoreOperationInstallDeployment
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();
}
示例9: CreateActContext
internal static IActContext CreateActContext(IDefinitionAppId AppId)
{
CreateActContextParameters parameters;
CreateActContextParametersSource source;
CreateActContextParametersSourceDefinitionAppid appid;
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 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;
}
示例10: LockApplicationPath
public IPathLock LockApplicationPath(IDefinitionAppId app)
{
string thePath;
IntPtr theCookie;
thePath = _pStore.LockApplicationPath(0, app, out theCookie);
return new ApplicationPathLock(_pStore, theCookie, thePath);
}
示例11: EnumPrivateFiles
public StoreAssemblyFileEnumeration EnumPrivateFiles(EnumApplicationPrivateFiles Flags, IDefinitionAppId Application, IDefinitionIdentity Assembly)
{
Guid guidOfType = IsolationInterop.GetGuidOfType(typeof(IEnumSTORE_ASSEMBLY_FILE));
return new StoreAssemblyFileEnumeration((IEnumSTORE_ASSEMBLY_FILE) this._pStore.EnumPrivateFiles((uint) Flags, Application, Assembly, ref guidOfType));
}
示例12: CalculateDelimiterOfDeploymentsBasedOnQuota
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();
}
示例13: EnumInstallerDeploymentProperties
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));
}
示例14: EnumPrivateFiles
public StoreAssemblyFileEnumeration EnumPrivateFiles(
EnumApplicationPrivateFiles Flags,
IDefinitionAppId Application,
IDefinitionIdentity Assembly)
{
System.Guid g = IsolationInterop.GetGuidOfType(typeof(IEnumSTORE_ASSEMBLY_FILE));
object o;
o=_pStore.EnumPrivateFiles((UInt32)Flags, Application, Assembly, ref g);
return new StoreAssemblyFileEnumeration((IEnumSTORE_ASSEMBLY_FILE)o);
}
示例15: DefinitionAppId
internal DefinitionAppId(IDefinitionAppId id)
{
if (id == null)
throw new ArgumentNullException();
_id = id;
}