Beispiel #1
0
 /// <summary>
 /// Reads a mapped PE image starting at the provided module base address (HINSTANCE).
 /// </summary>
 /// <param name="hInstance">The HINSTANCE or base address of the module.</param>
 /// <param name="readerParameters">The parameters to use while reading the PE image.</param>
 /// <returns>The PE image that was read.</returns>
 /// <exception cref="BadImageFormatException">Occurs when the file does not follow the PE file format.</exception>
 public static IPEImage FromModuleBaseAddress(IntPtr hInstance, PEReaderParameters readerParameters) =>
 FromFile(PEFile.FromModuleBaseAddress(hInstance), readerParameters);