The PostAppMessage function is obsolete. The function is provided only for compatibility with 16-bit versions of Windows. Win32-based applications should use the PostThreadMessage function.
Messages and Message Queues Overview, Message and Message Queue Functions