Lines Matching refs:OLECHAR
14 /* Win32 uses DWORD (32-bit) type to store size of string before (OLECHAR *) string.
38 /* Original SysAllocStringByteLen in Win32 maybe fills only unaligned null OLECHAR at the end.
39 We provide also aligned null OLECHAR at the end. */
41 if (len >= (k_BstrSize_Max - sizeof(OLECHAR) - sizeof(OLECHAR) - sizeof(CBstrSizeType)))
44 UINT size = (len + sizeof(OLECHAR) + sizeof(OLECHAR) - 1) & ~(sizeof(OLECHAR) - 1);
57 BSTR SysAllocStringLen(const OLECHAR *s, UINT len)
59 if (len >= (k_BstrSize_Max - sizeof(OLECHAR) - sizeof(CBstrSizeType)) / sizeof(OLECHAR))
62 UINT size = len * sizeof(OLECHAR);
63 void *p = AllocateForBSTR(size + sizeof(CBstrSizeType) + sizeof(OLECHAR));
74 BSTR SysAllocString(const OLECHAR *s)
78 const OLECHAR *s2 = s;
101 return *((CBstrSizeType *)bstr - 1) / sizeof(OLECHAR);