locked
MapViewOfFileEx/UnmapViewOfFile functionality

    Question

  • According to the documentation, UnmapViewOfFile is available for Windows Store Apps. Strangely enough, MapViewOfFileEx and CreateFileMapping aren't, so I'm wondering how to acquire a file mapping or avoid loading large files into memory just to get a pointer to their data.

    At the moment, working with files is still somewhat awkward: from a StorageFile to a IRandomAccessStream, to an IInputStream, to an IBuffer. From there I can do some COM hacking to get a IBufferByteAccess and finally I have some data to do some work with - much easier to just do a _wfopen using StorageFile::Path.

    Friday, September 28, 2012 8:40 AM

Answers