[C++] Memory Mapped File / 메모리 매핑 파일
void MMF(WCHAR* szPath) { HANDLE hFile = INVALID_HANDLE_VALUE; HANDLE hMap = INVALID_HANDLE_VALUE; LPVOID pBuf; hFile = CreateFile( szPath, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); if (hFile == INVALID_HANDLE_VALUE) { printf("CreateFile Fail : %d\n\n", GetLastError()); return; } hMap = CreateFileMapping( hFile, NULL, PAGE_READWRITE, 0, 0, NULL ); if (h..
2022. 3. 14.