The WinAPI associates its messages, such as WM_GETTEXT, with ints, such as 13. Each message seems to have its own code.
Unfortunately, this list of codes is incomple