title: Pagefile-backed memory-mapped files vs. Heap -- what's the difference?
body: <p>What is the advantage of using a memory-mapped file backed by the system paging file (through <code>CreateFileMapping(INVALID_HANDLE_VALUE, ...)</code>, instead of just allocating memory from the heap the usual way (<code>malloc(...)</code>, <code>HeapAlloc(...)</code>, etc.)?</p>
  
  <p>i.e. When should I use which?</p>