_PELDR_LoadModuleEx


#include <vxdldr.h>

LRESULT CDECL PELDR_LoadModuleEx(PHPEMODULE  phModule, 
    PSTR pFileName, PHLIST phList, DWORD dwFlag);

Loads a portable executable, performs relocation fixups and resolves imports. Uses C calling conventions.

This service is similar to _PELDR_LoadModule, except that _PELDR_LoadModuleEx includes the following additional parameter:

dwFlag

Flag that specifies whether resources are freed when the portable executable is loaded. If this parameter is PELDR_LOADFLAG_FREERESOURCES, resources are freed; otherwise, they are not.