How to CreateFileMapping in C++?
问题 I am coding a game preloader (a simple program that loads certain files [maps] into cache before starting the program. I was told to use CreateFileMapping which I am still unsure whether it loads it into the physical or virtual memory... Anyway, where would I put what files I need to load? Here is my code (actually coded by someone else on stack overflow who told me to use it) #include <windows.h> #include <cstdio> void pf(const char* name) { HANDLE file = CreateFile(name, GENERIC_READ, FILE