Lines Matching refs:cbLen
133 size_t cbLen = RTUtf16Len(pwszSource) * sizeof(RTUTF16);
134 AssertReturn(cbLen <= USHORT_MAX, E_INVALIDARG);
140 if (cbLen <= pUnicodeDest->MaximumLength)
142 memcpy(pUnicodeDest->Buffer, pwszSource, cbLen);
143 pUnicodeDest->Length = (USHORT)cbLen;
152 pUnicodeDest->Length = (USHORT)cbLen;
583 ULONG cbLen = 0;
584 if ( TranslateNameW(pwszName, NameUnknown, NameUserPrincipal, NULL, &cbLen)
585 && cbLen > 0)
587 VBoxCredProvVerbose(0, "VBoxCredProvCredential::GetAccountName: Translated ADS name has %u characters\n", cbLen));
589 ppwszAccoutName = (PWSTR)RTMemAlloc(cbLen * sizeof(WCHAR));
591 if (TranslateNameW(pwszName, NameUnknown, NameUserPrincipal, ppwszAccoutName, &cbLen))