gpGetCurrentFile
This function is used to get the current file being transferred.
- GPResult gpGetCurrentFile(
- GPConnection * connection,
- GPTransfer transfer,
- int * index );
Routine | Required Header | Distribution |
---|---|---|
gpGetCurrentFile | <gp.h> | SDKZIP |
Return Value
This function returns GP_NO_ERROR upon success. Otherwise a valid GPResult is returned.
Parameters
- connection
- [in] A GP connection interface.
- transfer
- [in] A GP transfer object
- index
- [out] Returns the index of the current transferring file.
Remarks
This function is used to get the index of the current file being transferred. This will be 0 until the first file is finished, then 1 until the second file finishes, etc. When the transfer is complete, it will be set to the number of files in the transfer.
Section Reference: Gamespy Presence SDK