Menu

CFrame UnhookWindowsHookEx for StaticKeyboardProc?

2016-09-23
2016-09-25
  • Daniel Pantea

    Daniel Pantea - 2016-09-23

    Hi David,
    in CFrame::OnCreate we have SetWindowsHookEx for StaticKeyboardProc, but we don't set m_KbdHook.
    This is why in CFrame dtor UnhookWindowsHookEx is then not called: should it be?
    In MSDN they say "Before terminating, an application must call the UnhookWindowsHookEx function to free system resources associated with the hook"...
    Best regards,
    Daniel

     
  • David

    David - 2016-09-25

    Hi Danial,

    Yes the m_KbdHook member should have been assigned CFrame::OnCreate. That's been corrected in the latest code update.

    Best regards,
    David

     

Log in to post a comment.