This function returns a DRAGITEM structure used in the direct manipulation operation.
#define INCL_WINSTDDRAG
#include <os2.h>
PDRAGINFO pdinfo; /* Pointer to the DRAGINFO structure from which the DRAGITEM structure is obtained. */
ULONG cbBuffer; /* Maximum number of bytes to copy to the buffer. */
PDRAGITEM pditem; /* Pointer to the buffer into which the DRAGITEM structure is copied. */
ULONG iItem; /* Zero-based index of the DRAGITEM to be returned. */
BOOL rc; /* Success indicator. */
rc = DrgQueryDragitem(pdinfo, cbBuffer, pditem,
iItem);