This function creates an instance of object class pszClassName, with title pszTitle, and places the icon and title in the location referred to by pszLocation.

#define INCL_WINWORKPLACE
#include <os2.h>

PSZ        pszClassName;    /*  Pointer to class name. */
PSZ        pszTitle;        /*  Pointer to initial title of object. */
PSZ        pszSetupString;  /*  Pointer to setup string. */
PSZ        pszLocation;     /*  Folder location. */
ULONG      ulFlags;         /*  Creation flags. */
HOBJECT    rc;              /*  Handle to the created object. */

rc = WinCreateObject(pszClassName, pszTitle,
       pszSetupString, pszLocation, ulFlags);


[Back] [Next]