CodeForge.comFree Open Source Codes Forge and Sharing |
// dllmain.cpp : Defines the initialization routines for the DLL.
//
#include "stdafx.h"
#include <afxwin.h>
#include <afxdllx.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
static AFX_EXTENSION_MODULE MousehookDLL = { NULL, NULL };
extern "C" int APIENTRY
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
// Remove this if you use lpReserved
UNREFERENCED_PARAMETER(lpReserved);
glhInstance=hInstance;//插入保存DLL实例句柄
if (dwReason == DLL_PROCESS_ATTACH)
{
TRACE0("Mousehook.DLL Initializing!\n");
// Extension DLL one-time initialization
if (!AfxInitExtensionModule(MousehookDLL, hInstance))
return 0;
// Insert this DLL into the resource chain
// NOTE: If this Extension DLL is being implicitly linked
...
...
... to be continued.
This is a preview. To get the complete source file,
please click here to download the whole source code package.
| Name | Size | Date |
| 12.00 B | ||
| 12.00 B | ||
| 15.00 B | 12-05-09 19:53 | |
| 57.25 kB | 11-25-09 00:22 | |
| 2.05 kB | 11-25-09 00:17 | |
| 510.00 B | 11-25-09 00:17 | |
| 5.55 kB | 11-25-09 00:22 | |
| 5.42 kB | 12-07-09 15:59 | |
| 1.39 kB | 12-07-09 16:31 | |
| 3.74 kB | 12-07-09 16:06 | |
| 788.00 B | 11-25-09 00:24 | |
| 4.14 kB | 11-25-09 00:17 | |
| 11.00 B | ||
| 679.00 B | 11-25-09 00:22 | |
| 21.12 kB | 07-23-03 17:52 | |
| 398.00 B | 11-25-09 00:17 | |
| 207.00 B | 11-25-09 00:17 | |
| 1.91 kB | 11-25-09 00:17 | |
| 1.40 kB | 11-25-09 00:17 | |
| 12.00 B | ||
| 1.32 kB | 11-25-09 00:22 | |
| 17.50 kB | 12-07-09 16:31 | |
| 1.53 kB | 11-25-09 00:05 | |
| 4.06 kB | 12-07-09 16:31 | |
| 183.00 B | 11-25-09 00:10 | |
| 148.00 B | 11-24-09 23:55 | |
| 174.00 B | 11-25-09 00:01 | |
| 3.07 kB | 11-24-09 23:55 | |
| 5.28 kB | 11-25-09 00:16 | |
| 1.37 kB | 12-07-09 16:31 | |
| 2.27 kB | 11-24-09 23:55 | |
| 11.00 B | ||
| 380.00 B | 11-24-09 23:55 | |
| 400.00 B | 11-24-09 23:55 | |
| 209.00 B | 11-24-09 23:55 | |
| 1.26 kB | 11-24-09 23:55 | |
| 1.40 kB | 11-24-09 23:55 |