title: C++/Win32 Create a file in virtual memory
body: <p>How do I create a file in virtual memory and can I use normal file functions on it as CreateFile, WriteFile etc. ?</p>
  
  <p>I am trying to implement a buffered file writer class, but the problem is managing a buffer that needs dynamic constant reallocation.</p>