gpGetFileModificationTime

GameSpy SDK

gpGetFileModificationTime

This function is used to get a file’s timestamp.

GPResult gpGetFileModificationTime(
GPConnection * connection,
GPTransfer transfer,
int index,
unsigned long * modTime );
RoutineRequired HeaderDistribution
gpGetFileModificationTime<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 pointer to a GPTransfer object.
index
[in] Index of the file within the GPTransfer object.
modTime
[out] The modification time.

Remarks

This function is used to get the timestamp for a file being transferred. This is typically used by the receiver to set the file’s timestamp correctly after a file has been received.

Section Reference: Gamespy Presence SDK