PECompact 2
API Hook Plug-ins
InitializeEx (optional)
DWORD InitializeEx(PEC_HOST_INFO *pHostInfo);
InitializeEx is an optional
function that allows for retrieval of enhanced runtime information about the
compressed module. It is provided a
PEC_HOST_INFO object after reconstruction has completed. Note that
Initialize is invoked before reconstruction of the compressed module.
Since code is injected into compressed executables, it can not reference anything outside the bounds of the HOOK_DATA object or reference anything by static addresses, since those addresses will change. Therefore, it inherently can not have any references that require a base relocation.
pHostInfo is a pointer to a PEC_HOST_INFO object.