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

int kLdrModQueryMainEntrypoint ( PKLDRMOD  pMod,
const void *  pvBits,
KLDRADDR  BaseAddress,
PKLDRADDR  pMainEPAddress 

Queries the main entrypoint of the module.

Only executable are supposed to have an main entrypoint, though some object and DLL formats will also allow this.

0 and *pMainEPAddress on success. Non-zero status code on failure.
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 entrypoint address. There are two special values that can be used: KLDRMOD_BASEADDRESS_LINK and KLDRMOD_BASEADDRESS_MAP.
pMainEPAddress Where to store the entry point address.

Definition at line 391 of file kLdrMod.c.

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

Referenced by BasicTestsSub2(), and kldrDyldModStartExe().

    *pMainEPAddress = 0;
    return pMod->pOps->pfnQueryMainEntrypoint(pMod, pvBits, BaseAddress, pMainEPAddress);

Generated by  Doxygen 1.6.0   Back to index