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().