Searched defs:rcNt (Results 1 - 25 of 25) sorted by relevance

/vbox/src/VBox/HostDrivers/Support/win/
H A DVBoxSupLib-win.cpp71 NTSTATUS rcNt = NtSetInformationThread(GetCurrentThread(), ThreadHideFromDebugger, NULL, 0); local
72 if (!NT_SUCCESS(rcNt))
H A DSUPR0IdcClient-win.c56 NTSTATUS rcNt; local
78 rcNt = IoCallDriver(pDeviceObject, pIrp);
79 if (rcNt == STATUS_PENDING)
81 rcNt = KeWaitForSingleObject(&Event, /* Object */
86 rcNt = IoStatusBlock.Status;
88 if (NT_SUCCESS(rcNt))
91 rc = RTErrConvertFromNtStatus(rcNt);
104 NTSTATUS rcNt; local
111 rcNt = IoGetDeviceObjectPointer(&wszDeviceName, FILE_ALL_ACCESS, &pFileObject, &pDeviceObject);
112 if (NT_SUCCESS(rcNt))
[all...]
H A DSUPR3HardenedNoCrt-win.cpp141 NTSTATUS rcNt = NtFreeVirtualMemory(NtCurrentProcess(), &pvMem, &cbMem, MEM_RELEASE); local
142 Assert(NT_SUCCESS(rcNt));
182 NTSTATUS rcNt = NtAllocateVirtualMemory(NtCurrentProcess(), &pvBlock, 0 /*ZeroBits*/, &cbBlock, MEM_COMMIT, PAGE_READWRITE); local
183 if (!NT_SUCCESS(rcNt))
184 supR3HardenedFatal("NtAllocateVirtualMemory(,,,%#zx,,) failed: rcNt=%#x\n", cbBlock, rcNt);
H A DSUPLib-win.cpp77 static int suplibConvertNtStatus(NTSTATUS rcNt);
159 NTSTATUS rcNt = NtCreateFile(&hDevice, local
170 if (NT_SUCCESS(rcNt))
171 rcNt = Ios.Status;
172 if (NT_SUCCESS(rcNt))
187 if (cTry == 0 && !NT_SUCCESS(rcNt))
198 switch (rcNt)
228 if (SUP_NT_STATUS_IS_VBOX(rcNt)) /* See VBoxDrvNtErr2NtStatus. */
229 rc = SUP_NT_STATUS_TO_VBOX(rcNt);
245 cchPrefix = RTStrPrintf(pErrInfo->pszMsg, pErrInfo->cbMsg / 2, "Integrity error (%#x/%s): ", rcNt, pszDefin
661 NTSTATUS rcNt = NtDeviceIoControlFile((HANDLE)pThis->hDevice, NULL /*hEvent*/, NULL /*pfnApc*/, NULL /*pvApcCtx*/, &Ios, local
691 NTSTATUS rcNt = NtDeviceIoControlFile((HANDLE)pThis->hDevice, NULL /*hEvent*/, NULL /*pfnApc*/, NULL /*pvApcCtx*/, &Ios, local
788 suplibConvertNtStatus(NTSTATUS rcNt) argument
[all...]
H A DSUPHardenedVerifyProcess-win.cpp337 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); local
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); local
1047 NTSTATUS rcNt = NtQueryInformationThread(hThread, ThreadAmILastThread, &fAmI, sizeof(fAmI), &cbIgn); local
1077 NTSTATUS rcNt = NtQueryInformationProcess(hProcess, local
1185 NTSTATUS rcNt = NtCreateFile(&hDir, local
1417 NTSTATUS rcNt = NtUnmapViewOfSection(pThis->hProcess, pMemInfo->AllocationBase); local
1558 NTSTATUS rcNt; local
1790 NTSTATUS rcNt = g_pfnNtQueryVirtualMemory(hProcess, local
2152 NTSTATUS rcNt = NtCreateFile(&hFile, local
2375 NTSTATUS rcNt = NtQueryInformationProcess(hProcess, ProcessImageFileName, pUniStr, cbUniStr - sizeof(WCHAR), &cbIgn); local
[all...]
H A DSUPHardenedVerifyImage-win.cpp216 NTSTATUS rcNt; local
226 rcNt = NtClearEvent(pNtViRdr->hEvent);
227 if (!NT_SUCCESS(rcNt))
228 return RTErrConvertFromNtStatus(rcNt);
237 rcNt = NtReadFile(pNtViRdr->hFile,
249 AssertMsg(rcNt == STATUS_SUCCESS || !NT_SUCCESS(rcNt), ("%#x\n", rcNt));
254 if (rcNt == STATUS_PENDING)
255 rcNt
356 NTSTATUS rcNt = NtQueryInformationFile(hFile, &Ios, &StdInfo, sizeof(StdInfo), FileStandardInformation); local
456 NTSTATUS rcNt = NtQuerySecurityObject(hFile, OWNER_SECURITY_INFORMATION, &uBuf.Abs, sizeof(uBuf), &cbActual); local
1284 NTSTATUS rcNt = NtQueryObject(hFile, local
1347 NTSTATUS rcNt = NtCreateFile(&hFile, local
1492 NTSTATUS rcNt = NtOpenKey(&hKey, KEY_QUERY_VALUE, &ObjAttr); local
1567 NTSTATUS rcNt = NtCreateFile(&hFile, local
1715 NTSTATUS rcNt = RtlInitializeSid(&g_TrustedInstallerSid, &s_NtAuth, SECURITY_SERVICE_ID_RID_COUNT); local
2328 NTSTATUS rcNt = NtCreateFile(&hFile, local
[all...]
H A DSUPDrv-win.cpp423 NTSTATUS rcNt = IoCreateDevice(pDrvObj, sizeof(SUPDRVDEVEXT), &DevName, FILE_DEVICE_UNKNOWN, 0, FALSE, &g_pDevObjSys); local
424 if (NT_SUCCESS(rcNt))
430 rcNt = IoCreateDevice(pDrvObj, sizeof(SUPDRVDEVEXTUSR), &DevName, FILE_DEVICE_UNKNOWN, 0, FALSE, &g_pDevObjUsr);
431 if (NT_SUCCESS(rcNt))
442 rcNt = IoCreateDevice(pDrvObj, sizeof(SUPDRVDEVEXTSTUB), &DevName, FILE_DEVICE_UNKNOWN, 0, FALSE, &g_pDevObjStub);
443 if (NT_SUCCESS(rcNt))
445 if (NT_SUCCESS(rcNt))
455 rcNt = IoCreateDevice(pDrvObj, sizeof(SUPDRVDEVEXTERRORINFO), &DevName, FILE_DEVICE_UNKNOWN, 0, FALSE,
457 if (NT_SUCCESS(rcNt))
461 if (NT_SUCCESS(rcNt))
553 NTSTATUS rcNt; local
688 supdrvNtCompleteRequestEx(NTSTATUS rcNt, ULONG_PTR uInfo, PIRP pIrp) argument
704 supdrvNtCompleteRequest(NTSTATUS rcNt, PIRP pIrp) argument
1066 NTSTATUS rcNt; local
1265 NTSTATUS rcNt; local
1360 NTSTATUS rcNt; local
1450 NTSTATUS rcNt; local
1972 NTSTATUS rcNt = ZwSetSystemInformation(MY_SystemUnloadGdiDriverInformation, local
2298 NTSTATUS rcNt = g_pfnPsReferenceProcessFilePointer(pProcess, &pFile); local
2398 NTSTATUS rcNt = g_pfnZwAlpcCreatePort(&hPort, &ObjAttr, NULL /*pPortAttribs*/); local
2581 NTSTATUS rcNt = ObReferenceObjectByName(&ApiPortStr, local
2874 NTSTATUS rcNt = PsLookupProcessByProcessId(hParentPid, &pStubProcess); local
3827 NTSTATUS rcNt = PsLookupProcessByProcessId(pNtStub->AvlCore.Key, &pStubProcess); local
3852 rcNt = NtClose(hStubThread); AssertMsg(NT_SUCCESS(rcNt), ("%#x\\n", rcNt)); local
3862 rcNt = NtClose(hStubProcess); AssertMsg(NT_SUCCESS(rcNt), ("%#x\\n", rcNt)); local
3905 NTSTATUS rcNt = NtQuerySystemInformation(SystemExtendedHandleInformation, pbBuf, cbBuf, &cbNeeded); local
4014 NTSTATUS rcNt = PsLookupProcessByProcessId(pHandleInfo->UniqueProcessId, &pDbgProc); local
[all...]
H A DSUPR3HardenedMain-win.cpp497 NTSTATUS rcNt = NtQueryInformationFile(hFile, &Ios, pIndexNumber, sizeof(*pIndexNumber), FileInternalInformation); local
498 if (NT_SUCCESS(rcNt))
499 rcNt = Ios.Status;
501 if (!NT_SUCCESS(rcNt))
504 return NT_SUCCESS(rcNt) && pIndexNumber->QuadPart != 0;
902 NTSTATUS rcNt; local
945 rcNt = NtCreateFile(&hFile,
956 if (NT_SUCCESS(rcNt))
957 rcNt = Ios.Status;
958 if (NT_SUCCESS(rcNt))
1173 NTSTATUS rcNt = NtQueryObject(hFile, ObjectNameInformation, &uBuf, sizeof(uBuf) - sizeof(WCHAR) - 128, &cbNameBuf); local
1469 NTSTATUS rcNt = NtCreateFile(&hFile, local
1530 NTSTATUS rcNt = supR3HardenedScreenImage(hFile, fImage, true /*fIgnoreArch*/, &fAccess, &fProtect, &fCallRealApi, local
1608 NTSTATUS rcNt; local
2010 NTSTATUS rcNt = NtCreateFile(&hFile, local
2091 NTSTATUS rcNt = LdrRegisterDllNotification(0, supR3HardenedDllNotificationCallback, NULL, &g_pvDllNotificationCookie); local
2138 NTSTATUS rcNt; local
2192 NTSTATUS rcNt = NtQueryInformationProcess(NtCurrentProcess(), ProcessBasicInformation, &BasicInfo, sizeof(BasicInfo), NULL); local
2231 NTSTATUS rcNt = NtQueryInformationThread(NtCurrentThread(), ThreadAmILastThread, &fAmIAlone, sizeof(fAmIAlone), &cbIgn); local
2348 NTSTATUS rcNt; local
2590 NTSTATUS rcNt = NtReadVirtualMemory(hProcess, pvLdrInitThunk, pabBackup, cbBackup, &cbIgnored); local
2670 NTSTATUS rcNt = NtProtectVirtualMemory(hProcess, &pvProt, &cbProt, PAGE_EXECUTE_READWRITE, &fOldProt); local
2771 NTSTATUS rcNt = NtQueryInformationToken(hToken, TokenLogonSid, &uBuf, sizeof(uBuf), &cbRet); local
3112 NTSTATUS rcNt = NtReadVirtualMemory(pThis->hProcess, (PVOID)uChildAddr, local
3299 NTSTATUS rcNt = NtClose(pThis->hThread); local
3390 NTSTATUS rcNt = NtWriteVirtualMemory(pThis->hProcess, pThis->BasicInfo.PebBaseAddress, &Peb, pThis->cbPeb, &cbActualMem); local
3466 NTSTATUS rcNt = NtQuerySystemInformation(SystemInformation_KiOpPrefetchPatchCount, local
3508 NTSTATUS rcNt = NtWriteVirtualMemory(pThis->hProcess, (PVOID)uChildAddr, &pThis->ProcParams, local
3616 NTSTATUS rcNt = NtWriteVirtualMemory(pThis->hProcess, pThis->BasicInfo.PebBaseAddress, &Peb, pThis->cbPeb, &cbActualMem); local
3674 NTSTATUS rcNt = NtQueryVirtualMemory(pThis->hProcess, local
3695 NTSTATUS rcNt = NtQueryVirtualMemory(pThis->hProcess, local
3739 NTSTATUS rcNt = NtQueryInformationProcess(pThis->hProcess, ProcessBasicInformation, local
3817 NTSTATUS rcNt; local
4079 NTSTATUS rcNt = NtOpenDirectoryObject(&hDir, DIRECTORY_QUERY | FILE_LIST_DIRECTORY, &ObjAttr); local
4147 NTSTATUS rcNt = NtCreateFile(&hFile, local
4218 NTSTATUS rcNt = NtOpenDirectoryObject(&hDir, DIRECTORY_QUERY | FILE_LIST_DIRECTORY, &ObjAttr); local
4284 NTSTATUS rcNt; local
4533 NTSTATUS rcNt; local
4767 NTSTATUS rcNt = NtCreateFile(&hFile, local
5172 NTSTATUS rcNt = NtOpenDirectoryObject(&hDir, DIRECTORY_QUERY | FILE_LIST_DIRECTORY, &ObjAttr); local
5360 NTSTATUS rcNt = NtQueryObject(hFile, ObjectNameInformation, &g_SupLibHardenedExeNtPath, local
5421 NTSTATUS rcNt = NtSetEvent(g_ProcParams.hEvtParent, NULL); local
5426 NTSTATUS rcNt = NtWaitForSingleObject(g_ProcParams.hEvtChild, FALSE /*Alertable*/, &Timeout); local
5493 NTSTATUS rcNt = pfnNtSetEvent(hEvtParent, NULL); local
[all...]
/vbox/src/VBox/Runtime/r3/nt/
H A DRTProcQueryParent-r3-nt.cpp44 NTSTATUS rcNt; local
62 rcNt = NtOpenProcess(&hClose, PROCESS_QUERY_LIMITED_INFORMATION, &ObjAttrs, &ClientId);
63 if (!NT_SUCCESS(rcNt))
64 rcNt = NtOpenProcess(&hClose, PROCESS_QUERY_INFORMATION, &ObjAttrs, &ClientId);
65 if (!NT_SUCCESS(rcNt))
66 return RTErrConvertFromNtStatus(rcNt);
76 rcNt = NtQueryInformationProcess(hNtProc, ProcessBasicInformation, &BasicInfo, sizeof(BasicInfo), &cbIgn);
77 if (NT_SUCCESS(rcNt))
83 rc = RTErrConvertFromNtStatus(rcNt);
H A Dfs-nt.cpp71 NTSTATUS rcNt = NtQueryVolumeInformationFile(hFile, &Ios, &FsSizeInfo, sizeof(FsSizeInfo), FileFsSizeInformation); local
72 if (NT_SUCCESS(rcNt))
108 rc = RTErrConvertFromNtStatus(rcNt);
148 NTSTATUS rcNt = NtQueryVolumeInformationFile(hFile, &Ios, &u, sizeof(u), FileFsVolumeInformation); local
149 if (NT_SUCCESS(rcNt))
152 rc = RTErrConvertFromNtStatus(rcNt);
192 NTSTATUS rcNt = NtQueryVolumeInformationFile(hFile, &Ios, &u, sizeof(u), FileFsAttributeInformation); local
193 if (NT_SUCCESS(rcNt))
196 rcNt = NtQueryVolumeInformationFile(hFile, &Ios, &FsDevInfo, sizeof(FsDevInfo), FileFsDeviceInformation);
197 if (NT_SUCCESS(rcNt))
262 NTSTATUS rcNt = NtQueryVolumeInformationFile(hFile, &Ios, &u, sizeof(u), FileFsAttributeInformation); local
[all...]
H A Ddirenum-r3-nt.cpp282 NTSTATUS rcNt; local
290 Ios.Status = rcNt = NtQueryDirectoryObject(pThis->hDir,
300 rcNt = NtQueryDirectoryFile(pThis->hDir,
319 rcNt = NtQueryDirectoryFile(pThis->hDir,
330 if (!NT_SUCCESS(rcNt))
333 rcNt = NtQueryDirectoryFile(pThis->hDir,
346 if (!NT_SUCCESS(rcNt))
348 if (rcNt == STATUS_NO_MORE_FILES || rcNt == STATUS_NO_MORE_ENTRIES)
350 return RTErrConvertFromNtStatus(rcNt);
[all...]
H A Dpathint-nt.cpp402 NTSTATUS rcNt = NtCreateFile(&hFile, local
413 if (NT_SUCCESS(rcNt))
421 rc = RTErrConvertFromNtStatus(rcNt);
461 NTSTATUS rcNt = NtCreateFile(&hFile, local
472 if (NT_SUCCESS(rcNt))
481 && (rcNt == STATUS_OBJECT_NAME_INVALID || rcNt == STATUS_OBJECT_TYPE_MISMATCH)
505 rcNt = NtOpenDirectoryObject(&hFile, fObjDesiredAccess, &ObjAttr);
506 if (NT_SUCCESS(rcNt))
513 rc = RTErrConvertFromNtStatus(rcNt);
532 NTSTATUS rcNt = NtClose(hHandle); local
[all...]
/vbox/src/VBox/Runtime/r0drv/nt/
H A Dthread2-r0drv-nt.cpp93 NTSTATUS rcNt = KeWaitForSingleObject(pvThreadObj, Executive, KernelMode, FALSE, NULL); local
94 AssertMsg(rcNt == STATUS_SUCCESS, ("rcNt=%#x\n", rcNt));
H A Dsemmutex-r0drv-nt.cpp138 NTSTATUS rcNt; local
140 rcNt = KeWaitForSingleObject(&pThis->Mutex, Executive, KernelMode, fInterruptible, NULL);
145 rcNt = KeWaitForSingleObject(&pThis->Mutex, Executive, KernelMode, fInterruptible, &Timeout);
147 switch (rcNt)
164 pThis->u32Magic, pThis, (long)rcNt));
H A Dthread-r0drv-nt.cpp58 NTSTATUS rcNt = KeDelayExecutionThread(KernelMode, TRUE, &Interval); local
59 switch (rcNt)
67 return RTErrConvertFromNtStatus(rcNt);
H A Dinitterm-r0drv-nt.cpp122 NTSTATUS rcNt = g_pfnrtRtlGetVersion(&VerInfo); local
123 if (NT_SUCCESS(rcNt))
H A Dmemobj-r0drv-nt.cpp319 NTSTATUS rcNt = GetExceptionCode(); local
320 Log(("rtR0MemObjNativeAllocLow: Exception Code %#x\n", rcNt));
761 NTSTATUS rcNt = GetExceptionCode(); local
762 Log(("rtR0MemObjNtMap: Exception Code %#x\n", rcNt));
H A Dmp-r0drv-nt.cpp727 NTSTATUS rcNt = KeWaitForSingleObject(&pArgs->DoneEvt, Executive, KernelMode, FALSE /* Alertable */, &Timeout); local
728 if (rcNt == STATUS_SUCCESS)
735 if (rcNt == STATUS_TIMEOUT)
746 rcNt = KeWaitForSingleObject(&pArgs->DoneEvt, Executive, KernelMode, FALSE /* Alertable */, &Timeout);
747 if (rcNt == STATUS_SUCCESS)
760 LogRel(("RTMpOnSpecific(%#x): Not processed after %llu ns: rcNt=%#x\n", idCpu, RTTimeNanoTS() - nsRealWaitTS, rcNt));
765 LogRel(("RTMpOnSpecific(%#x): Still running after %llu ns: rcNt=%#x\n", idCpu, RTTimeNanoTS() - nsRealWaitTS, rcNt));
768 rcNt
[all...]
/vbox/src/VBox/Runtime/r3/win/
H A Dinit-win.cpp196 LONG rcNt = -1; local
198 rcNt = pfnRtlGetVersion(&g_WinOsInfoEx);
199 if (rcNt != 0)
H A Dfs-win.cpp392 NTSTATUS rcNt = NtQueryVolumeInformationFile(hFile, &Ios, local
395 if (rcNt >= 0)
414 rc = RTErrConvertFromNtStatus(rcNt);
H A Dpipe-win.cpp156 NTSTATUS rcNt = NtQueryInformationFile(pThis->hPipe, &Ios, pInfo, sizeof(*pInfo), FilePipeLocalInformation); local
157 return rcNt >= 0;
/vbox/src/VBox/HostDrivers/Support/testcase/
H A DtstNtQueryStuff.cpp172 NTSTATUS rcNt = NtQueryVirtualMemory(g_hProcess, local
178 if (!NT_SUCCESS(rcNt))
180 RTTestIPrintf(RTTESTLVL_ALWAYS, "%p: rcNt=%#x\n", uPtrWhere, rcNt);
228 rcNt = NtQueryVirtualMemory(g_hProcess,
234 if (NT_SUCCESS(rcNt))
239 RTTestIPrintf(RTTESTLVL_ALWAYS, "%p: MemorySectionName - rcNt=%#x\n", uPtrWhere, rcNt);
240 RTTESTI_CHECK(rcNt == STATUS_FILE_INVALID && MemInfo.Type == MEM_MAPPED);
258 NTSTATUS rcNt; local
267 RTTESTI_CHECK_MSG(NT_SUCCESS(rcNt), ("rcNt=%#x\\n", rcNt)); local
291 RTTESTI_CHECK_MSG(NT_SUCCESS(rcNt), ("rcNt=%#x\\n", rcNt)); local
306 RTTESTI_CHECK_MSG(NT_SUCCESS(rcNt), ("rcNt=%#x\\n", rcNt)); local
314 RTTESTI_CHECK_MSG(NT_SUCCESS(rcNt), ("rcNt=%#x\\n", rcNt)); local
332 RTTESTI_CHECK_MSG(NT_SUCCESS(rcNt), ("rcNt=%#x\\n", rcNt)); local
348 RTTESTI_CHECK_MSG(NT_SUCCESS(rcNt), ("rcNt=%#x\\n", rcNt)); local
[all...]
/vbox/src/VBox/Additions/common/VBoxService/
H A DVBoxServiceVMInfo-win.cpp563 NTSTATUS rcNt = LsaGetLogonSessionData(pSession, &pSessionData); local
564 if (rcNt != STATUS_SUCCESS)
566 VBoxServiceError("Could not get logon session data! rcNt=%#x\n", rcNt);
665 NTSTATUS rcNt = LsaGetLogonSessionData(pSession, &pSessionData); local
666 if (rcNt != STATUS_SUCCESS)
668 ULONG ulError = LsaNtStatusToWinError(rcNt);
1026 NTSTATUS rcNt = LsaEnumerateLogonSessions(&cSessions, &paSessions);
1027 if (rcNt != STATUS_SUCCESS)
1029 ULONG ulError = LsaNtStatusToWinError(rcNt);
[all...]
/vbox/src/VBox/HostDrivers/Support/
H A DSUPR3HardenedMain.cpp1079 NTSTATUS rcNt = NtFlushBuffersFile(g_hStartupLog, &Ios); local
1094 rcNt = NtCreateFile(&hLogVol,
1105 if (NT_SUCCESS(rcNt))
1106 rcNt = Ios.Status;
1107 if (NT_SUCCESS(rcNt))
1110 rcNt = NtFlushBuffersFile(hLogVol, &Ios);
1118 rcNt = NtCreateFile(&hLogVol,
1129 if (NT_SUCCESS(rcNt) && NT_SUCCESS(Ios.Status))
/vbox/src/VBox/Additions/common/VBoxGuest/
H A DVBoxGuest-win.cpp383 int rc = STATUS_SUCCESS; /** @todo r=bird: s/rc/rcNt/ and s/int/NTSTATUS/. gee. */
528 NTSTATUS rcNt = vbgdNtRegistryReadDWORD(RTL_REGISTRY_SERVICES, local
530 if (NT_SUCCESS(rcNt))

Completed in 3818 milliseconds