Developer

API Reference

IResFile_GetSource()

Brew Release
Brew MP 1.0.2
See Also
IResFile_Get() IResFile ISource
Description
Gets an ISource stream for the data of the given resource.
Parameters
  • pif
    []:
    [in] A pointer to an IResFile object.
  • resid
    []:
    [in] ID of the resource to be loaded
  • restype
    []:
    [in] Type of the resource to be loaded
  • ppif
    []:
    [out] A pointer to a destination for the resulting ISource pointer

Interface
Prototype
   int IResFile_GetSource(IResFile *pif, uint32 resid, uint16 restype, ISource **ppif);
Return
   AEE_SUCCESS: Resource was found and loaded
   AEE_EFAILED: Resource could not be found or failed to load
   ENOTSUPPORT: Sources are not supported for this resource file
   ENOMEMORY:   Memory could not be allocated for the source result
Side Effect
None
Comment
None
  • Follow