跳转至

DLLOneScriptStop

函数 DLLOneScriptStop 停止指定任务中正在运行的 OneScript 程序。

所属:C/C++ API 函数索引

C/C++

ErrorCode DLLOneScriptStop(INT_PTR hClientHandle, int taskId);

C#

Controller.Tasks[taskId].OneScript.Stop() — 停止指定任务中的程序。

参数

hClientHandle (INT_PTR)

客户端会话句柄,由 DLLSysConnect 获取。

taskId (int)

目标任务编号(1-indexed)。

返回值

返回 ErrorCodeNoError (0) 表示成功,正值为错误码,详见 SDK 发布头 ErrorCode.h。

示例

DLLOneScriptStop(handle, 1);

相关函数