hwnd is a handle to the window to which the message was sent and uMsg identifies the actual message. wParam and lParam are parameters whose meaning depends on the message. An application should identify the message and take the required action.
