Lines Matching defs:rcNt
337 NTSTATUS rcNt = NtReadVirtualMemory(hProcess, (PVOID)uPtr, pvBuf, cbRead, &cbIgn);
338 if (NT_SUCCESS(rcNt) && cbIgn != cbRead)
339 rcNt = STATUS_IO_DEVICE_ERROR;
340 return rcNt;
352 NTSTATUS rcNt = NtProtectVirtualMemory(pThis->hProcess, &pvProt, &cbProt, PAGE_READWRITE, &fOldProt);
353 if (NT_SUCCESS(rcNt))
356 rcNt = NtWriteVirtualMemory(pThis->hProcess, pvRestoreAddr, pbFile, cbToRestore, &cbIgnored);
361 if (NT_SUCCESS(rcNt))
362 rcNt = rcNt2;
365 return rcNt;
424 NTSTATUS rcNt = supHardNtVpReadMem(pThis->hProcess, pImage->uImageBase + uRva, pbMemory, cbThis);
425 if (!NT_SUCCESS(rcNt))
429 iSh >= 0 ? (char *)pThis->aSecHdrs[iSh].Name : "headers", rcNt);
458 rcNt = supHardNtVpFileMemRestore(pThis, pvRestoreAddr, pbFile, cbThis, fCorrectProtection);
459 if (NT_SUCCESS(rcNt))
464 pImage->pszName, cbThis, pvRestoreAddr, uRva, iSh + 1, pachSectNm, rcNt,
1047 NTSTATUS rcNt = NtQueryInformationThread(hThread, ThreadAmILastThread, &fAmI, sizeof(fAmI), &cbIgn);
1048 if (!NT_SUCCESS(rcNt))
1050 "NtQueryInformationThread/ThreadAmILastThread -> %#x", rcNt);
1077 NTSTATUS rcNt = NtQueryInformationProcess(hProcess,
1080 if (!NT_SUCCESS(rcNt))
1082 "NtQueryInformationProcess/ProcessDebugPort -> %#x", rcNt);
1185 NTSTATUS rcNt = NtCreateFile(&hDir,
1197 if (NT_SUCCESS(rcNt))
1206 rcNt = NtQueryDirectoryFile(hDir,
1217 if (NT_SUCCESS(rcNt) && puBuf->Info.NextEntryOffset == 0) /* There shall only be one entry matching... */
1417 NTSTATUS rcNt = NtUnmapViewOfSection(pThis->hProcess, pMemInfo->AllocationBase);
1418 if (NT_SUCCESS(rcNt))
1421 SUP_DPRINTF(("supHardNtVpScanVirtualMemory: NtUnmapViewOfSection(,%p) failed: %#x\n", pMemInfo->AllocationBase, rcNt));
1558 NTSTATUS rcNt;
1570 rcNt = g_pfnNtQueryVirtualMemory(hProcess,
1576 if (!NT_SUCCESS(rcNt))
1602 rcNt = supHardNtVpReadMem(hProcess, uCopySrc, pvCopy, cbCopy);
1603 if (!NT_SUCCESS(rcNt))
1605 "Error reading data from original alloc: %#x (%p LB %#zx)", rcNt, uCopySrc, cbCopy, rcNt);
1616 rcNt = NtFreeVirtualMemory(hProcess, &pvFreeInOut, &cbFreeInOut, MEM_RELEASE);
1617 if (NT_SUCCESS(rcNt))
1620 rcNt, pvFree, pvFreeInOut, cbFreeInOut));
1625 SUP_DPRINTF(("supHardNtVpFreeOrReplacePrivateExecMemory: Free attempt #1 failed: %#x [%p LB 0]\n", rcNt, pvFree));
1629 rcNt = NtFreeVirtualMemory(hProcess, &pvFreeInOut, &cbFreeInOut, MEM_RELEASE);
1630 if (NT_SUCCESS(rcNt))
1633 rcNt, pvFree, pvFreeInOut, cbFree, cbFreeInOut));
1639 rcNt, pvFree, cbFree));
1643 rcNt = NtFreeVirtualMemory(hProcess, &pvFreeInOut, &cbFreeInOut, MEM_RELEASE);
1644 if (NT_SUCCESS(rcNt))
1655 pvFree, cbFree, pMemInfo->BaseAddress, pMemInfo->RegionSize, rcNt);
1662 if (!NT_SUCCESS(rcNt))
1685 if (NT_SUCCESS(rcNt) && (pThis->fFlags & SUPHARDNTVP_F_EXEC_ALLOC_REPLACE_WITH_RW))
1689 rcNt = NtAllocateVirtualMemory(hProcess, &pvAlloc, 0, &cbAlloc, MEM_COMMIT, PAGE_READWRITE);
1690 if (!NT_SUCCESS(rcNt))
1693 "NtAllocateVirtualMemory (%p LB %#zx) failed with rcNt=%#x allocating "
1696 pvAlloc, cbFree, rcNt);
1707 pMemInfo->BaseAddress, pMemInfo->RegionSize, pvFree, cbFree, rcNt);
1739 rcNt = NtWriteVirtualMemory(hProcess, pbDst, pbSrc, cbSrc, &cbWritten);
1740 if (NT_SUCCESS(rcNt))
1749 pMemInfo->BaseAddress, pMemInfo->RegionSize, rcNt);
1790 NTSTATUS rcNt = g_pfnNtQueryVirtualMemory(hProcess,
1796 if (!NT_SUCCESS(rcNt))
1798 if (rcNt == STATUS_INVALID_PARAMETER)
1801 "NtQueryVirtualMemory failed for %p: %#x", uPtrWhere, rcNt);
1812 rcNt = g_pfnNtQueryVirtualMemory(hProcess,
1818 if (!NT_SUCCESS(rcNt))
1820 "NtQueryVirtualMemory/MemorySectionName failed for %p: %#x", uPtrWhere, rcNt);
1910 rcNt = NtUnmapViewOfSection(hProcess, MemInfo.AllocationBase);
1911 if (!NT_SUCCESS(rcNt))
1921 MemInfo.AllocationBase, MemInfo.BaseAddress, MemInfo.RegionSize, rcNt, rcNt2);
2152 NTSTATUS rcNt = NtCreateFile(&hFile,
2163 if (NT_SUCCESS(rcNt))
2164 rcNt = Ios.Status;
2165 if (!NT_SUCCESS(rcNt))
2167 "Error opening image for scanning: %#x (name %ls)", rcNt, pUniStrPath->Buffer);
2375 NTSTATUS rcNt = NtQueryInformationProcess(hProcess, ProcessImageFileName, pUniStr, cbUniStr - sizeof(WCHAR), &cbIgn);
2376 if (NT_SUCCESS(rcNt))
2390 "NtQueryInformationProcess/ProcessImageFileName failed: %#x", rcNt);
2409 rcNt = NtQueryInformationProcess(hProcess, ProcessImageInformation, &ImageInfo, sizeof(ImageInfo), NULL);
2410 if (!NT_SUCCESS(rcNt))
2412 if ( rcNt == STATUS_INVALID_PARAMETER
2417 "NtQueryInformationProcess/ProcessImageInformation failed: %#x hProcess=%#x", rcNt, hProcess);