Error using CreateFileMapping - C

后端 未结 6 2024
梦谈多话
梦谈多话 2021-01-24 20:38

I am using the tutorial on this MSDN link to implement a way of transferring data from one process to another. Although I was advised in an earlier question to use the Pipe meth

6条回答
  •  青春惊慌失措
    2021-01-24 21:19

    Under Windows 7 I found:

    OpenFileMapping(FILE_MAP_ALL_ACCESS, ...);
    

    Causes issues with:

    CreateFileMapping(
                     (HANDLE)0xFFFFFFFF,    // use paging file
    

    Try:

    OpenFileMappingA(SECTION_MAP_WRITE | SECTION_MAP_READ,...);
    

提交回复
热议问题