【问题标题】:What are the equivalent methods of the following native API functions?以下原生 API 函数的等效方法是什么?
【发布时间】:2011-04-05 21:32:13
【问题描述】:

我正在寻找以下 WinAPI 的等效方法(在 .Net 中):

  • 创建文件();或 OpenFile();

  • CreateFileMapping();

  • MapViewOfFile();

【问题讨论】:

标签: c# winapi .net-3.5 c++-cli


【解决方案1】:

您可以直接使用这些功能。内存映射文件 API 的 .netwrappers 仅在 .net 4.0 中引入。

【讨论】:

    【解决方案2】:

    对于 .NET 4.0 开发人员,使用内存映射文件的有趣类位于新的 System.IO.MemoryMappedFiles 命名空间中。

    见这篇文章:http://www.developer.com/net/article.php/3828586/Using-Memory-Mapped-Files-in-NET-40.htm

    【讨论】:

      猜你喜欢
      • 2011-01-21
      • 1970-01-01
      • 2017-06-23
      • 1970-01-01
      • 2020-09-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-15
      相关资源
      最近更新 更多