This method is called to find workplace objects.

#define INCL_WINWORKPLACE
#include <os2.h>

M_WPObject     *somSelf;            /*  Pointer to the WPObject class object. */
PCLASS          pClasslist;         /*  Pointer to an array of class objects. */
PHFIND          phFind;             /*  Address of the handle returned by this method. */
PSZ             pszTitle;           /*  Pointer to the title specification for objects to be searched. */
WPFolder       *Folder;             /*  Pointer to the folder in which to find objects. */
BOOL            fSubfolders;        /*  Scope indicator. */
PVOID           pExtendedCriteria;  /*  Pointer to the extended search criteria. */
POBJECT         pBuffer;            /*  Pointer to a buffer that contains an array of object pointers. */
PULONG          pCount;             /*  Address of the number of matching entries requested in pBuffer. */
BOOL            rc;                 /*  Success indicator. */

rc = _wpclsFindObjectFirst(somSelf, pClasslist,
       phFind, pszTitle, Folder, fSubfolders,
       pExtendedCriteria, pBuffer, pCount);


[Back] [Next]