bool DumpIconGroup( uint_32 offset, uint_32 length, FILE *fp ) /************************************************************/ { IconCurDirHeader head; IconDirEntry entry; bool error; int currentry; length = length; RESSEEK( fp, offset, SEEK_SET ); error = ResReadIconCurDirHeader( &(head), fp ); PrintIconCurDirHeader( &head ); for( currentry = 0; !error && currentry < head.ResCount; currentry++ ) { error = ResReadIconDirEntry( &entry, fp ); if( !error ) { PrintIconDirEntry( &entry, currentry + 1 ); } } RESSEEK( fp, offset, SEEK_SET ); return( error ); }
extern int DumpIconGroup( uint_32 offset, uint_32 length, int handle ) #pragma on (unreferenced) /***************************************************************************/ { IconCurDirHeader head; IconDirEntry entry; long prevpos; int error; int currentry; prevpos = lseek( handle, offset, SEEK_SET ); error = ResReadIconCurDirHeader( &(head), handle ); PrintIconCurDirHeader( &head ); for (currentry = 0; !error && currentry < head.ResCount; currentry++ ) { error = ResReadIconDirEntry( &entry, handle ); if (!error) { PrintIconDirEntry( &entry, currentry + 1 ); } } lseek( handle, prevpos, SEEK_SET ); return( error ); }