pid/process.h
// Searches a process by a given Process Identifier
// Capture() must have been called before!
Searches a process by a given Process Identifier
Capture() must have been called before!
Searches a process by a given Process Identifier Capture () must have been called before!
SYSTEM_PROCESS* FindProcessByPid(HANDLE pid)
	{
		if (!mp_Data)
		{
			assert(mp_Data);
			return NULL;
		}
		SYSTEM_PROCESS* pk_Proc = (SYSTEM_PROCESS*)mp_Data;
		while (TRUE)
		{
			if (pk_Proc->UniqueProcessId == pid)
				return pk_Proc;
			if (!pk_Proc->NextEntryOffset)
				return NULL;
			pk_Proc = (SYSTEM_PROCESS*)((BYTE*)pk_Proc + pk_Proc->NextEntryOffset);
		}
	}
SYSTEM_PROCESS * FindProcessByPid ( HANDLE pid ) { if ( ! mp_Data ) { assert ( mp_Data ) ; return NULL ; } SYSTEM_PROCESS * pk_Proc = ( SYSTEM_PROCESS * ) mp_Data ; while ( TRUE ) { if ( pk_Proc -> UniqueProcessId == pid ) return pk_Proc ; if ( ! pk_Proc -> NextEntryOffset ) return NULL ; pk_Proc = ( SYSTEM_PROCESS * ) ( ( BYTE * ) pk_Proc + pk_Proc -> NextEntryOffset ) ; } }
Searches a process by a given Process Identifier
Capture() must have been called before!
Searches a process by a given Process Identifier Capture () must have been called before!