CHString::LoadStringW(UINT,LPWSTR,UINT) method (chstring.h)
[The CHString class is part of the WMI Provider Framework which is now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.]
The LoadStringW method reads a Windows string resource (identified by nID) into an existing CHString object.
Syntax
int throw(CHeap_Exception) LoadStringW(
UINT nID,
LPWSTR lpszBuf,
UINT nMaxBuf
);
Parameters
nID
Windows string resource identifier.
lpszBuf
The buffer into which the string resource is read.
nMaxBuf
The maximum number of bytes that can be read into the buffer.
Return value
If the LoadStringW method is successful, the resource string is loaded into the CHString object, and the method returns a nonzero value. If the method is unsuccessful, it returns zero.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | chstring.h (include FwCommon.h) |
Library | FrameDyn.lib |
DLL | FrameDynOS.dll; FrameDyn.dll |