This method is specific to version 3, or higher, of the OS/2 operating system.
This class method removes all specified objects from a given container and the in-use list.
#define INCL_WINWORKPLACE #include <os2.h> M_WPObject *somSelf; /* Pointer to the WPObject class object. */ HWND hwndCnr; /* Handle to the container object. */ PVOID *pRecordArray; /* Pointer to an array of MINIRECORDCORE objects that are to be removed. */ ULONG NumRecords; /* Number of records in pRecordArray. */ BOOL RemoveAll; /* Flag indicating whether to remove all records. */ BOOL rc; /* Success indicator. */ rc = _wpclsRemoveObjects(somSelf, hwndCnr, pRecordArray, NumRecords, RemoveAll);