This function obtains the length of the string that represents the true type of a dragged object.
#define INCL_WINSTDDRAG #include <os2.h> PDRAGITEM pditem; /* Pointer to the DRAGITEM structure whose type length is to be obtained. */ ULONG ulLength; /* String length of the first element of the character string associated with hstrType. */ ulLength = DrgQueryTrueTypeLen(pditem);