please dont rip this site Prev Next

WNetGetLastError info  Overview  Group

The WNetGetLastError function retrieves the most recent extended error code set by a Windows network function.

DWORD WNetGetLastError(

    LPDWORD lpError,

// pointer to error code

    LPTSTR lpErrorBuf,

// pointer to string describing error

    DWORD nErrorBufSize,

// size of description buffer, in characters

    LPTSTR lpNameBuf,

// pointer to buffer for provider name

    DWORD nNameBufSize 

// size of provider name buffer

   );

Parameters

lpError
Points to the variable that receives the error code reported by the network provider. The error code is specific to the network provider.
lpErrorBuf
Points to the buffer that receives the null-terminated string describing the error.
nErrorBufSize
Specifies the size, in characters, of the buffer pointed to by the lpErrorBuf parameter. If the buffer is too small for the error string, the string is truncated but still null-terminated. A buffer of at least 256 characters is recommended.
lpNameBuf
Points to the buffer that receives the null-terminated string identifying the network provider that raised the error.
nNameBufSize
Specifies the size, in characters, of the buffer pointed to by the lpNameBuf parameter. If the buffer is too small for the error string, the string is truncated but still null-terminated.

Return Values

If the function successfully obtains the last error reported by the provider, the return value is NO_ERROR. If the caller supplies an invalid buffer, it is ERROR_INVALID_ADDRESS.

Remarks

WNetGetLastError is used to obtain errors that are specific to a network provider. It should be used when a Windows network function (or the GetLastError function) returns ERROR_EXTENDED_ERROR. Like GetLastError, the function returns extended error information, which is maintained on a per-thread basis. Unlike GetLastError, the WNetGetLastError function can also return a string for reporting errors that are not described by any existing error code.

See Also

GetLastError 


file: /Techref/os/win/api/win32/func/src/f92_9.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/11/24 10:27,
TOP NEW HELP FIND: 
52.15.170.196:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/os/win/api/win32/func/src/f92_9.htm"> WNetGetLastError</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .