mi32/macres.h File Reference

#include <mi32/stddefns.h>
Include dependency graph for macres.h:

Go to the source code of this file.

Defines

#define LIBEXPORT   MI_DLLIMPORT

Functions

LIBEXPORT int MacNumResourcesOfType (FILE_RAW &file, UINT32 type)
LIBEXPORT int MacReadResourceByID (FILE_RAW &file, UINT32 type, UINT16 ResID, void **pData)
LIBEXPORT int MacReadResourceByNum (FILE_RAW &file, UINT32 type, int num, void **pData)
LIBEXPORT int MacReadResourceByNum2 (MIUNICODE *filename, UINT32 type, int num, void **pData)

Define Documentation

#define LIBEXPORT   MI_DLLIMPORT

Function Documentation

LIBEXPORT int MacNumResourcesOfType ( FILE_RAW file,
UINT32  type 
)

Return the number of resources of a given type in a data-fork resource file.

This is for MacOS X where Apple kept TrueType fonts in the resource file structure but in a flat file.

Parameters:
file Opened with FILE_RAW::Open()
type e.g. 'sfnt'
LIBEXPORT int MacReadResourceByID ( FILE_RAW file,
UINT32  type,
UINT16  ResID,
void **  pData 
)

Read a resource of a given type and ID from a data-fork resource file.

This is for MacOS X where Apple kept TrueType fonts in the resource file structure but in a flat file. If pData is NULL, just return the size of the buffer If not NULL, *pData is allocated and should be MmFree()'d

Returns:
Size of the buffer allocated, 0 if not found, < 0 on error
Parameters:
file Opened with FILE_RAW::Open()
type e.g. 'sfnt'
ResID Resource ID
LIBEXPORT int MacReadResourceByNum ( FILE_RAW file,
UINT32  type,
int  num,
void **  pData 
)

Read the Nth resource of a given type from a data-fork resource file.

This is for MacOS X where Apple kept TrueType fonts in the resource file structure but in a flat file. If pData is NULL, just return the size of the buffer If not NULL, *pData is allocated and should be MmFree()'d

Returns:
Size of the buffer allocated, 0 if not found, < 0 on error
Parameters:
file Opened with FILE_RAW::Open()
type e.g. 'sfnt'
num Read the Nth resource (0-based)
LIBEXPORT int MacReadResourceByNum2 ( MIUNICODE filename,
UINT32  type,
int  num,
void **  pData 
)

Read the Nth resource of a given type from a data-fork resource file.

This is for MacOS X where Apple kept TrueType fonts in the resource file structure but in a flat file. If pData is NULL, just return the size of the buffer If not NULL, *pData is allocated and should be MmFree()'d

Returns:
Size of the buffer allocated, 0 if not found, < 0 on error
Parameters:
filename Opened with FILE_RAW::Open()
type e.g. 'sfnt'
num Read the Nth resource (0-based)

Generated on Sun Oct 7 21:26:48 2012 for TNTsdk 2012 by  doxygen 1.6.1