Kernel32OfferVirtualMemory Method

Overload List

OfferVirtualMemory(IntPtr, IntPtr, OfferVirtualMemoryPriority) Indicates that the data contained in a range of memory pages is no longer needed by the application and can be discarded by the system if necessary.

The specified pages will be marked as inaccessible, removed from the process working set, and will not be written to the paging file.

To later reclaim offered pages, call ReclaimVirtualMemory(IntPtr, IntPtr) function.

OfferVirtualMemory(IntPtr, UInt32, OfferVirtualMemoryPriority) Indicates that the data contained in a range of memory pages is no longer needed by the application and can be discarded by the system if necessary.

The specified pages will be marked as inaccessible, removed from the process working set, and will not be written to the paging file.

To later reclaim offered pages, call ReclaimVirtualMemory(IntPtr, IntPtr) function.

OfferVirtualMemory(IntPtr, UIntPtr, OfferVirtualMemoryPriority) Indicates that the data contained in a range of memory pages is no longer needed by the application and can be discarded by the system if necessary.

The specified pages will be marked as inaccessible, removed from the process working set, and will not be written to the paging file.

To later reclaim offered pages, call ReclaimVirtualMemory(IntPtr, IntPtr) function.

See Also