メイン コンテンツにスキップ

GW2RunSession

GW2RunSession 関数は、以前に登録されたすべてのアーティファクトを使用して、session を実行します。

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 */