DkmProcess.FreeVirtualMemory(UInt64, Int32, Int32) Method

Definition

Releases and/or decommits a region of memory within the virtual address space of the target process. For additional information, see the VirtualFree Win32 API in MSDN.

public:
 void FreeVirtualMemory(System::UInt64 Address, int Size, int FreeType);
public:
 void FreeVirtualMemory(unsigned long long Address, int Size, int FreeType);
void FreeVirtualMemory(unsigned long Address, int Size, int FreeType);
public void FreeVirtualMemory (ulong Address, int Size, int FreeType);
member this.FreeVirtualMemory : uint64 * int * int -> unit
Public Sub FreeVirtualMemory (Address As ULong, Size As Integer, FreeType As Integer)

Parameters

Address
UInt64

[In] Address within the target process where the memory should be freed.

Size
Int32

[In] Number of bytes to decommit. To release a region of memory, this value must be zero.

FreeType
Int32

[In] Indicates the type of free operation to perform. This is typically MEM_RELEASE (0x8000), which releases the specified region of pages. After the operation, the pages are in the free state. MEM_DECOMMIT (0x4000) can be used instead to decommit the pages without releasing them.

Applies to