C language function:DiscardVirtualMemory sample codes

Search sample code in the internet.It is the result.


TITLE : OfferVirtualMemory function (Windows)
DWORD WINAPI DiscardVirtualMemory(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/dn781432(v=vs.85).aspx


TITLE : winapi - Benefits of reserving vs. committing+reserving memory using VirtualAlloc on large arrays - Stack Overflow
New Windows 8.1 APIs for virtual memory management: `DiscardVirtualMemory()` vs `VirtualAlloc()` and `MEM_RESET` and `MEM_RESET_UNDO`.......
http://stackoverflow.com/questions/10494588/benefits-of-reserving-vs-committingreserving-memory-using-virtualalloc-on-larg
search Google

https://www.google.com/#q=DiscardVirtualMemory