Contents Index Topic Contents | ||
Previous Topic: WpEnumProviders Next Topic: WpListSites |
WpGetErrorString
DWORD WpGetErrorString( [in] UINT uErrCode [in, out] LPTSTR szOutputBuf [in, out] DWORD * pdwBuflen );Provides a textual explanation of the specified error code.
- Returns NO_ERROR if successful. If the error code could not be translated, returns an E_FAIL error code.
- uErrCode
- The error code to translate.
- szOutputBuf
- The error message as NULL-terminated string. If NULL or not large enough, then use the value returned in pdwBufLen to allocate the necessary buffer.
- pdwBufLen
- On entry, the size of buffer provided. On return, the required buffer size in bytes.
The error code is first looked up in Web Publishing's error message table, then in the Win32® system table. If the error code cannot be translated, the function returns E_FAIL and the buffer is filled with an "Unknown Error" message.
Examples
C/C=++{ HRESULT hResult = NOERROR; DWORD BufLen; hResult = WpGetErrorString(0, NULL, &BufLen); }
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.