This function releases the current DRAGINFO structure and reallocates a new one.
#define INCL_WINSTDDRAG #include <os2.h> PDRAGINFO pdinfoOld; /* Pointer to the current DRAGINFO structure. */ ULONG cditem; /* Number of DRAGITEM structures to be allocated. */ PDRAGINFO pdinfoCurrent; /* Pointer to a newly allocated DRAGINFO structure. */ pdinfoCurrent = DrgReallocDragInfo(pdinfoOld, cditem);