When I create a shared memory segment on Windows (like CreateFileMapping(INVALID_HANDLE_VALUE, ...)
), is there any way to resize it, other than creating a bigger segment and copying the data?
I've read in MSDN that file mappings have a fixed size, but is there possibly some way to make a new mapping over the same memory? Like in Linux, where you can use shm_open()
and then ftruncate()
and mmap()
it again.