托管和非托管应用程序可以通过MMF共享IPC吗? [英] Can managed and unmanaged apps share IPC via MMF?

查看:83
本文介绍了托管和非托管应用程序可以通过MMF共享IPC吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道内存映射文件(MMF)是用于严格IPC的强大技术.现在,.NET 4.0添加了MMF支持,这对.NET开发人员来说是个好消息.我的问题是我的本机C ++应用程序是否创建了一个命名的MMF,.NET应用程序可以访问它吗?换句话说,托管和非托管应用程序可以共享命名的MMF吗?

We know memory mapped files (MMF) is a powerful technique for serious IPC. Now .NET 4.0 has added MMF support, which is good news for .NET developers. My question is if my native C++ app has created a named MMF, is it accessible to .NET apps? In other words, can managed and umanaged apps share a named MMF?

推荐答案

通过
Judging by this[^], yes if they are in different processes (from the first couple of paras. Didn''t read any further).


我想它应该可以工作(您可以绝对使用PInvoke). 链接 [
I suppose it should work (you can definitelly use PInvoke). link[^]


这篇关于托管和非托管应用程序可以通过MMF共享IPC吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆