please dont rip this site Prev Next

CopyProgressRoutine info  Overview  Group

The CopyProgressRoutine function is called when a portion of a copy operation started by CopyFileEx is completed. This function is an application-defined callback routine.

DWORD WINAPI CopyProgressRoutine(

    LARGE_INTEGER TotalFileSize,

// total file size, in bytes

    LARGE_INTEGER TotalBytesTransferred,

// total number of bytes transferred

    LARGE_INTEGER StreamSize,

// total number of bytes for this stream

    LARGE_INTEGER StreamBytesTransferred,

// total number of bytes transferred for this stream

    DWORD dwStreamNumber,

// the current stream

    DWORD dwCallbackReason,

// reason for callback

    HANDLE hSourceFile,

// handle to the source file

    HANDLE hDestinationFile,

// handle to the destination file

    LPVOID lpData

// passed by CopyFileEx 

   );

Parameters

TotalFileSize
The total size of the file, in bytes.
TotalBytesTransferred
The total number of bytes transferred from the source file to the destination file since the copy operation began.
StreamSize
The total size of the current file stream, in bytes.
StreamBytesTransferred
The total number of bytes in the current stream that have been transferred from the source file to the destination file since the copy operation began.
dwStreamNumber
Identifies the current stream. The stream number is 1 the first time CopyProgressRoutine is called.
dwCallbackReason
Specifies the reason that CopyProgressRoutine was called. This parameter can be one of the following values:

Value

Meaning

CALLBACK_CHUNK_FINISHED

Another part of the data file was copied.

CALLBACK_STREAM_SWITCH

Another stream was created and is about to be copied. This is the callback reason given when the callback routine is first invoked.

hSourceFile
Identifies the source file.
hDestinationFile
Identifies the destination file
lpData
The argument passed to CopyProgressRoutine by the CopyFileEx function.

Return values

The CopyProgressRoutine function should return one of the following values:

Value

Meaning

PROGRESS_CONTINUE

Continue the copy operation.

PROGRESS_CANCEL

Cancel the copy operation and delete the destination file.

PROGRESS_STOP

Stop the copy operation. It can be restarted at a later time.

PROGRESS_QUIET

Continue the copy operation, but stop invoking CopyProgressRoutine to report progress.

Remarks

An application can use this information to display a progress bar that shows the total number of bytes copied as a percent of the total file size.

See Also

CopyFileEx 


file: /Techref/os/win/api/win32/func/src/f07_19.htm, 6KB, , updated: 2000/4/7 12:19, local time: 2024/3/28 11:23,
TOP NEW HELP FIND: 
3.230.1.23:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.sxlist.com/techref/os/win/api/win32/func/src/f07_19.htm"> CopyProgressRoutine</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 

Welcome to www.sxlist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .