DHookAddParam

Last Updated2021-11-17
Created At2021-11-17

Adds param to a hook setup

native void DHookAddParam(Handle setup, HookParamType type, int size = -1, DHookPassFlag flag = DHookPass_ByVal, DHookRegister custom_register = DHookRegister_Default)

Parameters

Handle setup
Setup handle to add the param to.
Param type
int size
Used for Objects (not Object ptr) to define the size of the object.
Used to change the pass type.
DHookRegister custom_register
The register this argument is passed in instead of the stack.

Return Value

void

Error

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