示例#1
0
文件: WinQLJob.cpp 项目: chenbk85/QOR
	//--------------------------------------------------------------------------------
	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;
	}
示例#2
0
文件: WinQLJob.cpp 项目: chenbk85/QOR
	//--------------------------------------------------------------------------------
	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;
	}