I'm working with a pair of third party APIs trying to play a video straight (SMK format) out of a compressed library (MPQ format). I can use the mpq api to extract the video out of the library into a memory buffer, but the smk api requires a file handle (like that obtained from CreateFile) to point to the file.

Is there any way I can use CreateFile or anything else to obtain a similar handle to a block of memory, rather than a place on the hard disk?

Of course, I could write the buffer to a temporary file on the disk before playback, but these videos are to be used in a game and I'd like to avoid disk I/O as much as possible.

Thanks a lot.