Skip to main content
Version: 16.10.0

GW2RunSession

The GW2RunSession function runs the session, using all the previously registered artifacts.

Synopsis The GW2RunSession function runs session session, using all the previously registered artifacts.

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

Returns

Returns an integer GW2_RetStatus enum value. Negative numbers indicate a failure.

Example


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