반응형 Hooking2 [개발/MFC] 키보드 후킹 [개발/MFC] 키보드 후킹 Hooking 중에서 키보드 후킹에 대해서 구현 방법을 알아보자. ///////////////////////////////////////////////////////////////// // // Hooking 전역 키보드 후킹 // ///////////////////////////////////////////////////////////////// // MFC 다이얼로그 전역키보드 메세지를 가로챈다. HWND g_hWnd = NULL; HHOOK g_hHook = NULL; LRESULT CALLBACK KeyHookProc(int nCode, WPARAM wParam, LPARAM lParam); BOOL SBLiveDlg::SetHookProc() { if (g_hHook.. 2011. 7. 28. [개발] 델파이 DLL injection 델파이로 dll injection 하는 예 procedure TForm1.Button1Click(Sender: TObject); var aHandle, hProcess , ThreadHandle : THandle; PID : Integer; DllName : String; DllNamePos : Pointer; BytesWritten , TheadID : DWORD; begin DllName := ExtractFilePath(ParamStr(0)) + 'Inject.dll'; PID := 0; aHandle := FindWindow('notepad', Nil); if aHandle 0 then GetWindowThreadProcessId(aHandle, @PID); if PID 0 then begin h.. 2010. 11. 2. 이전 1 다음 반응형