|
6 | 6 | namespace SmartTaskbar |
7 | 7 | { |
8 | 8 | [SuppressUnmanagedCodeSecurity] |
9 | | - static class SafeNativeMethods |
| 9 | + internal static class SafeNativeMethods |
10 | 10 | { |
11 | 11 |
|
12 | 12 | public const int MSG_MAX = 0x501; |
@@ -159,26 +159,26 @@ public static void AddProcess(IntPtr handle) |
159 | 159 | [StructLayout(LayoutKind.Sequential)] |
160 | 160 | private struct JOBOBJECT_BASIC_LIMIT_INFORMATION |
161 | 161 | { |
162 | | - public Int64 PerProcessUserTimeLimit; |
163 | | - public Int64 PerJobUserTimeLimit; |
164 | | - public UInt32 LimitFlags; |
| 162 | + public long PerProcessUserTimeLimit; |
| 163 | + public long PerJobUserTimeLimit; |
| 164 | + public uint LimitFlags; |
165 | 165 | public UIntPtr MinimumWorkingSetSize; |
166 | 166 | public UIntPtr MaximumWorkingSetSize; |
167 | | - public UInt32 ActiveProcessLimit; |
168 | | - public Int64 Affinity; |
169 | | - public UInt32 PriorityClass; |
170 | | - public UInt32 SchedulingClass; |
| 167 | + public uint ActiveProcessLimit; |
| 168 | + public long Affinity; |
| 169 | + public uint PriorityClass; |
| 170 | + public uint SchedulingClass; |
171 | 171 | } |
172 | 172 |
|
173 | 173 | [StructLayout(LayoutKind.Sequential)] |
174 | 174 | private struct IO_COUNTERS |
175 | 175 | { |
176 | | - public UInt64 ReadOperationCount; |
177 | | - public UInt64 WriteOperationCount; |
178 | | - public UInt64 OtherOperationCount; |
179 | | - public UInt64 ReadTransferCount; |
180 | | - public UInt64 WriteTransferCount; |
181 | | - public UInt64 OtherTransferCount; |
| 176 | + public ulong ReadOperationCount; |
| 177 | + public ulong WriteOperationCount; |
| 178 | + public ulong OtherOperationCount; |
| 179 | + public ulong ReadTransferCount; |
| 180 | + public ulong WriteTransferCount; |
| 181 | + public ulong OtherTransferCount; |
182 | 182 | } |
183 | 183 |
|
184 | 184 | [StructLayout(LayoutKind.Sequential)] |
|
0 commit comments