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:

Microsoft Embedded Partner
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: Allocates physical storage in memory or in the paging file on disk for all pages of a section. This is the default setting.