मुख्य सामग्री पर जाएँ

GW2FileErrorMsg

GW2FileErrorMsg function दिए गए session ID के लिए Glasswall द्वारा reported error message को retrieve करता है। Error message को एक output buffer में रखा जाता है।

यदि error के लिए एक से अधिक कारण थे, तो इस function call द्वारा केवल एक ही report किया जाएगा। यदि failure के लिए details आवश्यक हैं, तो वे उस analysis report में मौजूद होंगी जो तब produce होती है जब GW2RegisterAnalysisFile या GW2AnalysisRegisterMemory में से किसी एक function को session पर call किया गया हो। यदि नहीं, तो विस्तृत analysis report produce करने के लिए document को किसी अन्य session में इन्हीं functions में से किसी एक का उपयोग करके Glasswall द्वारा process किया जा सकता है।

सारांश


#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 मान लौटाता है। नकारात्मक संख्याएँ विफलता को दर्शाती हैं।