[Win32utils-devel] Need some help with latest win32-mmap

Johan Nilsson johan.nilsson at esrange.ssc.se
Thu Oct 12 02:45:35 EDT 2006


>	From: win32utils-devel-bounces at rubyforge.org
[mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of Heesob Park
>	Sent: den 12 oktober 2006 03:09
>	To: Development and ideas for win32utils projects
>	Subject: Re: [Win32utils-devel] Need some help with latest
win32-mmap
>	

[snip]	

	 
>	It seems the memory map in windows aligns 4k boundary.
>	When created with 20, get_view_size returns 4096
>	When created with 20000, get_view_size returns 20480. 

Actually, it aligns to the nearest page boundary (which is not
necessarily 4k). Use GetSystemInformation to retrieve SYSTEM_INFO
(dwPageSize member).

/ Johan


More information about the win32utils-devel mailing list