Developer

API Reference

IResFile_GetNamedObjectV()

Brew Release
Brew MP 1.0.2
See Also
IResFile IResFile_GetNamedObject()
Description

Gets a named object 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.
Parameters
  • pif
    []:
    [in] A pointer to an IResFile object
  • clsid
    []:
    [in] Class ID of the handler (see ISHELL_LoadResObject(), AEEHandlerType)
  • ppif
    []:
    [out] Pointer to the object pointer where object will be loaded
  • args
    []:
    [in] Variable argument list containing the names for the resources

Interface
Prototype
   int IResFile_GetNamedObjectV(IResFile *pif, AEECLSID clsid, void **ppif, va_list *args);
Return
   AEE_SUCCESS:       Named resource was found and loaded
   AEE_EBADSTATE:     Resource file is not open 
   AEE_EUNSUPPORTED:  Resource file does not support named resources
   AEE_EUNABLETOLOAD: Named resource could not be resolved or loaded
Side Effect
None
Comment
Refer to IResFile_GetNamedObject() for a simplified version of this function without using the varg parameter.
  • Follow