macres.h File Reference

#include <mi32/miodefns.h>

Include dependency graph for macres.h:

Include dependency graph

Go to the source code of this file.

Defines

#define LIBEXPORT   MI_DLLIMPORT

Functions

LIBEXPORT int MacNumResourcesOfType (int file, UINT32 type)
LIBEXPORT int MacReadResourceByID (int file, UINT32 type, UINT16 ResID, void **pData)
LIBEXPORT int MacReadResourceByNum (int file, UINT32 type, int num, void **pData)


Define Documentation

#define LIBEXPORT   MI_DLLIMPORT
 

Definition at line 33 of file macres.h.


Function Documentation

LIBEXPORT int MacNumResourcesOfType int  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 MioOpen()
type  e.g. 'sfnt'

LIBEXPORT int MacReadResourceByID int  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 MioOpen()
type  e.g. 'sfnt'
ResID  Resource ID

LIBEXPORT int MacReadResourceByNum int  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 MioOpen()
type  e.g. 'sfnt'
num  Read the Nth resource (0-based)


Generated on Tue Dec 14 13:19:04 2004 for TNTsdk by  doxygen 1.3.8-20040913