_plugin_unregisterformatfunction

此函数用于移除插件注册的字符串格式函数。此函数只能移除之前使用 _plugin_registerformatfunction 注册的命令。

bool _plugin_unregisterformatfunction(
    int pluginHandle, //插件句柄
    const char* type  //字符串格式函数名称
);

参数

pluginHandle:

调用插件的句柄。

type:

字符串格式函数名称。

返回值

成功移除字符串格式函数时,此函数返回 true