Dynamic-Link Library Functions--动态链接库函数
来源:互联网 发布:js弹出框左右显示 编辑:程序博客网 时间:2024/05/21 12:46
GetModuleHandle
The GetModuleHandle function returns a module handle for the specified module if the file has been mapped into the address space of the calling process. (如果文件被映射到进程中)
原型:
HMODULE GetModuleHandle(
LPCTSTR lpModuleName // address of module name to return handle
// for
);
GetProcAddress
The GetProcAddress function returns the address of the specified exported dynamic-link library (DLL) function.
FARPROC GetProcAddress(
HMODULE hModule, // handle to DLL module
LPCSTR lpProcName // name of function
);
LoadLibrary
The LoadLibrary function maps the specified executable module into the address space of the calling process. (加载指定的可执行模块到进程空间)
HINSTANCE LoadLibrary(
LPCTSTR lpLibFileName // address of filename of executable module
);
FreeLibrary
The FreeLibrary function decrements(递减) the reference count of(引用计数) the loaded dynamic-link library (DLL) module. When the reference count reaches(达到) zero, the module is unmapped from the address space of the calling process and the handle is no longer valid. (到达0就不在映射到进程的地址空间并且这个句柄不再有效)
BOOL FreeLibrary(
HMODULE hLibModule // handle to loaded library module
);
- Dynamic-Link Library Functions--动态链接库函数
- 动态链接库(Dynamic Link Library)
- 动态链接库(dynamic link library ,DLL)
- 动态链接库(Dynamic Link Library)学习笔记
- 动态链接库(Dynamic Link Library)学习笔记
- Symbian DLL(Dynamic Link Library 动态链接库)
- windows动态链接库(dynamic-link library, DLL)
- 动态链接库(Dynamic Link Library)学习笔记
- DLL(Dynamic Link Library),动态链接库。
- (转载)动态链接库(Dynamic Link Library)学习笔记
- 关于CC_DLL (dll->dynamic link library 动态链接库)
- 动态链接库(Dynamic Link Library)学习笔记
- 动态连接库(DLL- Dynamic Link Library)
- Dynamic-Link Library Search Order(动态链接库的搜索顺序 )
- Dynamic-Link Library Best Practices(动态链接库最佳实践)
- 动态链接(dynamic link)与静态链接(static link)
- 动态链接库(Dynamic Link Libraries)
- Dynamic Link Library
- 如何通过代码判断手机中是否有SIM卡及各种状态
- 漫谈索引
- Android library projects cannot be launched
- linux系统下常用文件和目录的命令
- JVM内存划分与GC机制
- Dynamic-Link Library Functions--动态链接库函数
- Android自定义Dialogの仿ios系统底部菜单(自下而上弹出)
- centos自带mysql初始处理
- 用一行代码求出输入数的相反数
- JVM参数总结及调优
- 数组元素的移动(补充)
- linux 命令总结
- 返回或者转到其它页面的代码
- Android 获取手机IMEI