public UIntPtr GetAddress(IBaseMemoryOffset offset) { IMemoryOffset newOffset = new MappedBaseOffset(this.Process, (BaseOffset)offset); UIntPtr ptr = this.Process.GetAddress(newOffset); if (ptr == UIntPtr.Zero) { throw new InvalidAddressException(); } return(ptr); }
public UIntPtr GetAddress(IBaseMemoryOffset offset) { IMemoryOffset newOffset = new MappedBaseOffset(this.Process.Process, (BaseOffset)offset); return(this.Process.GetAddress(newOffset)); }