LoadLibraryXParam

The LoadLibraryXParam function can load a library or executable in the process.

function LoadLibraryXParam(
  pLibraryName: PChar;
  pReserved: PChar
): DWord; stdcall;

Parameters

pLibraryName
[in] PChar of the library which shall be loaded.
 
pReserved
[in] PChar which will be passed to the loaded library as third parameter in dllmain.

Remarks

LoadLibraryXParam does not add the library to the module table. Therefore GetModuleHandle and GetProcAddress do not work. Use GetProcAddressX instead.

 

Return Values

If the function succeeds, the return value is the handle of the library.

If the function fails, the return value is 0.

 

Requirements

Client Requires Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95.
Header

Declared in uallKernel.pas