This function starts an application.
#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HWND hwndNotify; /* Notification-window handle. */ PPROGDETAILS pDetails; /* Program list structure. */ PSZ pszParams; /* Input parameters for the application to be started. */ PVOID pReserved; /* Start data. */ ULONG ulOptions; /* Option indicators. */ HAPP happ; /* Application handle. */ happ = WinStartApp(hwndNotify, pDetails, pszParams, pReserved, ulOptions);