How to use Photon hooks?

I need to use hooks in my Photon application (for implementing a key handler) in the same way as in MFC. I am not able to understand the API PtHook( ). Is it similar to the SetWindowsHookEx( ) of MFC?

A key handler? You mean, for your Photon application to accept key press input? I don’t think you need PtHook for that, more something like a PhKeyEvent_t ?