DragQueryFile function shell32

int DragQueryFile(
  1. HDROP hDrop,
  2. int iFile,
  3. PWSTR? lpszFile,
  4. int cch,
)

Retrieves the names of dropped files that result from a successful drag-and-drop operation.

To learn more, see learn.microsoft.com/windows/win32/api/shellapi/nf-shellapi-dragqueryfilew.

Implementation

@pragma('vm:prefer-inline')
int DragQueryFile(HDROP hDrop, int iFile, PWSTR? lpszFile, int cch) =>
    _DragQueryFile(hDrop, iFile, lpszFile ?? nullptr, cch);