This example calls the DrgDeleteDraginfoStrHandles function to delete all unique string handles associated with the specified DRAGINFO structure (previously allocated by the DrgAllocDraginfo function).
#define INCL_WINSTDDRAG /* Direct Manipulation (Drag) Functions */
#include <os2.h>
BOOL fSuccess; /* Indicate success or failure */
DRAGINFO Draginfo; /* DRAGINFO structure containing string */
/* handles to delete */
fSuccess = DrgDeleteDraginfoStrHandles (&Draginfo);