Example #1
0
 public void Dispose()
 {
     FileMapping.UnmapViewOfFile(this.mapViewFileHandle);
     FileMapping.CloseHandle(this.fileMappingHandle);
 }
Example #2
0
 public FileMapping(string name, bool writable)
 {
     this.fileMappingHandle = FileMapping.OpenFileMapping(name, writable);
     this.MapViewOfFile(this.fileMappingHandle, writable, name);
 }
Example #3
0
 public FileMapping(string name, int size, bool writable)
 {
     this.fileMappingHandle = FileMapping.CreateFileMapping(name, size, writable);
     this.MapViewOfFile(this.fileMappingHandle, writable, name);
 }