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 since it's done by the o.s.) are there any limitations on size allocatable, should paging file be turned on or what caveats ?.
It seems to happen on a vmware hosted W2016, with say 8-10 gb ram allocated, but not on physical W11, could there be any CreateFileMapping constraints specific to windows as guest vm, that the o.s. detects being hosted and perhaps restricts size, I have the page file set to auto.