Can someone explain me the rationale behind having these two functions, instead of just one with the combined functionality?
Are there cases when these two are not used as a tight couple?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The reason to have distinct functions is, that aside from defining uniform parameters like the ones for page and cache,
CreateFileMapping()can be used to lock a file/range, which is larger than the available address space.MapViewOfFile()can then place and shift a sub range appropriately to make actual contents available in address space.