IDkmVirtualMemoryAllocator.FreeVirtualMemory 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(Microsoft::VisualStudio::Debugger::DkmProcess ^ process, System::UInt64 address, int size, int freeType);
public void FreeVirtualMemory (Microsoft.VisualStudio.Debugger.DkmProcess process, ulong address, int size, int freeType);
abstract member FreeVirtualMemory : Microsoft.VisualStudio.Debugger.DkmProcess * uint64 * int * int -> unit
Public Sub FreeVirtualMemory (process As DkmProcess, address As ULong, size As Integer, freeType As Integer)

Parameters

process
DkmProcess

[In] DkmProcess represents a target process which is being debugged. The debugger debugs processes, so this is the basic unit of debugging. A DkmProcess can represent a system process or a virtual process such as minidumps.

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