This example calls the DrgFreeDragtransfer function to free an existing DRAGTRANSFER structure allocated by the DrgAllocDragtransfer function.
#define INCL_WINSTDDRAG /* Direct Manipulation (Drag) Functions */ #include <os2.h> BOOL fSuccess; /* Indicate success or failure */ DRAGTRANSFER dxfer; /* Pointer to DRAGTRANSFER structure */ fSuccess = DrgFreeDragtransfer(&dxfer);