Hooks a windows message. The callback is called when the message is received in the WndProc.
callback