ข้ามไปยังเนื้อหาหลัก

GW2RunSession

ฟังก์ชัน GW2RunSession จะรัน session โดยใช้อาร์ติแฟกต์ทั้งหมดที่ได้ลงทะเบียนไว้ก่อนหน้านี้

Synopsis ฟังก์ชัน GW2RunSession จะรัน session session โดยใช้อาร์ติแฟกต์ทั้งหมดที่ได้ลงทะเบียนไว้ก่อนหน้านี้

#include "glasswall.core2.api.h"
int GW2RunSession(Session session);

ส่งกลับ

ส่งกลับค่า enum 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 */