CreateFileMapping what are the limitations? RRS feed

  • Question

  • I have two files, one is 260 gigabytes, the other is 7,155 gigabytes (Yes I mean 7.155 terabytes). If I attempt to use CreateFileMapping on file one, no problem it works; on file two I get not enough storage to service request (GetLastError = 8). Here's the code I use:


    hFileMapping = CreateFileMapping(hFile,NULL,PAGE_READONLY,0,0x01000000,_T("ReallyBigFile"));

    My understanding is NTFS is good for files in the execibytes sizes. I was able to write this file (high speed video recording) with a sequential write. I'm running this on Windows XP with as administrator. I have not found a way to read this file (execept reading the raw volume which is not too useful).

    Where should I ask this question? I reviewed the list and I don't see an appropiate forum.

    Thursday, May 27, 2010 10:59 PM