You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 26, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: src/Kernel32/desktop/Kernel32+IO_COUNTERS.cs
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright (c) All contributors. All rights reserved.
1
+
// Copyright (c) All contributors. All rights reserved.
2
2
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
4
4
namespacePInvoke
@@ -11,7 +11,9 @@ namespace PInvoke
11
11
publicpartialclassKernel32
12
12
{
13
13
/// <summary>
14
-
/// Contains I/O accounting information for a process or a job object. For a job object, the counters include all operations performed by all processes that have ever been associated with the job, in addition to all processes currently associated with the job.
14
+
/// Contains I/O accounting information for a process or a job object.
15
+
/// For a job object, the counters include all operations performed by all processes that have ever been associated with the job,
16
+
/// in addition to all processes currently associated with the job.
Copy file name to clipboardExpand all lines: src/Kernel32/desktop/Kernel32+JOBOBJECT_BASIC_LIMIT_INFORMATION.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,15 @@ namespace PInvoke
7
7
usingSystem.Runtime.InteropServices;
8
8
9
9
/// <content>
10
-
/// Contains the <see cref="JOB_OBJECT_BASIC_LIMIT_INFORMATION"/> nested type.
10
+
/// Contains the <see cref="JOBOBJECT_BASIC_LIMIT_INFORMATION"/> nested type.
11
11
/// </content>
12
12
publicpartialclassKernel32
13
13
{
14
14
/// <summary>
15
15
/// Contains basic limit information for a job object.
16
16
/// </summary>
17
17
[StructLayout(LayoutKind.Sequential)]
18
-
publicstructJOB_OBJECT_BASIC_LIMIT_INFORMATION
18
+
publicstructJOBOBJECT_BASIC_LIMIT_INFORMATION
19
19
{
20
20
/// <summary>
21
21
/// If LimitFlags specifies JOB_OBJECT_LIMIT_PROCESS_TIME, this member is the per-process user-mode execution time limit, in 100-nanosecond ticks. Otherwise, this member is ignored.
// Copyright (c) All contributors. All rights reserved.
2
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+
namespacePInvoke
5
+
{
6
+
usingSystem;
7
+
usingSystem.Runtime.InteropServices;
8
+
9
+
/// <content>
10
+
/// Contains the <see cref="JOBOBJECT_EXTENDED_LIMIT_INFORMATION"/> nested type.
11
+
/// </content>
12
+
publicpartialclassKernel32
13
+
{
14
+
/// <summary>
15
+
/// Contains basic and extended limit information for a job object.
16
+
/// </summary>
17
+
/// <remarks>
18
+
/// <para>The system tracks the value of PeakProcessMemoryUsed and PeakJobMemoryUsed constantly. This allows you know the peak memory usage of each job. You can use this information to establish a memory limit using the JOB_OBJECT_LIMIT_PROCESS_MEMORY or JOB_OBJECT_LIMIT_JOB_MEMORY value.</para>
19
+
/// <para>Note that the job memory and process memory limits are very similar in operation, but they are independent. You could set a job-wide limit of 100 MB with a per-process limit of 10 MB. In this scenario, no single process could commit more than 10 MB, and the set of processes associated with a job could never exceed 100 MB.</para>
20
+
/// <para>To register for notifications that a job has exceeded its peak memory limit while allowing processes to continue to commit memory, use the SetInformationJobObject function with the JobObjectNotificationLimitInformation information class.</para>
21
+
/// </remarks>
22
+
[StructLayout(LayoutKind.Sequential)]
23
+
publicstructJOBOBJECT_EXTENDED_LIMIT_INFORMATION
24
+
{
25
+
/// <summary>
26
+
/// A <see cref="JOBOBJECT_BASIC_LIMIT_INFORMATION"/> structure that contains basic limit information.
/// If the <see cref="JOBOBJECT_BASIC_LIMIT_INFORMATION.LimitFlags"/> member of the <see cref="JOBOBJECT_BASIC_LIMIT_INFORMATION"/> structure specifies the
37
+
/// <see cref="JOB_OBJECT_LIMIT_FLAGS.JOB_OBJECT_LIMIT_PROCESS_MEMORY"/> value, this member specifies the limit for the virtual memory that can be committed by a process.
38
+
/// Otherwise, this member is ignored.
39
+
/// </summary>
40
+
publicUIntPtrProcessMemoryLimit;
41
+
42
+
/// <summary>
43
+
/// If the <see cref="JOBOBJECT_BASIC_LIMIT_INFORMATION.LimitFlags"/> member of the <see cref="JOBOBJECT_BASIC_LIMIT_INFORMATION"/> structure specifies the
0 commit comments