Re: SEC_COMMIT usefulness in CreateFileMapping API



Yes, that is correct. It does exactly nothing (IMHO).

Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

curious1 wrote:
Thanks Michel for info.

One more thing please: seems like using SEC_COMMIT would not make much difference in strictly memory mapped file (ones that are not backed by file on disk). Is that correct ?

SEC_COMMIT info: http://msdn.microsoft.com/en-us/library/ms923951.aspx

SEC_COMMIT: Allocates physical storage in memory or in the paging file on disk for all pages of a section. This is the default setting.
.