79758288

Date: 2025-09-07 18:32:45
Score: 1.5
Natty:
Report link

Ok, thanks for everyone in the comments, I think @RbMm is correct, after running the program in a debugger, and adding a break point in handler, then reviewing the backtrace, it reveals that GetMessage is indeed called before handler, and that both are called on the main thread.

handler(HWINEVENTHOOK ev_hook, DWORD event, HWND win, LONG obj_id, LONG child_id, DWORD event_thread_id, DWORD event_time_ms) (c:\\winman\\winman.c:176)

user32.dll!USER32!RegisterWindowMessageA (Unknown Source:0)

ntdll.dll!ntdll!KiUserCallbackDispatcher (Unknown Source:0)

win32u.dll!win32u!NtUserGetMessage (Unknown Source:0)

user32.dll!USER32!GetMessageA (Unknown Source:0)

main() (c:\\winman\\winman.c:62) -- this is where GetMessage is actually located in my source code  
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @RbMm
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kareem Taha