Skip to main content
Version: 16.8.2

GW2RegisterInputFile

The GW2RegisterInputFile function registers a path to the file to be processed in a session.

Synopsis

The GW2RegisterInputFile function registers the file to be processed in session session. The file name is the string pointed to by inputFilePath.

#include "glasswall.core2.api.h"
int GW2RegisterInputFile(Session session, const char *inputFilePath);

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
{
if (GW2RegisterInputFile(session, "filename.doc") < 0)
/* deal with error */
else
/* continue processing */
...
}

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