Example #1
0
 private IntPtr RvaToVA(long rva)
 {
     if (MappedAsImage)
     {
         return(new IntPtr(GetBasePointer().ToInt64() + rva));
     }
     else
     {
         return(Win32NativeMethods.ImageRvaToVa(GetHeaderPointer(GetBasePointer()),
                                                GetBasePointer(), (int)rva, IntPtr.Zero));
     }
 }