Example #1
0
 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);
Example #3
0
 public static extern bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass,
                                                   ref JOBOBJECT_ASSOCIATE_COMPLETION_PORT lpJobObjectInfo, uint cbJobObjectInfoLength);
Example #4
0
 public static extern bool SetInformationJobObject(
     SafeFileHandle hJob,
     JOBOBJECTINFOCLASS JobObjectInfoClass,
     ref JOBOBJECT_EXTENDED_LIMIT_INFORMATION lpJobObjectInfo,
     int cbJobObjectInfoLength
     );
Example #5
0
 public static extern bool QueryInformationJobObject(SafeHandle jobHandle, JOBOBJECTINFOCLASS infoClass, IntPtr info, UInt32 infoLength, IntPtr returnLength);
Example #6
0
 public static extern bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass, IntPtr lpJobObjectInfo, uint cbJobObjectInfoLength);
Example #7
0
 public static extern bool SetInformationJobObject(
     [InAttribute()] IntPtr hJob,
     JOBOBJECTINFOCLASS JobObjectInformationClass,
     [InAttribute()] IntPtr lpJobObjectInformation,
     uint cbJobObjectInformationLength
     );
Example #8
0
 /// <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);
Example #9
0
 public static extern bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass,
                                                   ref JOBOBJECT_CPU_RATE_CONTROL_INFORMATION lpJobObjectInfo, uint cbJobObjectInfoLength);
Example #10
0
 /// <inheritdoc />
 public unsafe bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass, void *lpJobObjectInfo, uint cbJobObjectInfoLength)
 => throw new NotImplementedException();
Example #11
0
 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);
Example #12
0
 static extern bool QueryInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS type, ref JOBOBJECT_EXTENDED_LIMIT_INFORMATION limitInfo, Int32 cbJobObjectInfoLength, ref Int32 lpReturnLength);
Example #13
0
 /// <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);
Example #14
0
 public static extern bool SetInformationJobObject(
     [In] IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInformationClass, [In] IntPtr lpJobObjectInformation, uint cbJobObjectInformationLength);
Example #15
0
 static extern bool QueryInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS
                                              JobObjectInformationClass, IntPtr lpJobObjectInfo,
                                              uint cbJobObjectInfoLength, IntPtr lpReturnLength);
Example #16
0
 public static extern bool QueryInformationJobObject(SafeHandle jobHandle, JOBOBJECTINFOCLASS infoClass, IntPtr info, UInt32 infoLength, IntPtr returnLength);
 public static extern NtStatus NtSetInformationJobObject(SafeKernelObjectHandle JobHandle, JOBOBJECTINFOCLASS JobInfoClass,
                                                         SafeBuffer JobInformation, int JobInformationLength);