THPUtyReadTHPFileHeader

C Specification

#include <win32/thputilities.h>
s32 THPUtyReadTHPFileHeader(FILE* ip, THPFileHeader* fileHeader);

Arguments

ip File pointer to the THP movie data.
fileHeader Pointer to the THPFileHeader structure.

Return Values

Returns one of the following codes:

code value description
THP_ERROR_NOERROR 0 The function ended normally.
THP_ERROR_FILEIO 1 Failed to read or write from file.
THP_ERROR_THPFILE 2 The THP movie data is invalid.

Description

This function reads a THPFileHeader structure from the THP movie data specified by ip. The read position must be set in advance to THPFileHeader's position.

See Also

None.

Revision History

03/01/2006 Initial version.