Esempio n. 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);
Esempio n. 3
0
 public static extern bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass,
                                                   ref JOBOBJECT_ASSOCIATE_COMPLETION_PORT lpJobObjectInfo, uint cbJobObjectInfoLength);
Esempio n. 4
0
 public static extern bool SetInformationJobObject(
     SafeFileHandle hJob,
     JOBOBJECTINFOCLASS JobObjectInfoClass,
     ref JOBOBJECT_EXTENDED_LIMIT_INFORMATION lpJobObjectInfo,
     int cbJobObjectInfoLength
     );
Esempio n. 5
0
 public static extern bool QueryInformationJobObject(SafeHandle jobHandle, JOBOBJECTINFOCLASS infoClass, IntPtr info, UInt32 infoLength, IntPtr returnLength);
Esempio n. 6
0
 public static extern bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass, IntPtr lpJobObjectInfo, uint cbJobObjectInfoLength);
Esempio n. 7
0
 public static extern bool SetInformationJobObject(
     [InAttribute()] IntPtr hJob,
     JOBOBJECTINFOCLASS JobObjectInformationClass,
     [InAttribute()] IntPtr lpJobObjectInformation,
     uint cbJobObjectInformationLength
     );
Esempio n. 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);
Esempio n. 9
0
 public static extern bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass,
                                                   ref JOBOBJECT_CPU_RATE_CONTROL_INFORMATION lpJobObjectInfo, uint cbJobObjectInfoLength);
Esempio n. 10
0
 /// <inheritdoc />
 public unsafe bool SetInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInfoClass, void *lpJobObjectInfo, uint cbJobObjectInfoLength)
 => throw new NotImplementedException();
Esempio n. 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);
Esempio n. 12
0
 static extern bool QueryInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS type, ref JOBOBJECT_EXTENDED_LIMIT_INFORMATION limitInfo, Int32 cbJobObjectInfoLength, ref Int32 lpReturnLength);
Esempio n. 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);
Esempio n. 14
0
 public static extern bool SetInformationJobObject(
     [In] IntPtr hJob, JOBOBJECTINFOCLASS JobObjectInformationClass, [In] IntPtr lpJobObjectInformation, uint cbJobObjectInformationLength);
Esempio n. 15
0
 static extern bool QueryInformationJobObject(IntPtr hJob, JOBOBJECTINFOCLASS
                                              JobObjectInformationClass, IntPtr lpJobObjectInfo,
                                              uint cbJobObjectInfoLength, IntPtr lpReturnLength);
Esempio n. 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);