This function obtains the true type of a dragged object.
#define INCL_WINSTDDRAG #include <os2.h> PDRAGITEM pditem; /* Pointer to the DRAGITEM structure whose type is to be obtained. */ ULONG cbBuffer; /* Maximum number of bytes to copy to pBuffer. Must be > 0. */ PSZ pBuffer; /* Buffer in which the null-terminated string is to be returned. */ BOOL rc; /* Success indicator. */ rc = DrgQueryTrueType(pditem, cbBuffer, pBuffer);