WNetGetError

  WORD WNetGetError(nError)    
  WORD FAR * nError;    

The WNetGetError function returns the network status code from the last network operation.

Parameters

nError

Points to a variable to receive the network status code.

Return Value

The return value is one of the following values.

Value Meaning

WN_BAD_POINTER Invalid pointer.
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 19.

This is guaranteed to be correct only if the application calls immediately after receiving the network driver error status. If another application is given a chance to run, it may call the driver and the original extended error condition be overwritten.

See Also

WNetGetErrorText