This method is specific to Version 4, or higher, of the OS/2 operating system.
This instance method sets a file's contents based on a handle to a known system data type. This is an abstract method; subclasses that describe files for which a system handle type exist (such as WPIcon or WPBitmap) should subclass this method.
#define INCL_WINWORKPLACE #include <os2.h> WPDataFile *somSelf; /* Pointer to the object on which the method is being invoked. */ LHANDLE handle; /* Handle to the data type object. */ BOOL rc; /* Success indicator */ rc = _wpSetContentsFromHandle(somSelf, handle);