GW2RunSession
GW2RunSession 関数は、以前に登録されたすべてのアーティファクトを使用して、session を実行します。
- C++
- C#
- Java
- Python
- JavaScript
Synopsis GW2RunSession 関数は、以前に登録されたすべてのアーティファクトを使用して、セッション session を実行します。
#include "glasswall.core2.api.h"
int GW2RunSession(Session session);
戻り値
整数の GW2_RetStatus 列挙値を返します。負の数は失敗を示します。
例
#include "glasswall.core2.api.h"
HANDLE session = GW2OpenSession();
if (!session)
/* deal with error */
else
{
/* ... register other artifacts ... */
if (GW2RunSession(session) < 0)
/* error running the session */
}
/* later */
if (GW2CloseSession(session) < 0)
/* error closing session */
概要
public int RunSession(int session)
戻り値
整数の GW2_RetStatus 列挙値を返します。負の数は失敗を示します。
概要
import com.glasswall.core2javabridge.*;
public int GW2RunSession(int session) throws GlasswallException
戻り値
GW2RunSession 関数は、GW2_RetStatus 列挙を int に変換して返します。エラーが発生した場合、値は負になります。0 または 1 は成功を示します。詳細については、API Overview/Return types を参照してください。
GlasswallException 例外は、session が無効な場合にスローされます。
概要
Glasswall セッションを実行し、ファイルの処理を開始します。
def run_session(self, session):
""" Runs the Glasswall session and begins processing of a file.
Args:
session (int): The session to run.
Returns:
status (int): The status code of the function call.
"""
戻り値
status (int): 関数呼び出しのステータス コード。
概要
この関数は、指定されたセッションを実行します。
/**
* @param {number} session The ID of the session to be run.
*/
GW2RunSession(session)
戻り値
整数の GW2_RetStatus 列挙値を返します。負の数は失敗を示します。