This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method is called to delete the object's USAGE_RECORD use-item for the container specified; it does not remove the record from the container. To delete the USAGE_RECORD use-item and remove the record from the container, use wpCnrRemoveObject.
#define INCL_WINWORKPLACE #include <os2.h> WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ HWND hwndCnr; /* Handle to the container. */ BOOL rc; /* Success indicator. */ rc = _wpCnrDeleteUseItem(somSelf, hwndCnr);