Skip to main content
Version: 16.10.0

GW2DetermineFileTypeFromMemory

The GW2DetermineFileTypeFromMemory function determines the file type of the file whose content is in the buffer held in memory.

Synopsis

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

Returns

If GW2DetermineFileTypeFromMemory cannot discern the file type, it returns the value of the enumeration constant ft_unknown from the enumerated type ft_t ; otherwise, it returns a value from the enumerated type ft_t indicating the file type. A list of the enumeration constants is in the C source header file filetype.h.