This call puts data into the clipboard.

#define INCL_WINCLIPBOARD /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HAB      hab;        /*  Anchor-block handle. */
ULONG    ulh;        /*  General handle to the data object being set into the clipboard. */
ULONG    ulfmt;      /*  Clipboard format of the data object referenced by ulh. */
ULONG    flFmtInfo;  /*  Information. */
BOOL     rc;         /*  Data-placed indicator. */

rc = WinSetClipbrdData(hab, ulh, ulfmt, flFmtInfo);


[Back] [Next]