This example shows how to obtain the true type of an object.
#define INCL_WINSTDDRAG /* Direct Manipulation (Drag) Functions */ #include <OS2.H> BOOL fSuccess; /* Return value */ DRAGITEM Dragitem; /* DRAGITEM structure whose true type */ /* is to be obtained */ char szBuffer[32]; /* Buffer in which the null-terminated */ /* string is to be returned */ fSuccess = DrgQueryTrueType(&Dragitem, sizeof(szBuffer), szBuffer);