This example calls the DrgDeleteStrHandle function to delete an existing string handle (returned by a previous call to the DrgAddStrHandle function).
#define INCL_WINSTDDRAG /* Direct Manipulation (Drag) Functions */ #include <os2.h> BOOL fSuccess; /* Indicate success or failure */ HSTR Hstr; /* String handle */ fSuccess = DrgDeleteStrHandle (Hstr);