我在一个进程里创建了内存映像文件:
HANDLE hFile = CreateFile(L"a.txt",GENERIC_WRITE|GENERIC_READ,0,NULL
,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
if(hFile == INVALID_HANDLE_VALUE)
{
//printf("File could not be opened.");
MessageBox(L"File could not be opened.");
return;
}