This instance method is called to delete an object and prompt for confirmation if necessary.
#define INCL_WINWORKPLACE #include <os2.h> WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ ULONG fConfirmations; /* Confirmation flags. */ ULONG rc; /* Success indicator. */ rc = _wpDelete(somSelf, fConfirmations);