API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IRESFILE_GETNAMEDTYPE()

Brew Release
Brew MP 1.0.2
See Also
IResFile Interface IResFile_Get()
Description

Gets the type of a named resource from a resource file. Names for a resource can be given as a variable set of, null terminated, string arguments. Each string specifies one or more levels in the naming tree. A simple string without '.' characters specifies a single level in the naming tree where as a dot separated set of names in a string specify a series of names in the naming tree.
Finding the type for a named object in the resource file could look like:
      IResFile_GetNamedType(piResFile, &restype, "Main", "Background", "Object", 0)
Params
pif
[]:
[in] A pointer to an IResFile interface object.
ptype
[]:
[out] A pointer to storage for type of resource found ...: [in] Null-terminated string list of names (see above)

Interface
Prototype
  •    int IResFile_GetNamedType(IResFile *pif, uint16* ptype, ...);
    
Return
  •    AEE_SUCCESS:   The named resource was found and the resource id located
       AEE_EBADPARM:  One of the given parameters is invalid
       EBADSTATE:     Resource file is not open 
       EUNSUPPORTED:  Resource file does not support named resources
       EUNABLETOLOAD: Named resource could not be resolved 
    

Side Effect
  • None.
Comments
None.