08 2009 档案
摘要:CreateFileMappin创建的是内核对象,因此进程创建后,真正的共享内存对象是由windows内核来管理的,进程只能申请使用。 进程每调用一次OpenFileMapping,或者CreateFileMapping,内核中都将为该对象增加一个引用计数, 引用计数为0时,该对象被撤销。 特别有趣
阅读全文
摘要:#include <windows.h> #include <tchar.h> #include <windef.h> typedef int (*PFNMESSAGEW)(HWND,LPCWSTR,LPCWSTR,UINT); int sum(int a,int b); LPCWSTR STR_O
阅读全文