Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

int kLdrModEnumResources ( PKLDRMOD  pMod,
const void *  pvBits,
KLDRADDR  BaseAddress,
KU32  idType,
const char *  pszType,
KU32  idName,
const char *  pszName,
KU32  idLang,
PFNKLDRENUMRSRC  pfnCallback,
void *  pvUser 
)

Enumerates the resources matching the specfied criteria.

Returns:
0 on success.

Whatever non-zero status returned by pfnCallback (enumeration was stopped).

non-zero kLdr or native status code on failure.

Parameters:
pMod The module.
pvBits Optional pointer to bits returned by kLdrModGetBits() currently located at BaseAddress. This can be used by some module interpreters to reduce memory consumption.
BaseAddress The module base address to use when calculating the resource addresses. There are two special values that can be used: KLDRMOD_BASEADDRESS_LINK and KLDRMOD_BASEADDRESS_MAP.
idType The resource type id to match if not NIL_KLDRMOD_RSRC_TYPE_ID.
pszType The resource type name to match if no NULL.
idName The resource name id to match if not NIL_KLDRMOD_RSRC_NAME_ID.
pszName The resource name to match if not NULL.
idLang The language id to match.
pfnCallback The callback function.
pvUser The user argument for the callback.

Definition at line 460 of file kLdrMod.c.

References KLDRMOD_VALIDATE, KLDRMODOPS::pfnEnumResources, and KLDRMOD::pOps.

{
    KLDRMOD_VALIDATE(pMod);
    return pMod->pOps->pfnEnumResources(pMod, pvBits, BaseAddress, idType, pszType, idName, pszName, idLang, pfnCallback, pvUser);
}


Generated by  Doxygen 1.6.0   Back to index