I want to detect the moment when the WM_PAINT message for a window in a different process was handled. For this purpose, I was going to use SetWindowsHookExA(
WM_PAINT
SetWindowsHookExA(