View Single Post
Old Oct 31st, 2007, 1:15 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Re: problems with CopyFileEX

You have to write your own CopyProgressRoutine. You need to define it as specified:
Quote:
Originally Posted by MSDN
DWORD CALLBACK CopyProgressRoutine(
  [in]                 LARGE_INTEGER TotalFileSize,
  [in]                 LARGE_INTEGER TotalBytesTransferred,
  [in]                 LARGE_INTEGER StreamSize,
  [in]                 LARGE_INTEGER StreamBytesTransferred,
  [in]                 DWORD dwStreamNumber,
  [in]                 DWORD dwCallbackReason,
  [in]                 HANDLE hSourceFile,
  [in]                 HANDLE hDestinationFile,
  [in]                 LPVOID lpData
);
Obviously, you can change the names to anything you like.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote