Skip to main content
Version: 16.10.0

GW2RegisterAnalysisFile

The GW2RegisterAnalysisFile registers the location to store a analysis report on disk to a Session. Using this function activates the Analysis Process for the Session.

Synopsis

The GW2RegisterAnalysisFile function stores in the file whose name is pointed to by string analysisFilePath the analysis report produced by a successful run of API function runSession that used session session. Using this function activates the Analysis Process Mode for the session.

#include "glasswall.core2.api.h"
int GW2RegisterAnalysisFile(Session session,
const char *analysisFilePath,
Analysis_format format);

Returns

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

Example


#include "glasswall.core2.api.h"

Session session = GW2OpenSession();
if (!session)
/* deal with error */
else
if (GW2RegisterAnalysisFile(session, "c:\\analysis_files\\analysis_file_023.xml", AF_XML) < 0)
/* deal with error */
else
/* analysis file registered */

/* later */
if (GW2CloseSession(session))
/* error closing session */