This method creates a new instance of a given class of object.
#define INCL_WINWORKPLACE #include <os2.h> M_WPObject *somSelf; /* Pointer to the WPObject class object. */ PSZ pszTitle; /* Pointer to the object title. */ PSZ pszSetupEnv; /* Environment setup string. */ WPFolder *Folder; /* Pointer to the folder object in which to place the new object. */ BOOL fLock; /* Lock object flag. */ WPObject *wpclsNew; /* Pointer to the new object. */ wpclsNew = _wpclsNew(somSelf, pszTitle, pszSetupEnv, Folder, fLock);