Skip to main content
Version: 16.8.2

GW2FileSessionStatus

The GW2FileSessionStatus function provides a string that describes, at a high level, the processing carried out on the last file processed in the supplied session.


#include "glasswall.core2.api.h"

int GW2FileSessionStatus(
Session session,
int *glasswallSessionStatus,
char **statusMsgBuffer,
size_t *statusBufferLength);

Parameters

session The ID of the session as returned by GW2OpenSession

glasswallSessionStatus An integer output parameter describing the return status of the session as it relates to the last file that was processed. See the Return Types table for an explanation of glasswallSessionStatus.

statusMsgBuffer A string pointer output parameter which is populated with a high level description of the processing carried out on the last file processed by the session. Eg "Sanitisation Applied, Remedies Applied". The memory used by this pointer does not need to be freed by the user.

statusBufferLength An output parameter which is populated with the size in bytes of the memory pointed to by statusMsgBuffer.

Returns

  Returns an integer indicating whether the function call was successful. Negative numbers indicate a failure. See the Return Types table for an explanation of the return codes. If session is invalid glasswallSessionStatus, statusMsgBuffer and statusBufferLength will be undefined.