Kernel32VirtualFree Method

Overload List

VirtualFree(IntPtr, IntPtr, MemoryFreeType) Releases, decommits, or releases and decommits a region of pages within the virtual address space of the calling process.

To free memory allocated in another process by the VirtualAllocEx(IntPtr, IntPtr, IntPtr, MemoryAllocationType, MemoryProtectionOptions) function, use the VirtualFreeEx(IntPtr, IntPtr, IntPtr, MemoryFreeType) function.

VirtualFree(IntPtr, UIntPtr, MemoryFreeType) Releases, decommits, or releases and decommits a region of pages within the virtual address space of the calling process.

To free memory allocated in another process by the VirtualAllocEx(IntPtr, IntPtr, IntPtr, MemoryAllocationType, MemoryProtectionOptions) function, use the VirtualFreeEx(IntPtr, IntPtr, IntPtr, MemoryFreeType) function.

VirtualFree(UIntPtr, UIntPtr, MemoryFreeType) Releases, decommits, or releases and decommits a region of pages within the virtual address space of the calling process.

To free memory allocated in another process by the VirtualAllocEx(IntPtr, IntPtr, IntPtr, MemoryAllocationType, MemoryProtectionOptions) function, use the VirtualFreeEx(IntPtr, IntPtr, IntPtr, MemoryFreeType) function.

See Also