DLLEntryPoint 方法在哪个单无,怎样用?
解决方案 »
- 我用F1BOOK生成的excel文件后,能不能让excel软件不能打开,只能通过FIBOOK控件打开?
- 关于oracle中date数据类型的存取
- 用IdHTTP的Get下载文件,出错,帮忙来看看!
- 我安装delphi7后,有indy,socketserver等组件,为什么有大侠说delphi7没有这些socket组件?
- 关于数据的删除.谢谢
- 关于scrollbox的问题。在线等待
- 很好的免费东西。各种语言操作各种数据库的源代码下载
- 金海智能网络(软件研发)工程责任有限公司招聘程序员、经理助理
- 哪里有写得不错的MDI程序原代码?
- 一个关于写文本文件的问题!
- 怎样用ADOQUERY动态创建一个FOXPRO数据库表? ?!
- 如何在线程、数据模块的代码中使用Application对象?
用于区别多线程单线程对DLL的调用、创建、卸载DLL;
BOOL WINAPI DllEntryPoint(
HINSTANCE hinstDLL, //参数:hinstDLL用来指示DLL的基地址;
DWORD fdwReason, // fdwReason用来指示DLL的调用方式,
LPVOID lpvReserved
);
begin
case dwReason of
Dll_Process_Attach : begin
{If we are getting mapped into a process, then get}
{a pointer to our process wide memory mapped variable}
hObjHandle := 0;
lpHookRec := NIL;
MapFileMemory(sizeof(lpHookRec^));
end;
Dll_Process_Detach : begin
{If we are getting unmapped from a process then, remove}
{the pointer to our process wide memory mapped variable}
UnMapFileMemory;
end;
end;
end;
begin
DLLProc := @DllEntryPoint;
DllEntryPoint(Dll_Process_Attach);
end;