what constraints CreateFileMapping size [closed]
What is the maximum size that can be used with CreateFileMapping with INVALID_HANDLE_VALUE and SEC_RESERVE, for a virtual paged memory backed file, on windows 11 with 32 gb physical memory I can specify for example 64 gb but on windows 2016 it seems limited to about 4 gb (from a 32 bit program but it shouldn't matter) are there any limitations on size allocatable, should paging file be turned on or what caveats ?.
![what constraints CreateFileMapping size [closed]](https://cdn.sstatic.net/Sites/softwareengineering/Img/apple-touch-icon@2.png?v=1ef7363febba)
What is the maximum size that can be used with CreateFileMapping with INVALID_HANDLE_VALUE and SEC_RESERVE, for a virtual paged memory backed file, on windows 11 with 32 gb physical memory I can specify for example 64 gb but on windows 2016 it seems limited to about 4 gb (from a 32 bit program but it shouldn't matter) are there any limitations on size allocatable, should paging file be turned on or what caveats ?.