title: Is there a function or method to erase the content of a file mapping without closing it?
body: <p>I'm working in implementation of IPC on a program.<br/> I've choosed to use the File Mapping method.<br/></p>
  
  <p>Firstly, I need that a process write some data on the memory block that i've created previously.<br/>
  Then, an other process access this file mapping, read the content and write new content on the memory block.<br/>
  To finish, a third process access the file mapping and read the content. <br/></p>
  
  <p>Example : <br/>
  - The first process write "<strong>UNLOCK</strong>".<br/>
  - The second process read "<strong>UNLOCK</strong>" and write "<strong>LOCK</strong>" on the file mapping.<br/>
  - The third process read "<strong>LOCKCK</strong>".<br/></p>
  
  <p>So, I want to erase the file mapping content before write. I found nothing about that, the only solution that I found is to close the file mapping but I need to keep it alive.<br/>
  Actually, the only way that I found to correct my problem is to write "<strong>LOCK__</strong>". (note that underscore refer to space character)<br/> Thanks to space character, the length of the word is equal than "<strong>UNLOCK</strong>". <br/></p>
  
  <p>There is a method or function to delete the file mapping content, please ?</p>
  
  <p>PM.</p>