0

I am looking for the equivalent methods (in .Net) of the following WinAPI:

  • CreateFile(); or OpenFile();

  • CreateFileMapping();

  • MapViewOfFile();

Kate Gregory
  • 18,623
  • 8
  • 55
  • 85
Aan
  • 11,437
  • 34
  • 84
  • 144

2 Answers2

3

You can use those functions directly. The .net wrappers of the memory mapped file API were only introduced in .net 4.0.

David Heffernan
  • 587,191
  • 41
  • 1,025
  • 1,442
2

For .NET 4.0 developers, the interesting classes that work with memory-mapped files live in the new System.IO.MemoryMappedFiles namespace.

See this article: http://www.developer.com/net/article.php/3828586/Using-Memory-Mapped-Files-in-NET-40.htm

Richard Schneider
  • 34,169
  • 9
  • 55
  • 69