#define INCL_PM

#include <OS2.h>
#include <StdLib.h>

#define Main main

//
// ...  ᠭ ⨯  ... 
//

Main ()
{
  // 稭 ࠡ   窥.
  HAB Shell_handle = WinInitialize (0);

  if (Shell_handle)
  {
    //  । ᮮ饭.
    HMQ Msg_queue = WinCreateMsgQueue (Shell_handle, 0);

    if (Msg_queue)
    {
      //
      // ...    ᮧ  ... 
      //

      // ⠥ ।  । ᮮ饭 , 뢠 㭪樨  ࠡ⪨ ᮮ饭.
      QMSG Message = {0};

      while (WinGetMsg (Shell_handle, &Message, NULLHANDLE, 0, 0))
      {
        WinDispatchMsg (Shell_handle, &Message);
      }

      //
      //  ⠪:
      // WinMessageBox (HWND_DESKTOP, NULLHANDLE,
      //                "Hello World!", "", 0, 0);
      //

      //
      // ...    㤠 ᮧ  ... 
      //

      // 塞 ।.
      WinDestroyMsgQueue (Msg_queue);

      // 蠥 ࠡ   窥.
      WinTerminate (Shell_handle);
    }
    else
    {
      // ᫨ । ᮮ饭 ᮧ  㤠 - 室.
      DosExit (EXIT_PROCESS, -1); 
    }
  }
  else
  {
    // ᫨  窨  - 室.
    DosExit (EXIT_PROCESS, -1); 
  }

  return 0;
}