模块定义文件格式以及memory share segments
c++看dynamic linking的 module define format:
1 LIBRARY GlobalHookDll //dll名称
2 EXPORTS
3 SetHook @3
4 SEGMENTS //共享memory段
5 .MySec READ WRITE SHARED
2 EXPORTS
3 SetHook @3
4 SEGMENTS //共享memory段
5 .MySec READ WRITE SHARED
等价于下面:
//use share memory
#pragma data_seg(".MySec") //the name of setion's length must less than 8
HWND g_hWnd = NULL;
#pragma data_seg()
/*#pragma comment(linker,"/section:.MySec,RWS")*/
#pragma data_seg(".MySec") //the name of setion's length must less than 8
HWND g_hWnd = NULL;
#pragma data_seg()
/*#pragma comment(linker,"/section:.MySec,RWS")*/
Author:repository
From: http://repository.cnblogs.com
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
From: http://repository.cnblogs.com
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。