What is the advantage of using a memory-mapped file backed by the system paging file (through CreateFileMapping(INVALID_HANDLE_VALUE, ...), instead of just allocating memory from the heap the usual way (malloc(...), HeapAlloc(...), etc.)?
i.e. When should I use which?
It’s lower level, it gives you more than
mallocdoes:PAGE_READONLY)