Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

LoadStringRCEx Function

Translates an HRESULT value to an appropriate error message for the specified culture.


HRESULT LoadStringRCEx (
        [in]  LCID    lcid, 
        [in]  UINT    iResouceID, 
        [out] LPWSTR  szBuffer, 
        [in]  int     iMax, 
        [in]  int     bQuiet, 
        [out] int    *pcwchUsed
);

Parameters

lcid

[in] A culture identifier. Pass -1 for lcid to use the default culture.

iResourceID

[in] An HRESULT.

szBuffer

[out] A buffer that contains the error message upon successful completion.

iMax

[in] The size of the error message buffer.

bQuiet

[in] Ignored.

pcwchUsed

[out] A pointer to the length of the error message.

This method returns standard Component Object Model (COM) error codes, as defined in WinError.h, in addition to the following values.

Return code Description

S_OK

The method completed successfully.

E_INVALIDARG

szBuffer is null, or iMax is zero (0).

If the method does not complete successfully, szBuffer contains an empty string.

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: MSCorEE.dll

.NET Framework Version: 2.0

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.