/// <summary> /// Free memory in the remote process /// </summary> /// <param name="hProcess"></param> /// <param name="lpAddress"></param> /// <param name="dwRegionSize"></param> /// <param name="freeType"></param> /// <returns></returns> public static bool FreeVirtualMemory(IntPtr hProcess, IntPtr lpAddress, int dwRegionSize, Enumerations.FreeType freeType) { return(fNtFreeVirtualMemory(hProcess, &lpAddress, &dwRegionSize, freeType) == Enumerations.Ntstatus.Success); }
internal static extern bool VirtualFreeEx(SafeProcessHandle processHandle, IntPtr baseAddress, int freeSize, Enumerations.FreeType freeType);