PEHeaders.TryGetDirectoryOffset(DirectoryEntry, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得從影像起始點到指定目錄資料的位移量(位元組)。
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 否則,