PE_loadLibraryExt

Loads a Portable Binary DLL into memory from an open file

Declaration

PE_MODULE * PEAPI PE_loadLibraryExt(
FILE *f,
ulong startOffset,
ulong *size,
ibool shared)

Prototype In

drvlib/peloader.h

Parameters

f | Handle to open file to read driver from
startOffset | Offset to the start of the driver within the file
size | Place to store the size of the driver loaded
shared | True to load module into shared memory

Return Value

Handle to loaded PE DLL, or NULL on failure.

Description

This function loads a Portable Binary DLL library from disk, relocates the code and returns a handle to the loaded library. This function is the same as the regular PE_loadLibrary except that it take a handle to an open file and an offset within that file for the DLL to load.

See Also

PE_loadLibrary, PE_getProcAddress, PE_freeLibrary

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com