This example uses DrgQueryDraginfoPtr to obtain a pointer to the current DRAGINFO structure.
#define INCL_WINSTDDRAG #include <os2.h> PDRAGINFO pdinfo; /* Pointer to a DRAGINFO structure */ pdinfo = DrgQueryDraginfoPtr(NULL); if (pdinfo) { . . . }