Click here to Skip to main content
15,914,409 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl custom draw issue Pin
Prasanth Vijayan10-Mar-10 20:51
Prasanth Vijayan10-Mar-10 20:51 
QuestionComments in .rgs file Pin
Krishnakumartg10-Mar-10 18:09
Krishnakumartg10-Mar-10 18:09 
AnswerRe: Comments in .rgs file Pin
LunaticFringe10-Mar-10 18:17
LunaticFringe10-Mar-10 18:17 
GeneralRe: Comments in .rgs file Pin
Krishnakumartg10-Mar-10 21:46
Krishnakumartg10-Mar-10 21:46 
QuestionHow can insert menu to dialog by ce application? Pin
Patrick Tang10-Mar-10 15:27
Patrick Tang10-Mar-10 15:27 
AnswerRe: How can insert menu to dialog by ce application? Pin
Patrick Tang10-Mar-10 16:01
Patrick Tang10-Mar-10 16:01 
GeneralRe: How can insert menu to dialog by ce application? Pin
KingsGambit10-Mar-10 17:52
KingsGambit10-Mar-10 17:52 
QuestionDetecting Hooks [modified] Pin
hxhl9510-Mar-10 13:01
hxhl9510-Mar-10 13:01 
Hi all,

I'm curious as to whether there are methods to detect forms of hooking on windows. I've been trying the WH_DEBUG hook to no success, code is below and it crashes every app under the explorer.exe tree.

HHOOK debughook;
LRESULT CALLBACK DebugProc(int nCode,WPARAM wParam,LPARAM lParam){
	return CallNextHookEx(debughook,nCode,wParam,lParam);
}

int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
	debughook=SetWindowsHookEx(WH_DEBUG,DebugProc,hInstance,0);


Any help with that would be appreciated, as well as any other suggestions on hook detection. My original goal was to make an effective keylogger detection app, but as of now that doesn't seem very likely anymore.

Thanks.

edit: is there any reason why a global IAT patch doesn't seem to work on SetWindowsHookExA?
modified on Wednesday, March 10, 2010 8:24 PM

AnswerRe: Detecting Hooks Pin
Baltoro10-Mar-10 13:55
Baltoro10-Mar-10 13:55 
GeneralRe: Detecting Hooks Pin
hxhl9510-Mar-10 14:25
hxhl9510-Mar-10 14:25 
GeneralRe: Detecting Hooks Pin
Baltoro11-Mar-10 9:39
Baltoro11-Mar-10 9:39 
GeneralRe: Detecting Hooks Pin
Baltoro11-Mar-10 9:49
Baltoro11-Mar-10 9:49 
GeneralLooking for Hooks Pin
Baltoro11-Mar-10 10:34
Baltoro11-Mar-10 10:34 
GeneralRe: Detecting Hooks Pin
hxhl9511-Mar-10 13:29
hxhl9511-Mar-10 13:29 
GeneralRe: Detecting Hooks Pin
Baltoro13-Mar-10 10:47
Baltoro13-Mar-10 10:47 
GeneralRe: Detecting Hooks Pin
hxhl9513-Mar-10 10:49
hxhl9513-Mar-10 10:49 
QuestionVS2005 & VS2008 DLL Compilation issues Pin
masnu10-Mar-10 7:56
masnu10-Mar-10 7:56 
AnswerRe: VS2005 & VS2008 DLL Compilation issues Pin
CPallini10-Mar-10 8:01
mveCPallini10-Mar-10 8:01 
GeneralRe: VS2005 & VS2008 DLL Compilation issues Pin
masnu10-Mar-10 9:19
masnu10-Mar-10 9:19 
QuestionRe: VS2005 & VS2008 DLL Compilation issues Pin
CPallini10-Mar-10 10:24
mveCPallini10-Mar-10 10:24 
AnswerRe: VS2005 & VS2008 DLL Compilation issues Pin
Chris Losinger10-Mar-10 8:13
professionalChris Losinger10-Mar-10 8:13 
GeneralRe: VS2005 & VS2008 DLL Compilation issues Pin
masnu10-Mar-10 9:21
masnu10-Mar-10 9:21 
QuestionAdministration Rights for my Application by Token Pin
Joschwenk66610-Mar-10 2:58
Joschwenk66610-Mar-10 2:58 
AnswerRe: Administration Rights for my Application by Token Pin
Eugen Podsypalnikov10-Mar-10 3:17
Eugen Podsypalnikov10-Mar-10 3:17 
QuestionWM_GETFONT returns NULL Pin
sashoalm10-Mar-10 1:53
sashoalm10-Mar-10 1:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.