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

int kLdrModOpen ( const char *  pszFilename,
PPKLDRMOD  ppMod 
)

Open a executable image by file name.

Returns:
0 on success and *ppMod pointing to a module instance. On failure, a non-zero OS specific error code is returned.
Parameters:
pszFilename The filename to open.
ppMod Where to store the module handle.

Definition at line 114 of file kLdrMod.c.

References kLdrModOpenFromRdr().

Referenced by BasicTests(), and TestModule().

{
    /*
     * Open the file using a bit provider.
     */
    PKRDR pRdr;
    int rc = kRdrOpen(&pRdr, pszFilename);
    if (!rc)
    {
        rc = kLdrModOpenFromRdr(pRdr, ppMod);
        if (!rc)
            return 0;
       kRdrClose(pRdr);
    }
    return rc;
}


Generated by  Doxygen 1.6.0   Back to index