This function obtains a handle to the current clipboard data with a specified format.

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

HAB      hab;    /*  Anchor-block handle. */
ULONG    fmt;    /*  Format of the data to be accessed. */
ULONG    ulRet;  /*  Handle to the clipboard data. */

ulRet = WinQueryClipbrdData(hab, fmt);


[Back] [Next]