private readonly ModuleAttributes _moduleAttributes; // attributes of the hosted form's module. #endregion Fields #region Constructors public ModuleSettingsHostForm(ModuleAttributes moduleAttributes, Form hostedForm) { InitializeComponent(); this._hostedForm = hostedForm; this._moduleAttributes = moduleAttributes; }
public void Dispose() { if (_isDisposed) { return; } if (Declarations != null) { Declarations.Clear(); } if (Comments != null) { Comments.Clear(); } if (Annotations != null) { Annotations.Clear(); } if (ModuleAttributes != null) { ModuleAttributes.Clear(); } _isDisposed = true; }
private void ReadCliHeader(BufferedBinaryReader reader, DataDirectory cliHeader) { MoveTo(reader, cliHeader); // - CLIHeader // Cb 4 // MajorRuntimeVersion 2 // MinorRuntimeVersion 2 reader.Advance(8); var metadata = ReadDataDirectory(reader); Attributes = (ModuleAttributes)reader.ReadUInt32(); // EntryPointToken 4 EntryPointToken = reader.ReadUInt32(); // Resources 8 Resources = ReadDataDirectory(reader); // StrongNameSignature 8 StrongName = ReadDataDirectory(reader); // CodeManagerTable 8 // VTableFixups 8 // ExportAddressTableJumps 8 // ManagedNativeHeader 8 MoveTo(reader, metadata); }
internal AssemblyBinaryProperties( ModuleAttributes peKind, TargetArchitecture machineKind, bool isSigned, string keyFileName, string keyContainer) : this(peKind, machineKind, isSigned, keyFileName, keyContainer, true) { }
internal AssemblyBinaryProperties(ModuleAttributes peKind, TargetArchitecture machineKind, bool isSigned, string keyFileName, string keyContainer, bool binaryWasScanned) { this._PeKind = peKind; this._MachineKind = machineKind; this._IsSigned = isSigned; this._KeyFileName = keyFileName; this._KeyContainer = keyContainer; this._BinaryWasScanned = binaryWasScanned; }
internal ModuleDefinition(Mono.Cecil.PE.Image image) : this() { this.Image = image; this.kind = image.Kind; this.RuntimeVersion = image.RuntimeVersion; this.architecture = image.Architecture; this.attributes = image.Attributes; this.characteristics = image.Characteristics; this.fq_name = image.FileName; this.reader = new MetadataReader(this); }
public static bool RequiresX86(this AssemblyDefinition assemblyDef) { const ModuleAttributes nativeEntryPoint = (ModuleAttributes)16; const ModuleAttributes mask = ModuleAttributes.Required32Bit | nativeEntryPoint; var module = assemblyDef.MainModule; return(module.Architecture != TargetArchitecture.AMD64 && module.Architecture != TargetArchitecture.IA64 && (module.Attributes & mask) != 0); }
internal ModuleDefinition(Image image) : this() { this.Image = image; this.kind = image.Kind; this.runtime = image.Runtime; this.architecture = image.Architecture; this.attributes = image.Attributes; this.fq_name = image.FileName; this.reader = new MetadataReader(this); }
internal ModuleDefinition(Image image, /*Telerik Authorship*/ IAssemblyResolver resolver) : this(/*Telerik Authorship*/ resolver) { this.Image = image; this.kind = image.Kind; this.RuntimeVersion = image.RuntimeVersion; this.architecture = image.Architecture; this.attributes = image.Attributes; this.characteristics = image.Characteristics; this.fq_name = image.FileName; this.reader = new MetadataReader(this); }
public void Dispose() { if (_isDisposed) { return; } Declarations?.Clear(); Comments?.Clear(); Annotations?.Clear(); ModuleAttributes?.Clear(); _isDisposed = true; }
internal ModuleDefinition(Image image) : this() { Image = image; kind = image.Kind; RuntimeVersion = image.RuntimeVersion; architecture = image.Architecture; attributes = image.Attributes; characteristics = image.Characteristics; linker_version = image.LinkerVersion; file_name = image.FileName; timestamp = image.Timestamp; reader = new MetadataReader(this); }
internal ModuleDefinition(Image image) : this() { this.Image = image; this.kind = image.Kind; this.RuntimeVersion = image.RuntimeVersion; this.architecture = image.Architecture; this.attributes = image.Attributes; this.characteristics = image.Characteristics; this.linker_version = image.LinkerVersion; this.file_name = image.FileName; this.timestamp = image.Timestamp; this.reader = new MetadataReader(this); }
public static bool Contains(this ModuleAttributes input, ModuleAttributes set) { return((input & set) == input); }
private static bool HasFlag(ModuleAttributes value, ModuleAttributes flag) { return((value & flag) == flag); }