//-------------------------------------------------------------------------------- bool CJob::ContainsProcess( CProcess& Process, int& iResult ) { _WINQ_FCONTEXT( "CJob::ContainsProcess" ); bool bResult = false; __QOR_PROTECT { bResult = CKernel32::IsProcessInJob( const_cast< void* >( Process.ProcessHandle().Use() ), m_Handle.Use(), &iResult ) ? true : false; }__QOR_ENDPROTECT return bResult; }
//-------------------------------------------------------------------------------- bool CJob::AssignProcess( CProcess& Process ) { _WINQ_FCONTEXT( "CJob::AssignProcess" ); bool bResult = false; __QOR_PROTECT { bResult = CKernel32::AssignProcessToJobObject( m_Handle.Use(), const_cast< void* >( Process.ProcessHandle().Use() ) ) ? true : false; }__QOR_ENDPROTECT return bResult; }