1. 최초 커밋

This commit is contained in:
2021-05-02 15:31:55 +09:00
commit eddba8f209
44 changed files with 4131 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
// KeyHookForCapture.cpp : DLL <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α׷<CEB1><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
//
#include "stdafx.h"
#include "HookProcedure.h"
#include "Utility.h"
// <20><><EFBFBD><EFBFBD> <20><>ü
HINSTANCE g_hInstance = NULL; //
HHOOK g_hHook = NULL; //
// <20><><EFBFBD><EFBFBD> <20>Լ<EFBFBD>
BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved )
{
switch( dwReason )
{
case DLL_PROCESS_ATTACH:
g_hInstance = hinstDLL;
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
//----------------------------------
// <20><> <20><><EFBFBD><EFBFBD>
//----------------------------------
DELARE_EXPORT_FUNCTION void HookStart()
{
g_hHook = SetWindowsHookEx(WH_KEYBOARD, KeyboardProc, g_hInstance, 0);
}
//----------------------------------
// <20><> <20><>
//----------------------------------
DELARE_EXPORT_FUNCTION void HookEnd()
{
if( g_hHook )
{
UnhookWindowsHookEx(g_hHook);
g_hHook = NULL;
}
}