public static extern bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS infoType, IntPtr lpJobObjectInfo, uint cbJobObjectInfoLength);
private static extern bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass, IntPtr lpJobObjectInfo, uint cbJobObjectInfoLength);
public static extern bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass, ref JOBOBJECT_ASSOCIATE_COMPLETION_PORT lpJobObjectInfo, uint cbJobObjectInfoLength);
public static extern bool SetInformationJobObject( SafeFileHandle hJob, JOBOBJECTINFOCLASS JobObjectInfoClass, ref JOBOBJECT_EXTENDED_LIMIT_INFORMATION lpJobObjectInfo, int cbJobObjectInfoLength );
public static extern bool QueryInformationJobObject(SafeHandle jobHandle, JOBOBJECTINFOCLASS infoClass, IntPtr info, UInt32 infoLength, IntPtr returnLength);
public static extern bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass, IntPtr lpJobObjectInfo, uint cbJobObjectInfoLength);
public static extern bool SetInformationJobObject( [InAttribute()] IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInformationClass, [InAttribute()] IntPtr lpJobObjectInformation, uint cbJobObjectInformationLength );
/// <summary> /// Retrieves limit and job state information from the job object. /// </summary> /// <param name="hJob">A handle to the job whose information is being queried</param> /// <param name="JobObjectInformationClass">The information class for the limits to be queried</param> /// <param name="lpJobObjectInfo">The limit or job state information</param> /// <param name="cbJobObjectInfoLength">The count of the job information being queried, in bytes</param> /// <param name="lpReturnLength"> /// A pointer to a variable that receives the length of data written to the structure pointed /// to by the lpJobObjectInfo parameter /// </param> /// <returns>If the function succeeds, the return value is nonzero.</returns> public static unsafe bool QueryInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInformationClass, void *lpJobObjectInfo, uint cbJobObjectInfoLength, out uint lpReturnLength) => s_nativeMethods.QueryInformationJobObject(hJob, JobObjectInformationClass, lpJobObjectInfo, cbJobObjectInfoLength, out lpReturnLength);
public static extern bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass, ref JOBOBJECT_CPU_RATE_CONTROL_INFORMATION lpJobObjectInfo, uint cbJobObjectInfoLength);
/// <inheritdoc /> public unsafe bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass, void *lpJobObjectInfo, uint cbJobObjectInfoLength) => throw new NotImplementedException();
static extern bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass, /* IntPtr lpJobObjectInfo, */ // ref JOBOBJECT_ASSOCIATE_COMPLETION_PORT info, [In] ref JOBOBJECT_EXTENDED_LIMIT_INFORMATION info, uint cbJobObjectInfoLength);
static extern bool QueryInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS type, ref JOBOBJECT_EXTENDED_LIMIT_INFORMATION limitInfo, Int32 cbJobObjectInfoLength, ref Int32 lpReturnLength);
/// <summary> /// Sets limits for a job object. /// </summary> /// <param name="hJob">A handle to the job whose limits are being set. </param> /// <param name="JobObjectInfoClass">The information class for the limits to be set. </param> /// <param name="lpJobObjectInfo">The limits or job state to be set for the job</param> /// <param name="cbJobObjectInfoLength">The size of the job information being set, in bytes.</param> /// <returns>If the function succeeds, the return value is nonzero</returns> public static unsafe bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass, void *lpJobObjectInfo, uint cbJobObjectInfoLength) => s_nativeMethods.SetInformationJobObject(hJob, JobObjectInfoClass, lpJobObjectInfo, cbJobObjectInfoLength);
public static extern bool SetInformationJobObject( [In] IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInformationClass, [In] IntPtr lpJobObjectInformation, uint cbJobObjectInformationLength);
static extern bool QueryInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInformationClass, IntPtr lpJobObjectInfo, uint cbJobObjectInfoLength, IntPtr lpReturnLength);
public static extern NtStatus NtSetInformationJobObject(SafeKernelObjectHandle JobHandle, JOBOBJECTINFOCLASS JobInfoClass, SafeBuffer JobInformation, int JobInformationLength);