DHookSetup.AddParam Method

Adds a parameter to a hook setup.

void AddParam(HookParamType type, int size, DHookPassFlag flag, DHookRegister custom_register)

Parameters

HookParamType type

Parameter type.

int size

Used for Objects (not Object ptr) to define the size of the object.

DHookPassFlag flag

Used to change the pass type (ignored by detours).

DHookRegister custom_register

The register this argument is passed in instead of the stack (ignored by vhooks).

Errors

Invalid setup handle or too many params added (request upping the max in thread).