Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WNetGetErrorText
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
WORD WNetGetErrorText(nError, lpBuffer, nBufferSize)
WORD nError;
LPSTR lpBuffer;
WORD FAR * nBufferSize;
 
The WNetGetErrorText function returns a text description associated with a
network error code.
 
Parameter    Description
────────────────────────────────────────────────────────────────────────────
 
nError       Specifies the network error code returned by WNetGetError.
 
lpBuffer     Points to the buffer to receive the text of the error.
 
nBufferSize  Points to a variable containing the maximum number of bytes the
             buffer pointed to the lpBuffer parameter can hold. The function
             sets the variable to the actual number bytes copied to the
             buffer.
 
Return Value
 
The return value is one of the following values.
 
Value             Meaning
────────────────────────────────────────────────────────────────────────────
WN_BAD_POINTER    Invalid pointer.
 
WN_MORE_DATA      The buffer was too small.
 
WN_NET_ERROR      A network error occurred when attempting to get the text.
 
WN_NO_ERROR       No error status available.
 
WN_NOT_SUPPORTED  Function is not supported.
 
WN_OUT_OF_MEMORY  Out of memory.
 
WN_SUCCESS        Success.
 
Comments
 
The export ordinal for this function is 20.
 
See Also
 
WNetGetError