I tried something like this but the function was never called. How is the ScanMessage function called?
I used "SetWindowLong(hWnd,GWL_WNDPROC, WndProc);" to set the window procedure to my function. I tried the same with ScanMessage but it didn't work because ScanMessage does not have the same format (no hWnd parameter)
I assume it's already set by default, but why isn't it being called then?