dllmain.cpp in Mousehook.zip


The keyboard hook procedure, a DLL containing the hook function in the file, one...Original Link
    Sponsored links

			
// 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.

			
			


Project Files

    Sponsored links
NameSizeDate
 012.00 B
 012.00 B
 key.txt15.00 B12-05-09 19:53
 KeyHook.aps57.25 kB11-25-09 00:22
 KeyHook.cpp2.05 kB11-25-09 00:17
 KeyHook.h510.00 B11-25-09 00:17
 KeyHook.rc5.55 kB11-25-09 00:22
 KeyHook.vcproj5.42 kB12-07-09 15:59
 KeyHook.vcproj.E332017E68B9405.gxl.user1.39 kB12-07-09 16:31
 KeyHookDlg.cpp3.74 kB12-07-09 16:06
 KeyHookDlg.h788.00 B11-25-09 00:24
 ReadMe.txt4.14 kB11-25-09 00:17
 011.00 B
 resource.h679.00 B11-25-09 00:22
 KeyHook.ico21.12 kB07-23-03 17:52
 KeyHook.rc2398.00 B11-25-09 00:17
 stdafx.cpp207.00 B11-25-09 00:17
 stdafx.h1.91 kB11-25-09 00:17
 targetver.h1.40 kB11-25-09 00:17
 012.00 B
 Mousehook.sln1.32 kB11-25-09 00:22
 Mousehook.suo17.50 kB12-07-09 16:31
 dllmain.cpp1.53 kB11-25-09 00:05
 KeyboardHook.cpp4.06 kB12-07-09 16:31
 KeyboardHook.h183.00 B11-25-09 00:10
 Mousehook.cpp148.00 B11-24-09 23:55
 Mousehook.def174.00 B11-25-09 00:01
 Mousehook.rc3.07 kB11-24-09 23:55
 Mousehook.vcproj5.28 kB11-25-09 00:16
 Mousehook.vcproj.E332017E68B9405.gxl.user1.37 kB12-07-09 16:31
 ReadMe.txt2.27 kB11-24-09 23:55
 011.00 B
 Resource.h380.00 B11-24-09 23:55
 Mousehook.rc2400.00 B11-24-09 23:55
 stdafx.cpp209.00 B11-24-09 23:55
 stdafx.h1.26 kB11-24-09 23:55
 targetver.h1.40 kB11-24-09 23:55
...

Related Items

    Sponsored links