Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
LoadStringRC Function

LoadStringRC Function

Translates an HRESULT value into an error message by using the default culture of the current thread.

This function has been deprecated in the .NET Framework 4.

HRESULT LoadStringRC (
    [in]  UINT    iResourceID, 
    [out] LPWSTR  szBuffer, 
    [in]  int     iMax, 
    [in]  int     bQuiet
);

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.

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: See .NET Framework System Requirements.

Header: MSCorEE.h

Library: MSCorEE.dll and Mscorwks.dll. Use MSCorEE.dll instead of Mscorwks.dll to ensure that you target the correct version of the .NET Framework.

.NET Framework Versions: 4.6, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

Show:
© 2015 Microsoft