WNetGetErrorText

  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.

Parameters

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