This example uses DrgQueryDraginfoPtrFromDragitem to obtain the pointer to the DRAGINFO structure associated with a given DRAGITEM structure. The example assumes the application already has a pointer to one of the DRAGITEM structures.
#define INCL_WINSTDDRAG
#include <os2.h>
PDRAGINFO pdinfo; /* Pointer to a DRAGINFO structure */
PDRAGITEM pdragitem; /* Pointer to a DRAGITEM structure */
pdinfo=DrgQueryDraginfoPtrFromDragitem(pdragitem);
if (pdinfo) {
.
.
.
}