After using the hook to intercept a message, I will join a function that handles this message in another program, but I don't know how, I always have a memory access!
After debugging all day, it was found that the message array was empty access, resulting in the message, the message array is empty, can no longer access!
The correct processing method is to join in the message
ON_MESSAG () ... After the macro of the class, the joined encompasses must have two parameters.
WPARAM WPARAM, LPARAM LPARAM,
If there is no two parameters, the message array will be empty after processing, and the memory is connected.