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

Developer

API Reference

IRESFILE_GETOBJECT()

Brew Release
Brew MP 1.0.2
See Also
IResFile Interface IResFile_GetObject() ISHELL_LoadResObject()
Description
Gets a resource object with given class from the resource file. This function can be used to easily load BREW interface based objects, such as images and sounds from a resource file using the HTYPE constants defined in AEEShell.h
Params
pif
[]:
[in] A pointer to an IResFile object.
resid
[]:
[in] ID of the resource to be loaded
clsid
[]:
[in] Class ID or HTYPE of the object to be loaded
ppif
[]:
[out] A pointer to the destination pointer for the object

Interface
Prototype
  •    int IResFile_GetObject(IResFile *pif, uint32 resid, AEECLSID clsid, void **ppif)
    
Return
  •    AEE_SUCCESS: Object was loaded 
       AEE_EFAILED: Object was not found or failed to load correctly
    
Side Effect
  • None
Comments
The function accepts HTYPE and classid for the classid field.