This function gets the length of a string associated with a string handle.
#define INCL_WINSTDDRAG #include <os2.h> HSTR hstr; /* String handle. */ ULONG cLength; /* Length of the string associated with hstr. */ cLength = DrgQueryStrNameLen(hstr);