Developer

API Reference

IResFile_Get()

Brew Release
Brew MP 1.0.2
See Also
IResFile Interface IResFile_GetObject() ISHELL_LoadResDataEx()
Description
Gets a resource with given id and type from the IResFile. This function can also be used to request the size of a given resource in the resource file
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
  • pbuf
    []:
    [out] A pointer to a buffer where the resource data is to be loaded into
  • plen
    []:
    [out] A pointer to where the size of the loaded resource can be stored

Interface
Prototype
   int IResFile_Get(IResFile *pif, uint32 resid, uint16 restype, void *pbuf, uint32 *plen)
Return
   AEE_SUCCESS: Resource was found and loaded
   AEE_EFAILED: Resource could not be found or failed to load
Side Effect
None
Comment
If the pointer to the given buffer is set to -1 the size of the resource will be returned in the size field
  • Follow