メイン コンテンツにスキップ

GW2FileErrorMsg

GW2FileErrorMsg 関数は、指定された session ID についてGlasswallが報告したエラーメッセージを取得します。エラーメッセージは出力バッファに格納されます。

エラーの理由が複数ある場合、この関数呼び出しで報告されるのは1つだけです。障害の詳細が必要な場合は、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 列挙値を返します。負の数は失敗を示します。