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

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
Params
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
Comments
If the pointer to the given buffer is set to -1 the size of the resource will be returned in the size field