PEHeaders.TryGetDirectoryOffset(DirectoryEntry, Int32) 方法

定義

取得從影像起始點到指定目錄資料的位移量(位元組)。

public:
 bool TryGetDirectoryOffset(System::Reflection::PortableExecutable::DirectoryEntry directory, [Runtime::InteropServices::Out] int % offset);
public bool TryGetDirectoryOffset(System.Reflection.PortableExecutable.DirectoryEntry directory, out int offset);
member this.TryGetDirectoryOffset : System.Reflection.PortableExecutable.DirectoryEntry * int -> bool
Public Function TryGetDirectoryOffset (directory As DirectoryEntry, ByRef offset As Integer) As Boolean

參數

directory
DirectoryEntry

PE目錄的條目。

offset
Int32

當方法回傳時,包含從影像起始點到指定目錄資料的偏移量。

傳回

true 如果找到目錄資料; false 否則,

適用於