ChangeReloc

The ChangeReloc function changes all relocations inside an library or executable.

procedure ChangeReloc(
  POrigBase: Pointer;
  PBaseTemp: Pointer;
  PReloc: Pointer;
  PBaseTarget: Pointer
); stdcall;

 

Parameters

POrigBase
[in] Pointer to the base where the library/executable is normaly loaded.
 
 
PBaseTemp
[in] Pointer to the base where the library is loaded now.
 
 
PReloc
[in] Pointer to relocation table.
 
PBaseTarget
[in] Pointer to the base where the library/executbale is used later. If it is used inside the same process, pBaseTarget can have the same address like pBaseTemp.
 

Remarks

If the library/executable has no relocation table (PReloc is nil) nothing is done.

 

Return Values

-

 

Requirements

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

Declared in uallKernel.pas