Skip to main content
Version: 16.9.0

GW2DetermineFileTypeAndReport

The GW2DetermineFileTypeAndReport function determines the file type for a given file and produces a report. This is not related to a session.

#include "glasswall.core2.api.h"
ft_t GW2DetermineFileTypeAndReport(const char *inputFileBuffer, size_t inputLength, const char *report)

Parameters

inputFileBuffer The memory location containing the file to be processed by this function.

inputLength The length of inputFileBuffer in bytes

report The path to a plain text file where the report will be written. If the file doesn't exist it will be created.

Returns

  Enumerated type ft_t indicating the determined file type. If the file type cannot be determined then ft_unknown will be returned.