Is there an API I can call to...
Articles and Tips: qna
01 Dec 2002
Q.
Is there an API I can call to convert a NetWare error code to an error description?
A.
There isn't an API, but there is a DLL available that provides the functionality you're looking for. The NWERR32.DLL contains the error messages for most NetWare error codes. This DLL exports two functions:
NWstrerror() and NWstrerror2()
Both functions allow you to convert an error number into an error string and thus do the same thing, but the second function has a syntax specifically designed for easy usage from Visual Basic.
Syntax: Visual Basic Public Declare Function NWstrerror Lib "NWErr32.dll" (ByVal errno As Long) As String Public Declare Sub NWstrerror2 Lib "NWErr32.dll" (ByVal errno As Long, ByVal errStr As String) C/C++ char *NWstrerror(nuint32 errno); void NWstrerror2(nuint32 errno, pnstr8 strErr); Pascal Function NWstrerror(errno: Longint): PChar; Procedure NWstrerror2(errno: Longint; strErr: Pointer);
For more information, see http://developer.novell.com/support/sample/tids/vberrdll/vberrdll.htm
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.