예제 #1
0
 public void Release()
 {
     MemoryHelper.Free(m_Process.Handle, BaseAddress);
     BaseAddress = IntPtr.Zero;
 }
예제 #2
0
 internal RemoteAllocation(RemoteProcess process, int size, MemoryProtectionFlags protect, bool mustBeDisposed) :
     base(process, MemoryHelper.Allocate(process.Handle, size, protect))
 {
     MustBeDisposed = mustBeDisposed;
 }