Lines Matching defs:pUniStr

512  * @param   pUniStr             String to hash.
514 static uint32_t supR3HardenedWinVerifyCacheHashPath(PCUNICODE_STRING pUniStr)
517 unsigned cwcLeft = pUniStr->Length / sizeof(WCHAR);
518 PRTUTF16 pwc = pUniStr->Buffer;
601 * @param pUniStr The full path of the image.
608 static void supR3HardenedWinVerifyCacheInsert(PCUNICODE_STRING pUniStr, HANDLE hFile, int rc,
614 PVERIFIERCACHEENTRY pEntry = (PVERIFIERCACHEENTRY)RTMemAllocZ(sizeof(VERIFIERCACHEENTRY) + pUniStr->Length);
620 pEntry->uHash = supR3HardenedWinVerifyCacheHashPath(pUniStr);
625 pEntry->cbPath = pUniStr->Length;
626 memcpy(pEntry->wszPath, pUniStr->Buffer, pUniStr->Length);
627 pEntry->wszPath[pUniStr->Length / sizeof(WCHAR)] = '\0';
644 SUP_DPRINTF(("supR3HardenedWinVerifyCacheInsert: %ls\n", pUniStr->Buffer));
669 * @param pUniStr The full path of the image.
672 static PVERIFIERCACHEENTRY supR3HardenedWinVerifyCacheLookup(PCUNICODE_STRING pUniStr, HANDLE hFile)
674 PRTUTF16 const pwszPath = pUniStr->Buffer;
675 uint16_t const cbPath = pUniStr->Length;
676 uint32_t uHash = supR3HardenedWinVerifyCacheHashPath(pUniStr);
2940 * @param pUniStr Unicode string structure to initialize to the
3628 * @param pUniStr The zero terminated NT unicode string path.
3631 static bool supR3HardNtIsNamedSystem32Dll(PUNICODE_STRING pUniStr, const char *pszName)
3633 if (pUniStr->Length > g_System32NtPath.UniStr.Length)
3635 if (memcmp(pUniStr->Buffer, g_System32NtPath.UniStr.Buffer, g_System32NtPath.UniStr.Length) == 0)
3637 if (pUniStr->Buffer[g_System32NtPath.UniStr.Length / sizeof(WCHAR)] == '\\')
3639 if (RTUtf16ICmpAscii(&pUniStr->Buffer[g_System32NtPath.UniStr.Length / sizeof(WCHAR) + 1], pszName) == 0)