PECompact 2
API Hook Plug-ins


GetHookFlags

DWORD WINAPI GetHookFlags();

This function returns flags associated with the API hook plug-in.

Currently there is only one flag, PEC2_HOOKS_FLAG_MANDATE_LAST_IN_ORDER (1). If this flag is given, the API hook plug-in will be mandated the lowest in the chain order of all hook plug-ins attached to the module. This means that all other API hook plug-ins will be called prior to it. If two or more plug-ins require last in order status, an error will result.

If the hook plug-in does not need to be the last in the chain order, then it should return 0.