This method is specific to Version 4, or higher, of the OS/2 operating system.
This instance method opens the clipboard and retrieves the type of data specified in the clipboard format passed in. It then writes the clipboard data to a file.
#define INCL_WINWORKPLACE #include <os2.h> WPDataFile *somSelf; /* Pointer to the object on which the method is being invoked. */ ULONG aRenderAs; /* An atom representing the clipboard format. */ BOOL rc; /* Success indicator */ rc = _wpRenderFromClipboard(somSelf, aRenderAs);