PECompact 2
API Hook Plug-ins
HOOK_DATA object
typedef struct _HOOK_DATA
{
HOOK_DATA_INFO m_HookDataInfo;
unsigned char m_szCodeAndData[0];
} HOOK_DATA;
This data object encapsulates all code and
data of the API hook plug-in. It is this data object that is injected into
compressed executables. It is prefixed with a
HOOK_DATA_INFO object that describes the code and data.
A pointer to this object is retrieved with GetPointerToHookData and its size
retrieved by GetHookDataSize.
m_HookDataInfo describes the rest of the
data block. See the HOOK_DATA_INFO documentation
for more information.
m_szCodeAndData is all the code and data of the API hook plug-in. It has
no predefined size.