This example calls an application-defined initialization function, and calls WinAlarm to generate an audible alarm to notify the user if the function fails.
#define INCL_WINDIALOGS /* Window Dialog Mgr Functions */ #include <os2.h> if (!GenericInit()) /* general initialization */ WinAlarm(HWND_DESKTOP, WA_ERROR);