주요 콘텐츠로 건너뛰기

GW2DetermineFileTypeFromMemory

GW2DetermineFileTypeFromMemory 함수는 메모리에 유지된 버퍼에 내용이 들어 있는 파일의 파일 형식을 판별합니다.

개요

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

반환값

GW2DetermineFileTypeFromMemory가 파일 형식을 식별할 수 없으면 열거형 타입 ft_t의 열거 상수 ft_unknown 값을 반환합니다. 그렇지 않으면 파일 형식을 나타내는 열거형 타입 ft_t의 값을 반환합니다. 열거 상수 목록은 C 소스 헤더 파일 filetype.h에 있습니다.