주요 콘텐츠로 건너뛰기

GW2FileErrorMsg

GW2FileErrorMsg 함수는 지정된 session ID에 대해 Glasswall이 보고한 오류 메시지를 가져옵니다. 오류 메시지는 출력 버퍼에 저장됩니다.

오류의 원인이 둘 이상인 경우 이 함수 호출에서는 그중 하나만 보고됩니다. 실패에 대한 세부 정보가 필요한 경우, 세션에서 GW2RegisterAnalysisFile 또는 GW2AnalysisRegisterMemory 함수 중 하나를 호출했다면 생성된 분석 보고서에 해당 정보가 포함됩니다. 그렇지 않은 경우, 자세한 분석 보고서를 생성하기 위해 다른 세션에서 해당 함수 중 하나를 사용하여 문서를 Glasswall로 처리할 수 있습니다.

개요


#include "glasswall.core2.api.h"


// The **GW2FileErrorMsg** function retrieves the error message reported by Glasswall.
// A pointer to the error message is placed in the object pointed to by **errorMsgBuffer**
// and the size, in bytes, of the error message is placed in the **size_t** object
// pointed to by **errorMsgBufferLength**.

int GW2FileErrorMsg(
Session session,
char **errorMsgBuffer,
size_t *errorMsgBufferLength);

반환값

정수 GW2_RetStatus enum 값을 반환합니다. 음수는 실패를 나타냅니다.