#include <vxdldr.h>
LRESULT CDECL PELDR_LoadModule(PHPEMODULE phModule,
PSTR pFileName, PHLIST phList);
PELDR_ERR_FILE_UNABLETOOPEN | Unable to open the specified file. |
PELDR_ERR_MEM_NOMEMORY | Insufficient memory to complete the request. |
PELDR_ERR_IMAGE_INVALIDSIZE | Module image size is invalid. |
PELDR_ERR_IMAGE_INVALIDFORMAT | The specified file is not a valid portable executable type binary. |
PELDR_ERR_FILE_READERROR | A read error occurred while loading the file. |
Note This function does not load modules to resolve external dependencies, instead, this function assumes that the caller is loading modules in the appropriate order to resolve dynamic link dependencies. During system initialization (up to the Init_Complete notification), _PELDR_LoadModule will check the V86MMGR translation buffer state and automatically allocate a temporary global V86 data area for I/O buffering if the translation buffer does not exist.