Translates an HRESULT value into an appropriate error message for the specified culture.
This method supersedes the following functions:
HRESULT LoadErrorString( [in] UINT iResourceID, [out, size_is(*pcchBuffer)] LPWSTR pwzBuffer, [in, out] DWORD *pcchBuffer, [in, lcid] LONG iLocaleID);
[in] The HRESULT to translate.
[out] The message string associated with the given HRESULT.
[in, out] The size of
pwzbuffer to avoid buffer overruns. If
pwzbuffer is null,
pcchBuffer provides the expected size of
pwzbuffer to allow preallocation.
[in] The culture identifier. To use the default culture, you must specify -1.
This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.
|S_OK||The method completed successfully.|
Platforms: See System Requirements.
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 4