#define MAXLEN (64*1024*1024) HANDLE hFile; hFile = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, MAXLEN, NULL); if(hFile == NULL) { ///创建文件映射对象失败 return; } LPVOID lpAddress; lpAddress = MapViewOfFile(hFile, FILE_MAP_WRITE|FILE_MAP_READ, 0, 0, MAXLEN); if(lpAddress == NULL) { ///创建文件视图失败 return; } |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |