This function performs a substitution process on a text string, replacing specific marker characters with text supplied by the application.
#define INCL_WINDIALOGS /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HWND hwnd; /* Handle of window that processes the call. */ PSZ pszSrc; /* Source string. */ LONG lDestMax; /* Maximum number of characters returnable. */ PSZ pszDest; /* Resultant string. */ LONG lDestRet; /* Actual number of characters returned. */ lDestRet = WinSubstituteStrings(hwnd, pszSrc, lDestMax, pszDest);