This function begins a direct manipulation operation for one or more files.
#define INCL_WINSTDDRAG
#include <os2.h>
HWND Hwnd; /* Handle of calling window. */
PAPSZ pFiles; /* The names of the files to be dragged. */
PAPSZ pTypes; /* The file types of the files to be dragged. */
PAPSZ pTargets; /* Target file names. */
ULONG cFiles; /* Number of files to be dragged. */
HPOINTER hptrDrag; /* Icon to display during the drag. */
ULONG vkTerm; /* Button that ends the drag. */
BOOL fSourceRender; /* Flag indicating whether the source must perform the move or copy. */
ULONG ulReserved; /* Reserved. */
BOOL rc; /* Success indicator. */
rc = DrgDragFiles(Hwnd, pFiles, pTypes, pTargets,
cFiles, hptrDrag, vkTerm, fSourceRender,
ulReserved);