मुख्य सामग्री पर जाएँ

GW2RunSession

GW2RunSession फ़ंक्शन, पहले से पंजीकृत सभी artifacts का उपयोग करते हुए, session चलाता है।

Synopsis GW2RunSession फ़ंक्शन, पहले से पंजीकृत सभी artifacts का उपयोग करते हुए, session session चलाता है।

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

रिटर्न

एक पूर्णांक GW2_RetStatus enum मान लौटाता है। नकारात्मक संख्याएँ विफलता को दर्शाती हैं।

उदाहरण


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