DragAcceptFiles
DragAcceptFiles is an API function in the Microsoft Windows operating system that allows a window to receive drag-and-drop file transfer operations. The function prototype is declared in the shellapi.h header as follows:
DragAcceptFiles(HWND hWnd, BOOL fAccept)
The first parameter, hWnd, specifies the handle of the window that will receive the drag‑and‑drop file data.
When enabled, the window must process the WM_DROPFILES message that the system sends once a drop operation
Because DragAcceptFiles is a legacy component of the Shell API, newer drag‑and‑drop APIs such as IDropTarget