[MFC] Memory Mapped File
MFC Memory Mapped File 적용 코드 HANDLE hMapfile = CreateFileMapping( INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, 128, _T("Local\\Test") ); LPCTSTR pMemoryMap ; pMemoryMap = (LPTSTR)MapViewOfFile( hMapfile, FILE_MAP_ALL_ACCESS, 0, 0, 16); if (!pMemoryMap) { CloseHandle(hMapfile); printf("nothing!\n"); return S_FALSE; } TCHAR szMsg[] = _T("Working!"); CopyMemory((PVOID)pMemoryMap, szMsg, (_tcslen(..
2022. 4. 12.