This example uses DrgQueryDraginfoPtrFromHwnd to obtain a pointer to the DRAGINFO structure allocated by the given window.
#define INCL_WINSTDDRAG
#include <os2.h>
HWND hwndWindow; /* Window handle */
PDRAGINFO pinfo; /* Pointer to a DRAGINFO structure */
pdinfo=DrgQueryDraginfoPtrFromHwnd(hwndWindow);
If (pdinfo) {
.
.
.
}