I'm planning on using the CreateFileMapping() function with INVALID_HANDLE_VALUE for hFile so that the storage is backed by the paging file. There could be several processes that are creating these mapped objects. I also need to run another process which can just read from these mapped objects. Is there a way for this process to programmatically fetch a list of memory mapped objects ? Even if it were a system command that the process could run and then parse to figure out the list of handles, it would work.
I have seen a few questions similar to this on stack overflow, but could not find a concrete answer. Any insights appreciated.