PrivateForward.RemoveFunction Method

Removes a function from a private forward's call list.

bool RemoveFunction(Handle plugin, function func)

Parameters

Handle plugin

Handle of the plugin that contains the function. Pass INVALID_HANDLE to specify the calling plugin.

function func

Function to remove from forward.

Return Value

True on success, false otherwise.

Errors

Invalid or corrupt private forward handle, invalid or corrupt plugin handle, or invalid function.

Notes

Only removes one instance.

Functions will be removed automatically if their parent plugin is unloaded.