On Windows, can data in memory ever exist continuously across virtual memory pages?
For example,
- The string “hello”, where “he” on one page and “llo” is on the next.
- Any large block of data that exceeds max page size, if possible.
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.
VirtualQueryExdoesn’t return individual pages, but ranges of pages having the same access. If you’re asking whether a string could span two pages with different access, theoretically yes, but this would in general be VERY rare. It’s more likely that the string you want is swapped out to disk.