DHookAddParam Function

Adds param to a hook setup

void DHookAddParam(Handle setup, HookParamType type, int size, DHookPassFlag flag, DHookRegister custom_register)


Handle setup

Setup handle to add the param to.

HookParamType type

Param type

int size

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

DHookPassFlag flag

Used to change the pass type.

DHookRegister custom_register

The register this argument is passed in instead of the stack.


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