My application makes use of CopyFileExW for fast copying, and includes the LPPROGRESS_ROUTINE callback to track progress. Since I can copy files simultaneously, I need to keep track of file progress in a global sense.
To do this, I would use a QMap<QString, quint64>
as a map of filepath / file hash and written bytes per file. In order to get the file path or file hash, I need to get the file path. One suggestion is to use GetFinalPathNameByHandleA which looks promising.
Problem:
It appears I do not have access to the GetFinalPathNameByHandleA function found in <fileapi.h>
as seen in the image below:
How can I get a file path from a file HANDLE (in Windows spedcifically)?
fyi: Using Windows 10 x64 with MinGW 32bit compiler and Qt Creator 4.12