79657378

Date: 2025-06-07 22:29:35
Score: 3
Natty:
Report link

Thanks for your responses. I found what I needed.

Create the map using INVALID_FILE_HANDLE (instead of the file handle) big enough to include an extra byte. Then MapViewOfFile, read the file into the map, and set the extra byte to '\0'.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Vince_Fatica