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

static int kldrModPEGetStackInfo ( PKLDRMOD  pMod,
const void *  pvBits,
KLDRADDR  BaseAddress,
PKLDRSTACKINFO  pStackInfo 
) [static]

Gets the image stack info.

Returns:
0 on success, non-zero on failure.
Parameters:
pMod 
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 stack address. There are two special values that can be used: KLDRMOD_BASEADDRESS_LINK and KLDRMOD_BASEADDRESS_MAP.
pStackInfo The stack information.

Definition at line 1107 of file kLdrModPE.c.

References KLDRSTACKINFO::Address, KLDRSTACKINFO::cbStack, KLDRSTACKINFO::cbStackThread, KLDRMODPE::Hdrs, KLDRSTACKINFO::LinkAddress, NIL_KLDRADDR, and KLDRMOD::pvData.

{
    PKLDRMODPE pModPE = (PKLDRMODPE)pMod->pvData;

    pStackInfo->Address = NIL_KLDRADDR;
    pStackInfo->LinkAddress = NIL_KLDRADDR;
    pStackInfo->cbStack = pStackInfo->cbStackThread = pModPE->Hdrs.OptionalHeader.SizeOfStackReserve;

    return 0;
}


Generated by  Doxygen 1.6.0   Back to index