Hi.
I have a small program that help me move som specific files to specific folders.
The filesize vary from 400MB to arround 10GB, they are transfered from a local disk to a netværk disk (mounted as z: drive)
Currently I am using the MoveFileA function from the kernel32.dll, and it works fine. It requires two arguments, path from and path to, easy peasy.
My problem/request is that I would like to have som sort of progress bar when moving large files. So I would like to monitor the size of the copied data.
For this I think I should use the function MoveFileWithProgressA also from the kernel32.dll.
from microsoft: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365242(v=vs.85).aspx
I get:
BOOL WINAPI MoveFileWithProgress( _In_ LPCTSTR lpExistingFileName, _In_opt_ LPCTSTR lpNewFileName, _In_opt_ LPPROGRESS_ROUTINE lpProgressRoutine, _In_opt_ LPVOID lpData, _In_ DWORD dwFlags);
where we again have path from and to,
then (arg3+4) I should give a pointer to a CopyProgressRoutine callback function - and some arguments for this function.
My problem is, that I dont know what that means, and further more, I dont know how to get a file size number or something from this.
I hope my problem/request is clear, I would like to have som help in understanding the CopyProgressRoutine callback function, and how to use it.
(Windows 7 64bit)
Regards
Jørgen Houmøller