30 #define USES_CONVERSION 48 m_str = ::SysAllocStringLen(sz, nSize);
52 m_str = ::SysAllocString(pSrc);
62 m_str = ::SysAllocString(szGuid);
63 CoTaskMemFree(szGuid);
71 ::SysFreeString(
m_str);
79 ::SysFreeString(
m_str);
80 m_str = ::SysAllocString(pSrc);
86 ::SysFreeString(
m_str);
102 return ::SysAllocStringLen(
m_str, ::SysStringLen(
m_str));
109 *pbstr = ::SysAllocStringLen(
m_str, ::SysStringLen(
m_str));
127 ::SysFreeString(
m_str);
140 #ifdef NO_WCHAR_SUPPORT 151 return Append(p, SysStringLen(p));
157 b = ::SysAllocStringLen(
NULL, (
UINT)(n1+nLen));
163 SysFreeString(
m_str);
171 #ifdef NO_WCHAR_SUPPORT 178 BSTR b = ::SysAllocString(psz);
181 SysFreeString(
m_str);
190 #ifdef NO_WCHAR_SUPPORT 197 BSTR b = ::SysAllocString(psz);
200 SysFreeString(
m_str);
216 #ifdef NO_WCHAR_SUPPORT 217 return strcmp(
m_str, bstrSrc) < 0;
219 return wcscmp(
m_str, bstrSrc) < 0;
228 #ifdef NO_WCHAR_SUPPORT 229 return strcmp(
m_str, bstrSrc) == 0;
231 return wcscmp(
m_str, bstrSrc) == 0;
237 return !(*
this == bstrSrc);
245 HRESULT hr = pStream->
Write((
void*) &cbStrLen,
sizeof(cbStrLen), &
cb);
256 if ((hr ==
S_OK) && (cbStrLen != 0))
CComBSTR(REFGUID src)
Definition: Msi_ccombstr.h:58
virtual HRESULT STDMETHODCALLTYPE Write(const void __RPC_FAR *pv, ULONG cb, ULONG __RPC_FAR *pcbWritten)=0
OLECHAR __RPC_FAR * BSTR
Definition: PDCwtypes.h:401
#define REFGUID
Definition: PDCwtypes.h:318
LPOLESTR lpsz
Definition: Msi_objbase.h:85
BSTR Detach()
Definition: Msi_ccombstr.h:119
void Empty()
Definition: Msi_ccombstr.h:125
#define E_POINTER
Definition: PDCwinerror.h:141
#define s(x, c)
Definition: aesopt.h:408
Definition: Msi_ccombstr.h:34
HRESULT Append(LPCOLESTR lpsz)
Definition: Msi_ccombstr.h:138
CComBSTR()
Definition: Msi_ccombstr.h:38
HRESULT CopyTo(BSTR *pbstr)
Definition: Msi_ccombstr.h:104
void Attach(BSTR src)
Definition: Msi_ccombstr.h:114
BSTR m_str
Definition: Msi_ccombstr.h:37
HRESULT AppendBSTR(BSTR p)
Definition: Msi_ccombstr.h:149
long HRESULT
Definition: FragmentedString.h:20
HRESULT ToLower()
Definition: Msi_ccombstr.h:167
#define ATLASSERT(expr)
Definition: Msi_atldef.h:18
CComBSTR & operator+=(const CComBSTR &bstrSrc)
Definition: Msi_ccombstr.h:206
#define S_FALSE
Definition: PDCwinerror.h:32
HRESULT Append(const CComBSTR &bstrSrc)
Definition: Msi_ccombstr.h:134
unsigned int UINT
Definition: PDCwtypes.h:110
#define S_OK
Definition: PDCwinerror.h:31
Definition: Msi_objidl.h:80
CComBSTR(int nSize, LPCOLESTR sz)
Definition: Msi_ccombstr.h:46
#define FAILED(Status)
Definition: PDCwinerror.h:47
BSTR Copy() const
Definition: Msi_ccombstr.h:100
WINOLEAPI DLL_MSICOM_EXIM StringFromCLSID(REFCLSID rclsid, LPOLESTR FAR *lplpsz)
WCHAR OLECHAR
Definition: PDCwtypes.h:390
CComBSTR & operator=(LPCOLESTR pSrc)
Definition: Msi_ccombstr.h:77
BSTR * operator &()
Definition: Msi_ccombstr.h:96
bool operator!() const
Definition: Msi_ccombstr.h:130
HRESULT ReadFromStream(IStream *pStream)
Definition: Msi_ccombstr.h:250
~CComBSTR()
Definition: Msi_ccombstr.h:84
HRESULT WriteToStream(IStream *pStream)
Definition: Msi_ccombstr.h:240
#define E_FAIL
Definition: PDCwinerror.h:168
LPWSTR DLL_MSICOM_EXIM WINAPI CharLowerW(LPWSTR lpsz)
CComBSTR(LPCOLESTR pSrc)
Definition: Msi_ccombstr.h:50
HRESULT Append(LPCOLESTR lpsz, size_t nLen)
Definition: Msi_ccombstr.h:153
#define E_OUTOFMEMORY
Definition: PDCwinerror.h:114
ULONG cb
Definition: Msi_objbase.h:25
HRESULT ToUpper()
Definition: Msi_ccombstr.h:186
TCHAR __RPC_FAR * LPTSTR
Definition: PDCwtypes.h:371
bool operator!=(BSTR bstrSrc) const
Definition: Msi_ccombstr.h:235
bool operator==(BSTR bstrSrc) const
Definition: Msi_ccombstr.h:223
bool operator<(BSTR bstrSrc) const
Definition: Msi_ccombstr.h:211
virtual HRESULT STDMETHODCALLTYPE Read(void __RPC_FAR *pv, ULONG cb, ULONG __RPC_FAR *pcbRead)=0
CComBSTR & operator=(const CComBSTR &src)
Definition: Msi_ccombstr.h:66
OLECHAR __RPC_FAR * LPOLESTR
Definition: PDCwtypes.h:392
unsigned int Length() const
Definition: Msi_ccombstr.h:88
CComBSTR(const CComBSTR &src)
Definition: Msi_ccombstr.h:54
CComBSTR(int nSize)
Definition: Msi_ccombstr.h:42
const OLECHAR __RPC_FAR * LPCOLESTR
Definition: PDCwtypes.h:394
DWORD ULONG
Definition: PDCwtypes.h:127
#define NULL
Definition: Null.h:10