WinSetTitleAndIcon sets the program title and program name. If an icon with the same name as the program name is located, it will be used as well.
#include <os2.h> PSZ pszTitle; PSZ pszProgramName; APIRET rc; /* Success indicator. */ rc = WinSetTitleAndIcon(pszTitle, pszProgramName);