API Reference


Brew Release
Brew MP 1.0.2
See Also
IResFile IResFile_GetNamedType()

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.
  • pif
    [in] A pointer to an IResFile interface object.
  • ptype
    [out] A pointer to storage for type of resource found
  • args
    [in] Variable argument list containing the names for the resources

   int IResFile_GetNamedTypeV(IResFile *pif, uint16 *ptype, va_list *args);
   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
Refer to IResFile_GetNamedType() for a simplified version of this function without using the varg parameter.
  • Follow