Home
last modified time | relevance | path

Searched refs:CurrentProcess (Results 1 – 25 of 30) sorted by relevance

12

/reactos/ntoskrnl/ps/
H A Dkill.c455 PEPROCESS CurrentProcess; in PspExitThread() local
469 CurrentProcess = Thread->ThreadsProcess; in PspExitThread()
525 if (!(--CurrentProcess->ActiveThreads)) in PspExitThread()
540 CurrentProcess->ExitStatus = CurrentProcess-> in PspExitThread()
720 if (CurrentProcess->ExceptionPort) in PspExitThread()
800 MmDeleteTeb(CurrentProcess, Teb); in PspExitThread()
838 ObKillProcess(CurrentProcess); in PspExitThread()
841 if (CurrentProcess->SectionObject) in PspExitThread()
849 if (CurrentProcess->Job) in PspExitThread()
852 PspExitProcessFromJob(CurrentProcess->Job, CurrentProcess); in PspExitThread()
[all …]
H A Ddebug.c23 PLIST_ENTRY CurrentThread, CurrentProcess; in PspDumpThreads() local
29 CurrentProcess = PsActiveProcessHead.Flink; in PspDumpThreads()
30 while(CurrentProcess != &PsActiveProcessHead) in PspDumpThreads()
33 Process = CONTAINING_RECORD(CurrentProcess, EPROCESS, ActiveProcessLinks); in PspDumpThreads()
107 CurrentProcess = CurrentProcess->Flink; in PspDumpThreads()
H A Djob.c264 PEPROCESS CurrentProcess; in NtCreateJobObject() local
270 CurrentProcess = PsGetCurrentProcess(); in NtCreateJobObject()
310 Job->SessionId = PsGetProcessSessionId(CurrentProcess); in NtCreateJobObject()
579 PEPROCESS CurrentProcess; in NtQueryInformationJobObject() local
581 CurrentProcess = (PEPROCESS)CurrentThread->ApcState.Process; in NtQueryInformationJobObject()
582 Job = CurrentProcess->Job; in NtQueryInformationJobObject()
/reactos/modules/rosapps/applications/sysutils/utils/ps/
H A Dps.c182 PSYSTEM_PROCESSES CurrentProcess; in main() local
210 CurrentProcess = SystemProcesses; in main()
211 while (CurrentProcess->NextEntryOffset != 0) in main()
220 ptime.QuadPart = CurrentProcess->KernelTime.QuadPart; in main()
225 ptime.QuadPart = CurrentProcess->UserTime.QuadPart; in main()
233 CurrentProcess->UniqueProcessId, CurrentProcess->InheritedFromUniqueProcessId, in main()
240 for (ti = 0; ti < CurrentProcess->NumberOfThreads; ti++) in main()
246 ptime = CurrentProcess->Threads[ti].KernelTime; in main()
251 ptime = CurrentProcess->Threads[ti].UserTime; in main()
266 CurrentProcess->Threads[ti].ClientId.UniqueThread, in main()
[all …]
/reactos/dll/win32/ws2_32/src/
H A Dstartup.c118 PWSPROCESS CurrentProcess; in WSAStartup() local
212 CurrentProcess = WsGetProcess(); in WSAStartup()
213 if (CurrentProcess) break; in WSAStartup()
228 CurrentProcess = WsGetProcess(); in WSAStartup()
229 if (!CurrentProcess) in WSAStartup()
241 WsProcSetVersion(CurrentProcess, wVersionRequested); in WSAStartup()
244 InterlockedIncrement(&CurrentProcess->RefCount); in WSAStartup()
245 DPRINT("WSAStartup RefCount = %ld\n", CurrentProcess->RefCount); in WSAStartup()
/reactos/ntoskrnl/mm/ARM3/
H A Dpagfault.c916 ASSERT(CurrentProcess > HYDRA_PROCESS); in MiResolvePageFileFault()
920 MI_SET_PROCESS(CurrentProcess); in MiResolvePageFileFault()
1715 PEPROCESS CurrentProcess; in MmArmAccessFault() local
1919 CurrentProcess = NULL; in MmArmAccessFault()
1936 CurrentProcess = HYDRA_PROCESS; in MmArmAccessFault()
2291 MI_SET_PROCESS(CurrentProcess); in MmArmAccessFault()
2632 CurrentProcess, in MmArmAccessFault()
2660 if (CurrentProcess->Flags.ExecuteDisable) in MmGetExecuteOptions()
2665 if (CurrentProcess->Flags.ExecuteEnable) in MmGetExecuteOptions()
2675 if (CurrentProcess->Flags.Permanent) in MmGetExecuteOptions()
[all …]
H A Dvadnode.c291 PEPROCESS CurrentProcess; in MiInsertVadEx() local
300 CurrentProcess = PsGetCurrentProcess(); in MiInsertVadEx()
303 KeAcquireGuardedMutex(&CurrentProcess->AddressCreationLock); in MiInsertVadEx()
304 if (CurrentProcess->VmDeleted) in MiInsertVadEx()
398 MiLockProcessWorkingSetUnsafe(CurrentProcess, CurrentThread); in MiInsertVadEx()
401 CurrentProcess->VadRoot.NodeHint = Vad; in MiInsertVadEx()
405 MiUnlockProcessWorkingSetUnsafe(CurrentProcess, CurrentThread); in MiInsertVadEx()
408 CurrentProcess->VirtualSize += ViewSize; in MiInsertVadEx()
409 if (CurrentProcess->VirtualSize > CurrentProcess->PeakVirtualSize) in MiInsertVadEx()
411 CurrentProcess->PeakVirtualSize = CurrentProcess->VirtualSize; in MiInsertVadEx()
[all …]
H A Dsession.c95 PEPROCESS CurrentProcess; in _IRQL_requires_max_() local
99 CurrentProcess = PsGetCurrentProcess(); in _IRQL_requires_max_()
100 if ((CurrentProcess->Vm.Flags.SessionLeader == 0) && in _IRQL_requires_max_()
101 (CurrentProcess->Session != NULL)) in _IRQL_requires_max_()
394 PEPROCESS CurrentProcess = PsGetCurrentProcess(); in MiSessionRemoveProcess() local
399 (CurrentProcess->Vm.Flags.SessionLeader)) in MiSessionRemoveProcess()
412 RemoveEntryList(&CurrentProcess->SessionProcessLinks); in MiSessionRemoveProcess()
923 PEPROCESS CurrentProcess; in _IRQL_requires_max_() local
939 CurrentProcess = PsGetCurrentProcess(); in _IRQL_requires_max_()
940 CurrentSession = CurrentProcess->Session; in _IRQL_requires_max_()
[all …]
H A Dmdlsup.c939 PEPROCESS CurrentProcess; in MmProbeAndLockPages() local
998 CurrentProcess = PsGetCurrentProcess(); in MmProbeAndLockPages()
1005 CurrentProcess = NULL; in MmProbeAndLockPages()
1138 ASSERT(CurrentProcess == NULL); in MmProbeAndLockPages()
1158 ASSERT(CurrentProcess == PsGetCurrentProcess()); in MmProbeAndLockPages()
1169 Mdl->Process = CurrentProcess; in MmProbeAndLockPages()
1172 MiLockProcessWorkingSet(CurrentProcess, PsGetCurrentThread()); in MmProbeAndLockPages()
1341 ASSERT((CurrentProcess == NULL) || (UsePfnLock == FALSE)); in MmProbeAndLockPages()
1344 if (CurrentProcess) ASSERT(CurrentProcess->PhysicalVadRoot == NULL); in MmProbeAndLockPages()
1387 MiUnlockProcessWorkingSet(CurrentProcess, PsGetCurrentThread()); in MmProbeAndLockPages()
[all …]
H A Dvirtual.c543 PEPROCESS CurrentProcess; in MiDeleteVirtualAddresses() local
1359 PEPROCESS CurrentProcess; in MiGetPageProtection() local
3224 if (CurrentProcess != Process) in NtProtectVirtualMemory()
3386 PEPROCESS CurrentProcess; in MiLockVirtualMemory() local
3406 if (CurrentProcess->VmDeleted) in MiLockVirtualMemory()
3645 if (CurrentProcess != Process) in NtLockVirtualMemory()
3705 PEPROCESS CurrentProcess; in MiUnlockVirtualMemory() local
3725 if (CurrentProcess->VmDeleted) in MiUnlockVirtualMemory()
3981 if (CurrentProcess != Process) in NtUnlockVirtualMemory()
4654 Process = CurrentProcess; in NtAllocateVirtualMemory()
[all …]
H A Dmiarm.h2332 IN PEPROCESS CurrentProcess,
2340 IN PEPROCESS CurrentProcess
2353 IN PEPROCESS CurrentProcess,
2536 _In_ PEPROCESS CurrentProcess) in MiDeletePde() argument
2542 MiDeletePte((PMMPTE)PointerPde, MiPdeToPte(PointerPde), CurrentProcess, NULL); in MiDeletePde()
2547 MiDeletePte(MiPdeToPpe(PointerPde), PointerPde, CurrentProcess, NULL); in MiDeletePde()
2551 MiDeletePte(MiPdeToPxe(PointerPde), MiPdeToPpe(PointerPde), CurrentProcess, NULL); in MiDeletePde()
/reactos/subsystems/csr/csrsrv/
H A Dprocsup.c431 PCSR_PROCESS CurrentProcess; in CsrCreateProcess() local
463 CurrentProcess = CurrentThread->Process; in CsrCreateProcess()
478 CurrentProcess->ServerData[i], in CsrCreateProcess()
518 CsrProcess->ProcessGroupId = CurrentProcess->ProcessGroupId; in CsrCreateProcess()
529 if (!(Flags) && (CurrentProcess->DebugFlags & CsrDebugProcessChildren)) in CsrCreateProcess()
533 CsrProcess->DebugCid = CurrentProcess->DebugCid; in CsrCreateProcess()
619 CsrInsertProcess(CurrentProcess, CsrProcess); in CsrCreateProcess()
995 PCSR_PROCESS CurrentProcess = NULL; in CsrLockProcessByClientId() local
1013 if (CurrentProcess->ClientId.UniqueProcess == Pid) in CsrLockProcessByClientId()
1032 CsrLockedReferenceProcess(CurrentProcess); in CsrLockProcessByClientId()
[all …]
H A Dserver.c298 PCSR_PROCESS CurrentProcess = CsrGetClientThread()->Process; in CSR_API() local
330 Status = ServerDll->ConnectCallback(CurrentProcess, in CSR_API()
/reactos/sdk/lib/epsapi/enum/
H A Dprocesses.c244 PsaWalkNextProcess(IN PSYSTEM_PROCESS_INFORMATION CurrentProcess) in PsaWalkNextProcess() argument
246 if(CurrentProcess->NextEntryOffset == 0) in PsaWalkNextProcess()
252 … return (PSYSTEM_PROCESS_INFORMATION)((ULONG_PTR)CurrentProcess + CurrentProcess->NextEntryOffset); in PsaWalkNextProcess()
257 PsaWalkFirstThread(IN PSYSTEM_PROCESS_INFORMATION CurrentProcess) in PsaWalkFirstThread() argument
264 return (PSYSTEM_THREAD_INFORMATION)((ULONG_PTR)CurrentProcess + nOffsetOfThreads); in PsaWalkFirstThread()
/reactos/drivers/crypto/ksecdd/
H A Dcrypt.c83 PEPROCESS CurrentProcess; in KsecGetKeyData() local
91 CurrentProcess = PsGetCurrentProcess(); in KsecGetKeyData()
97 ProcessData.Process = CurrentProcess; in KsecGetKeyData()
98 ProcessData.ProcessId = CurrentProcess->UniqueProcessId; in KsecGetKeyData()
99 ProcessData.CreateTime = PsGetProcessCreateTimeQuadPart(CurrentProcess); in KsecGetKeyData()
100 ProcessData.DirectoryTableBase = CurrentProcess->Pcb.DirectoryTableBase[0]; in KsecGetKeyData()
108 Token = PsReferencePrimaryToken(CurrentProcess); in KsecGetKeyData()
/reactos/ntoskrnl/kdbg/
H A Dkdb_symbols.c82 PEPROCESS CurrentProcess; in KdbpSymFindModule() local
99 CurrentProcess = PsGetCurrentProcess(); in KdbpSymFindModule()
101 if(!CurrentProcess || !CurrentProcess->Peb || !CurrentProcess->Peb->Ldr) in KdbpSymFindModule()
104 return KdbpSymSearchModuleList(CurrentProcess->Peb->Ldr->InLoadOrderModuleList.Flink, in KdbpSymFindModule()
105 &CurrentProcess->Peb->Ldr->InLoadOrderModuleList, in KdbpSymFindModule()
H A Dkdb.c163 PEPROCESS CurrentProcess = PsGetCurrentProcess(); in KdbpOverwriteInstruction() local
176 if (CurrentProcess != Process) in KdbpOverwriteInstruction()
200 if (CurrentProcess != Process) in KdbpOverwriteInstruction()
219 if (CurrentProcess != Process) in KdbpOverwriteInstruction()
/reactos/ntoskrnl/include/internal/
H A Dps_x.h62 PspRunCreateProcessNotifyRoutines(IN PEPROCESS CurrentProcess, in PspRunCreateProcessNotifyRoutines() argument
75 CurrentProcess->InheritedFromUniqueProcessId, in PspRunCreateProcessNotifyRoutines()
76 CurrentProcess->UniqueProcessId, in PspRunCreateProcessNotifyRoutines()
/reactos/sdk/include/reactos/libs/epsapi/
H A Depsapi.h27 typedef NTSTATUS (NTAPI *PPROC_ENUM_ROUTINE)(IN PSYSTEM_PROCESS_INFORMATION CurrentProcess,
85 PsaWalkNextProcess(IN PSYSTEM_PROCESS_INFORMATION CurrentProcess);
88 PsaWalkFirstThread(IN PSYSTEM_PROCESS_INFORMATION CurrentProcess);
/reactos/modules/rosapps/applications/sysutils/utils/sdkparse/
H A Dtest.h71 IN PSYSTEM_PROCESSES CurrentProcess,
174 IN PSYSTEM_PROCESSES CurrentProcess
181 IN PSYSTEM_PROCESSES CurrentProcess
/reactos/ntoskrnl/ob/
H A Ddevicemap.c253 PEPROCESS CurrentProcess; in ObpSetCurrentProcessDeviceMap() local
258 CurrentProcess = PsGetCurrentProcess(); in ObpSetCurrentProcessDeviceMap()
259 Token = PsReferencePrimaryToken(CurrentProcess); in ObpSetCurrentProcessDeviceMap()
300 OldDeviceMap = CurrentProcess->DeviceMap; in ObpSetCurrentProcessDeviceMap()
304 CurrentProcess->DeviceMap = DeviceMap; in ObpSetCurrentProcessDeviceMap()
H A Dobref.c505 PEPROCESS CurrentProcess; in ObReferenceObjectByHandle() local
524 CurrentProcess = PsGetCurrentProcess(); in ObReferenceObjectByHandle()
525 GrantedAccess = CurrentProcess->GrantedAccess; in ObReferenceObjectByHandle()
543 ObjectHeader = OBJECT_TO_OBJECT_HEADER(CurrentProcess); in ObReferenceObjectByHandle()
547 *Object = CurrentProcess; in ObReferenceObjectByHandle()
/reactos/ntoskrnl/ex/
H A Dkeyedevt.c121 PEPROCESS CurrentProcess; in _IRQL_requires_max_() local
128 CurrentProcess = PsGetCurrentProcess(); in _IRQL_requires_max_()
132 HashIndex ^= (ULONG_PTR)CurrentProcess >> 6; in _IRQL_requires_max_()
164 if ((Thread->Tcb.Process == &CurrentProcess->Pcb) && in _IRQL_requires_max_()
/reactos/ntoskrnl/mm/
H A Dmarea.c300 PEPROCESS CurrentProcess = PsGetCurrentProcess(); in MmFreeMemoryArea() local
303 if ((Process != NULL) && (Process != CurrentProcess)) in MmFreeMemoryArea()
367 if ((Process != NULL) && (Process != CurrentProcess)) in MmFreeMemoryArea()
/reactos/ntoskrnl/ke/i386/
H A Dv86vdm.c739 PKPROCESS CurrentProcess; in Ke386SetIoAccessMap() local
751 CurrentProcess = Prcb->CurrentThread->ApcState.Process; in Ke386SetIoAccessMap()
752 KeGetPcr()->TSS->IoMapBase = CurrentProcess->IopmOffset; in Ke386SetIoAccessMap()

12