摘要:
To share data, multiple processes can use memory-mapped files that the system paging file stores.First ProcessThe first process creates the file mapping object by calling the CreateFileMapping function with INVALID_HANDLE_VALUE and a name for the object. By using the PAGE_READWRITE flag, the process 阅读全文
摘要:
一下是一个C#操作内存的一个类,只要将下面的类添加到相应的项目中,该项目就可以对内存进行直接操作!using System.Runtime.InteropServices; //添加如下命名空间 需要是用 DllImportpublic class ShareMemLib {[DllImport("user32.dll", CharSet = CharSet.Auto)]public static extern IntPtr SendMessage(IntPtr hWnd, int Msg, int wParam, IntPtr lParam);[DllImport(&qu 阅读全文