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 否则。

适用于