This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method sets the object ID assigned to this object. The instance data is set, but the .INI file is not modified.
#define INCL_WINWORKPLACE #include <os2.h> WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ PSZ pszObjectID; /* String containing a unique object ID. */ BOOL rc; /* Success indicator. */ rc = _wpSetObjectID(somSelf, pszObjectID);