AddParam

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

Adds a parameter to a hook setup.

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

Parameters

Parameter type.
int size
Used for Objects (not Object ptr) to define the size of the object.
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).

Return Value

void

Error

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