/// <summary> /// Determines if the given <paramref name="process"/> already belongs to <b>another</b> Job Object. /// </summary> /// <param name="process">Process to check Job Object membership of.</param> /// <returns> /// <c>true</c> if the given <paramref name="process"/> already belongs to another Job Object; /// otherwise <c>false</c>. /// </returns> private static bool HasJobObject(Process process) { return(JobObjectManager.HasJobObject(process)); }
/// <summary> /// Determines if the given <paramref name="process"/> already belongs to <b>this</b> Job Object. /// </summary> /// <param name="process">Process to check Job Object membership of.</param> /// <returns> /// <c>true</c> if the given <paramref name="process"/> already belongs to this Job Object; /// otherwise <c>false</c>. /// </returns> private bool AlreadyAssigned(Process process) { return(JobObjectManager.IsProcessInJob(process, _jobObjectHandle)); }