Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
afaf35b9
Commit
afaf35b9
authored
Mar 30, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add more SYSTEM_INFORMATION_CLASS definitions.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f2ac82b8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
179 additions
and
39 deletions
+179
-39
info.c
dlls/ntdll/tests/info.c
+5
-5
time.c
dlls/ntdll/tests/time.c
+1
-1
time.c
dlls/ntdll/time.c
+1
-1
system.c
dlls/ntdll/unix/system.c
+2
-2
winternl.h
include/winternl.h
+169
-29
perfdata.c
programs/taskmgr/perfdata.c
+1
-1
No files found.
dlls/ntdll/tests/info.c
View file @
afaf35b9
...
@@ -715,21 +715,21 @@ static void test_query_cache(void)
...
@@ -715,21 +715,21 @@ static void test_query_cache(void)
for
(
i
=
sizeof
(
buffer
);
i
>=
expected
;
i
--
)
for
(
i
=
sizeof
(
buffer
);
i
>=
expected
;
i
--
)
{
{
ReturnLength
=
0xdeadbeef
;
ReturnLength
=
0xdeadbeef
;
status
=
pNtQuerySystemInformation
(
SystemCacheInformation
,
sci
,
i
,
&
ReturnLength
);
status
=
pNtQuerySystemInformation
(
System
File
CacheInformation
,
sci
,
i
,
&
ReturnLength
);
ok
(
!
status
&&
(
ReturnLength
==
expected
),
ok
(
!
status
&&
(
ReturnLength
==
expected
),
"%d: got 0x%x and %u (expected STATUS_SUCCESS and %u)
\n
"
,
i
,
status
,
ReturnLength
,
expected
);
"%d: got 0x%x and %u (expected STATUS_SUCCESS and %u)
\n
"
,
i
,
status
,
ReturnLength
,
expected
);
}
}
/* buffer too small for the full result.
/* buffer too small for the full result.
Up to win7, the function succeeds with a partial result. */
Up to win7, the function succeeds with a partial result. */
status
=
pNtQuerySystemInformation
(
SystemCacheInformation
,
sci
,
i
,
&
ReturnLength
);
status
=
pNtQuerySystemInformation
(
System
File
CacheInformation
,
sci
,
i
,
&
ReturnLength
);
if
(
!
status
)
if
(
!
status
)
{
{
expected
=
offsetof
(
SYSTEM_CACHE_INFORMATION
,
MinimumWorkingSet
);
expected
=
offsetof
(
SYSTEM_CACHE_INFORMATION
,
MinimumWorkingSet
);
for
(;
i
>=
expected
;
i
--
)
for
(;
i
>=
expected
;
i
--
)
{
{
ReturnLength
=
0xdeadbeef
;
ReturnLength
=
0xdeadbeef
;
status
=
pNtQuerySystemInformation
(
SystemCacheInformation
,
sci
,
i
,
&
ReturnLength
);
status
=
pNtQuerySystemInformation
(
System
File
CacheInformation
,
sci
,
i
,
&
ReturnLength
);
ok
(
!
status
&&
(
ReturnLength
==
expected
),
ok
(
!
status
&&
(
ReturnLength
==
expected
),
"%d: got 0x%x and %u (expected STATUS_SUCCESS and %u)
\n
"
,
i
,
status
,
ReturnLength
,
expected
);
"%d: got 0x%x and %u (expected STATUS_SUCCESS and %u)
\n
"
,
i
,
status
,
ReturnLength
,
expected
);
}
}
...
@@ -737,7 +737,7 @@ static void test_query_cache(void)
...
@@ -737,7 +737,7 @@ static void test_query_cache(void)
/* buffer too small for the result, this call will always fail */
/* buffer too small for the result, this call will always fail */
ReturnLength
=
0xdeadbeef
;
ReturnLength
=
0xdeadbeef
;
status
=
pNtQuerySystemInformation
(
SystemCacheInformation
,
sci
,
i
,
&
ReturnLength
);
status
=
pNtQuerySystemInformation
(
System
File
CacheInformation
,
sci
,
i
,
&
ReturnLength
);
ok
(
status
==
STATUS_INFO_LENGTH_MISMATCH
&&
ok
(
status
==
STATUS_INFO_LENGTH_MISMATCH
&&
((
ReturnLength
==
expected
)
||
broken
(
!
ReturnLength
)
||
broken
(
ReturnLength
==
0xfffffff0
)),
((
ReturnLength
==
expected
)
||
broken
(
!
ReturnLength
)
||
broken
(
ReturnLength
==
0xfffffff0
)),
"%d: got 0x%x and %u (expected STATUS_INFO_LENGTH_MISMATCH and %u)
\n
"
,
i
,
status
,
ReturnLength
,
expected
);
"%d: got 0x%x and %u (expected STATUS_INFO_LENGTH_MISMATCH and %u)
\n
"
,
i
,
status
,
ReturnLength
,
expected
);
...
@@ -745,7 +745,7 @@ static void test_query_cache(void)
...
@@ -745,7 +745,7 @@ static void test_query_cache(void)
if
(
0
)
{
if
(
0
)
{
/* this crashes on some vista / win7 machines */
/* this crashes on some vista / win7 machines */
ReturnLength
=
0xdeadbeef
;
ReturnLength
=
0xdeadbeef
;
status
=
pNtQuerySystemInformation
(
SystemCacheInformation
,
sci
,
0
,
&
ReturnLength
);
status
=
pNtQuerySystemInformation
(
System
File
CacheInformation
,
sci
,
0
,
&
ReturnLength
);
ok
(
status
==
STATUS_INFO_LENGTH_MISMATCH
&&
ok
(
status
==
STATUS_INFO_LENGTH_MISMATCH
&&
((
ReturnLength
==
expected
)
||
broken
(
!
ReturnLength
)
||
broken
(
ReturnLength
==
0xfffffff0
)),
((
ReturnLength
==
expected
)
||
broken
(
!
ReturnLength
)
||
broken
(
ReturnLength
==
0xfffffff0
)),
"0: got 0x%x and %u (expected STATUS_INFO_LENGTH_MISMATCH and %u)
\n
"
,
status
,
ReturnLength
,
expected
);
"0: got 0x%x and %u (expected STATUS_INFO_LENGTH_MISMATCH and %u)
\n
"
,
status
,
ReturnLength
,
expected
);
...
...
dlls/ntdll/tests/time.c
View file @
afaf35b9
...
@@ -282,7 +282,7 @@ static void test_RtlQueryTimeZoneInformation(void)
...
@@ -282,7 +282,7 @@ static void test_RtlQueryTimeZoneInformation(void)
wine_dbgstr_w
(
tzinfo
.
DaylightName
));
wine_dbgstr_w
(
tzinfo
.
DaylightName
));
memset
(
&
tzinfo2
,
0xcc
,
sizeof
(
tzinfo2
));
memset
(
&
tzinfo2
,
0xcc
,
sizeof
(
tzinfo2
));
status
=
pNtQuerySystemInformation
(
SystemTimeZoneInformation
,
&
tzinfo2
,
status
=
pNtQuerySystemInformation
(
System
Current
TimeZoneInformation
,
&
tzinfo2
,
sizeof
(
RTL_TIME_ZONE_INFORMATION
),
&
len
);
sizeof
(
RTL_TIME_ZONE_INFORMATION
),
&
len
);
ok
(
!
status
,
"NtQuerySystemInformation failed %x
\n
"
,
status
);
ok
(
!
status
,
"NtQuerySystemInformation failed %x
\n
"
,
status
);
ok
(
len
==
sizeof
(
RTL_TIME_ZONE_INFORMATION
),
"wrong len %u
\n
"
,
len
);
ok
(
len
==
sizeof
(
RTL_TIME_ZONE_INFORMATION
),
"wrong len %u
\n
"
,
len
);
...
...
dlls/ntdll/time.c
View file @
afaf35b9
...
@@ -417,7 +417,7 @@ ULONG WINAPI DECLSPEC_HOTPATCH NtGetTickCount(void)
...
@@ -417,7 +417,7 @@ ULONG WINAPI DECLSPEC_HOTPATCH NtGetTickCount(void)
*/
*/
NTSTATUS
WINAPI
RtlQueryTimeZoneInformation
(
RTL_TIME_ZONE_INFORMATION
*
ret
)
NTSTATUS
WINAPI
RtlQueryTimeZoneInformation
(
RTL_TIME_ZONE_INFORMATION
*
ret
)
{
{
return
NtQuerySystemInformation
(
SystemTimeZoneInformation
,
ret
,
sizeof
(
*
ret
),
NULL
);
return
NtQuerySystemInformation
(
System
Current
TimeZoneInformation
,
ret
,
sizeof
(
*
ret
),
NULL
);
}
}
/***********************************************************************
/***********************************************************************
...
...
dlls/ntdll/unix/system.c
View file @
afaf35b9
...
@@ -2603,7 +2603,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
...
@@ -2603,7 +2603,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
break
;
break
;
}
}
case
SystemCacheInformation
:
case
System
File
CacheInformation
:
{
{
SYSTEM_CACHE_INFORMATION
sci
=
{
0
};
SYSTEM_CACHE_INFORMATION
sci
=
{
0
};
...
@@ -2701,7 +2701,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
...
@@ -2701,7 +2701,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
break
;
break
;
}
}
case
SystemTimeZoneInformation
:
case
System
Current
TimeZoneInformation
:
{
{
RTL_DYNAMIC_TIME_ZONE_INFORMATION
tz
;
RTL_DYNAMIC_TIME_ZONE_INFORMATION
tz
;
...
...
include/winternl.h
View file @
afaf35b9
...
@@ -1472,54 +1472,57 @@ typedef enum _SYSTEM_INFORMATION_CLASS {
...
@@ -1472,54 +1472,57 @@ typedef enum _SYSTEM_INFORMATION_CLASS {
SystemCpuInformation
=
1
,
SystemCpuInformation
=
1
,
SystemPerformanceInformation
=
2
,
SystemPerformanceInformation
=
2
,
SystemTimeOfDayInformation
=
3
,
/* was SystemTimeInformation */
SystemTimeOfDayInformation
=
3
,
/* was SystemTimeInformation */
Unknown
4
,
SystemPathInformation
=
4
,
SystemProcessInformation
=
5
,
SystemProcessInformation
=
5
,
Unknown
6
,
SystemCallCountInformation
=
6
,
Unknown
7
,
SystemDeviceInformation
=
7
,
SystemProcessorPerformanceInformation
=
8
,
SystemProcessorPerformanceInformation
=
8
,
Unknown
9
,
SystemFlagsInformation
=
9
,
Unknown
10
,
SystemCallTimeInformation
=
10
,
SystemModuleInformation
=
11
,
SystemModuleInformation
=
11
,
Unknown
12
,
SystemLocksInformation
=
12
,
Unknown
13
,
SystemStackTraceInformation
=
13
,
Unknown
14
,
SystemPagedPoolInformation
=
14
,
Unknown
15
,
SystemNonPagedPoolInformation
=
15
,
SystemHandleInformation
=
16
,
SystemHandleInformation
=
16
,
Unknown
17
,
SystemObjectInformation
=
17
,
SystemPageFileInformation
=
18
,
SystemPageFileInformation
=
18
,
Unknown
19
,
SystemVdmInstemulInformation
=
19
,
Unknown
20
,
SystemVdmBopInformation
=
20
,
SystemCacheInformation
=
21
,
System
File
CacheInformation
=
21
,
Unknown
22
,
SystemPoolTagInformation
=
22
,
SystemInterruptInformation
=
23
,
SystemInterruptInformation
=
23
,
SystemDpcBehavio
u
rInformation
=
24
,
SystemDpcBehaviorInformation
=
24
,
SystemFullMemoryInformation
=
25
,
SystemFullMemoryInformation
=
25
,
SystemNotImplemented6
=
25
,
SystemNotImplemented6
=
25
,
SystemLoad
Image
=
26
,
SystemLoad
GdiDriverInformation
=
26
,
SystemUnload
Image
=
27
,
SystemUnload
GdiDriverInformation
=
27
,
SystemTimeAdjustmentInformation
=
28
,
SystemTimeAdjustmentInformation
=
28
,
SystemTimeAdjustment
=
28
,
SystemTimeAdjustment
=
28
,
SystemSummaryMemoryInformation
=
29
,
SystemSummaryMemoryInformation
=
29
,
SystemNotImplemented7
=
29
,
SystemMirrorMemoryInformation
=
30
,
SystemNextEventIdInformation
=
30
,
SystemPerformanceTraceInformation
=
31
,
SystemNotImplemented8
=
30
,
SystemObsolete0
=
32
,
SystemEventIdsInformation
=
31
,
SystemCrashDumpInformation
=
32
,
SystemExceptionInformation
=
33
,
SystemExceptionInformation
=
33
,
SystemCrashDumpStateInformation
=
34
,
SystemCrashDumpStateInformation
=
34
,
SystemKernelDebuggerInformation
=
35
,
SystemKernelDebuggerInformation
=
35
,
SystemContextSwitchInformation
=
36
,
SystemContextSwitchInformation
=
36
,
SystemRegistryQuotaInformation
=
37
,
SystemRegistryQuotaInformation
=
37
,
SystemExtendServiceTableInformation
=
38
,
SystemPrioritySeperation
=
39
,
SystemVerifierAddDriverInformation
=
40
,
SystemVerifierRemoveDriverInformation
=
41
,
SystemProcessorIdleInformation
=
42
,
SystemLegacyDriverInformation
=
43
,
SystemCurrentTimeZoneInformation
=
44
,
SystemCurrentTimeZoneInformation
=
44
,
SystemTimeZoneInformation
=
44
,
SystemLookasideInformation
=
45
,
SystemLookasideInformation
=
45
,
System
SetTimeSlipEvent
=
46
,
System
TimeSlipNotification
=
46
,
System
CreateSession
=
47
,
System
SessionCreate
=
47
,
System
DeleteSession
=
48
,
System
SessionDetach
=
48
,
System
InvalidInfoClass4
=
49
,
System
SessionInformation
=
49
,
SystemRangeStartInformation
=
50
,
SystemRangeStartInformation
=
50
,
SystemVerifierInformation
=
51
,
SystemVerifierInformation
=
51
,
System
AddVerifier
=
52
,
System
VerifierThunkExtend
=
52
,
SystemSessionProcessesInformation
=
53
,
SystemSessionProcessesInformation
=
53
,
SystemLoadGdiDriverInSystemSpace
=
54
,
SystemLoadGdiDriverInSystemSpace
=
54
,
SystemNumaProcessorMap
=
55
,
SystemNumaProcessorMap
=
55
,
...
@@ -1541,7 +1544,7 @@ typedef enum _SYSTEM_INFORMATION_CLASS {
...
@@ -1541,7 +1544,7 @@ typedef enum _SYSTEM_INFORMATION_CLASS {
SystemWatchdogTimerHandler
=
71
,
SystemWatchdogTimerHandler
=
71
,
SystemWatchdogTimerInformation
=
72
,
SystemWatchdogTimerInformation
=
72
,
SystemLogicalProcessorInformation
=
73
,
SystemLogicalProcessorInformation
=
73
,
SystemWow64SharedInformation
=
74
,
SystemWow64SharedInformation
Obsolete
=
74
,
SystemRegisterFirmwareTableInformationHandler
=
75
,
SystemRegisterFirmwareTableInformationHandler
=
75
,
SystemFirmwareTableInformation
=
76
,
SystemFirmwareTableInformation
=
76
,
SystemModuleInformationEx
=
77
,
SystemModuleInformationEx
=
77
,
...
@@ -1549,10 +1552,147 @@ typedef enum _SYSTEM_INFORMATION_CLASS {
...
@@ -1549,10 +1552,147 @@ typedef enum _SYSTEM_INFORMATION_CLASS {
SystemSuperfetchInformation
=
79
,
SystemSuperfetchInformation
=
79
,
SystemMemoryListInformation
=
80
,
SystemMemoryListInformation
=
80
,
SystemFileCacheInformationEx
=
81
,
SystemFileCacheInformationEx
=
81
,
SystemThreadPriorityClientIdInformation
=
82
,
SystemProcessorIdleCycleTimeInformation
=
83
,
SystemVerifierCancellationInformation
=
84
,
SystemProcessorPowerInformationEx
=
85
,
SystemRefTraceInformation
=
86
,
SystemSpecialPoolInformation
=
87
,
SystemProcessIdInformation
=
88
,
SystemErrorPortInformation
=
89
,
SystemBootEnvironmentInformation
=
90
,
SystemHypervisorInformation
=
91
,
SystemVerifierInformationEx
=
92
,
SystemTimeZoneInformation
=
93
,
SystemImageFileExecutionOptionsInformation
=
94
,
SystemCoverageInformation
=
95
,
SystemPrefetchPatchInformation
=
96
,
SystemVerifierFaultsInformation
=
97
,
SystemSystemPartitionInformation
=
98
,
SystemSystemDiskInformation
=
99
,
SystemProcessorPerformanceDistribution
=
100
,
SystemNumaProximityNodeInformation
=
101
,
SystemDynamicTimeZoneInformation
=
102
,
SystemDynamicTimeZoneInformation
=
102
,
SystemCodeIntegrityInformation
=
103
,
SystemProcessorMicrocodeUpdateInformation
=
104
,
SystemProcessorBrandString
=
105
,
SystemVirtualAddressInformation
=
106
,
SystemLogicalProcessorInformationEx
=
107
,
SystemLogicalProcessorInformationEx
=
107
,
SystemProcessorCycleTimeInformation
=
108
,
SystemStoreInformation
=
109
,
SystemRegistryAppendString
=
110
,
SystemAitSamplingValue
=
111
,
SystemVhdBootInformation
=
112
,
SystemCpuQuotaInformation
=
113
,
SystemNativeBasicInformation
=
114
,
SystemErrorPortTimeouts
=
115
,
SystemLowPriorityIoInformation
=
116
,
SystemTpmBootEntropyInformation
=
117
,
SystemVerifierCountersInformation
=
118
,
SystemPagedPoolInformationEx
=
119
,
SystemSystemPtesInformationEx
=
120
,
SystemNodeDistanceInformation
=
121
,
SystemAcpiAuditInformation
=
122
,
SystemBasicPerformanceInformation
=
123
,
SystemQueryPerformanceCounterInformation
=
124
,
SystemSessionBigPoolInformation
=
125
,
SystemBootGraphicsInformation
=
126
,
SystemScrubPhysicalMemoryInformation
=
127
,
SystemBadPageInformation
=
128
,
SystemProcessorProfileControlArea
=
129
,
SystemCombinePhysicalMemoryInformation
=
130
,
SystemEntropyInterruptTimingInformation
=
131
,
SystemConsoleInformation
=
132
,
SystemPlatformBinaryInformation
=
133
,
SystemPolicyInformation
=
134
,
SystemHypervisorProcessorCountInformation
=
135
,
SystemDeviceDataInformation
=
136
,
SystemDeviceDataEnumerationInformation
=
137
,
SystemMemoryTopologyInformation
=
138
,
SystemMemoryChannelInformation
=
139
,
SystemBootLogoInformation
=
140
,
SystemProcessorPerformanceInformationEx
=
141
,
SystemCriticalProcessErrorLogInformation
=
142
,
SystemSecureBootPolicyInformation
=
143
,
SystemPageFileInformationEx
=
144
,
SystemSecureBootInformation
=
145
,
SystemEntropyInterruptTimingRawInformation
=
146
,
SystemPortableWorkspaceEfiLauncherInformation
=
147
,
SystemFullProcessInformation
=
148
,
SystemKernelDebuggerInformationEx
=
149
,
SystemBootMetadataInformation
=
150
,
SystemSoftRebootInformation
=
151
,
SystemElamCertificateInformation
=
152
,
SystemOfflineDumpConfigInformation
=
153
,
SystemProcessorFeaturesInformation
=
154
,
SystemRegistryReconciliationInformation
=
155
,
SystemEdidInformation
=
156
,
SystemManufacturingInformation
=
157
,
SystemEnergyEstimationConfigInformation
=
158
,
SystemHypervisorDetailInformation
=
159
,
SystemProcessorCycleStatsInformation
=
160
,
SystemVmGenerationCountInformation
=
161
,
SystemTrustedPlatformModuleInformation
=
162
,
SystemKernelDebuggerFlags
=
163
,
SystemCodeIntegrityPolicyInformation
=
164
,
SystemIsolatedUserModeInformation
=
165
,
SystemHardwareSecurityTestInterfaceResultsInformation
=
166
,
SystemSingleModuleInformation
=
167
,
SystemAllowedCpuSetsInformation
=
168
,
SystemVsmProtectionInformation
=
169
,
SystemInterruptCpuSetsInformation
=
170
,
SystemSecureBootPolicyFullInformation
=
171
,
SystemCodeIntegrityPolicyFullInformation
=
172
,
SystemAffinitizedInterruptProcessorInformation
=
173
,
SystemRootSiloInformation
=
174
,
SystemCpuSetInformation
=
175
,
SystemCpuSetInformation
=
175
,
SystemCpuSetTagInformation
=
176
,
SystemWin32WerStartCallout
=
177
,
SystemSecureKernelProfileInformation
=
178
,
SystemCodeIntegrityPlatformManifestInformation
=
179
,
SystemInterruptSteeringInformation
=
180
,
SystemSupportedProcessorArchitectures
=
181
,
SystemMemoryUsageInformation
=
182
,
SystemCodeIntegrityCertificateInformation
=
183
,
SystemPhysicalMemoryInformation
=
184
,
SystemControlFlowTransition
=
185
,
SystemKernelDebuggingAllowed
=
186
,
SystemActivityModerationExeState
=
187
,
SystemActivityModerationUserSettings
=
188
,
SystemCodeIntegrityPoliciesFullInformation
=
189
,
SystemCodeIntegrityUnlockInformation
=
190
,
SystemIntegrityQuotaInformation
=
191
,
SystemFlushInformation
=
192
,
SystemProcessorIdleMaskInformation
=
193
,
SystemSecureDumpEncryptionInformation
=
194
,
SystemWriteConstraintInformation
=
195
,
SystemKernelVaShadowInformation
=
196
,
SystemHypervisorSharedPageInformation
=
197
,
SystemHypervisorSharedPageInformation
=
197
,
SystemFirmwareBootPerformanceInformation
=
198
,
SystemCodeIntegrityVerificationInformation
=
199
,
SystemFirmwarePartitionInformation
=
200
,
SystemSpeculationControlInformation
=
201
,
SystemDmaGuardPolicyInformation
=
202
,
SystemEnclaveLaunchControlInformation
=
203
,
SystemWorkloadAllowedCpuSetsInformation
=
204
,
SystemCodeIntegrityUnlockModeInformation
=
205
,
SystemLeapSecondInformation
=
206
,
SystemFlags2Information
=
207
,
SystemSecurityModelInformation
=
208
,
SystemCodeIntegritySyntheticCacheInformation
=
209
,
SystemFeatureConfigurationInformation
=
210
,
SystemFeatureConfigurationSectionInformation
=
211
,
SystemFeatureUsageSubscriptionInformation
=
212
,
SystemSecureSpeculationControlInformation
=
213
,
SystemSpacesBootInformation
=
214
,
SystemFwRamdiskInformation
=
215
,
SystemWheaIpmiHardwareInformation
=
216
,
SystemDifSetRuleClassInformation
=
217
,
SystemDifClearRuleClassInformation
=
218
,
SystemDifApplyPluginVerificationOnDriver
=
219
,
SystemDifRemovePluginVerificationOnDriver
=
220
,
SystemShadowStackInformation
=
221
,
SystemBuildVersionInformation
=
222
,
SystemInformationClassMax
SystemInformationClassMax
}
SYSTEM_INFORMATION_CLASS
,
*
PSYSTEM_INFORMATION_CLASS
;
}
SYSTEM_INFORMATION_CLASS
,
*
PSYSTEM_INFORMATION_CLASS
;
...
...
programs/taskmgr/perfdata.c
View file @
afaf35b9
...
@@ -100,7 +100,7 @@ void PerfDataRefresh(void)
...
@@ -100,7 +100,7 @@ void PerfDataRefresh(void)
return
;
return
;
/* Get system cache information */
/* Get system cache information */
status
=
NtQuerySystemInformation
(
SystemCacheInformation
,
&
SysCacheInfo
,
sizeof
(
SysCacheInfo
),
NULL
);
status
=
NtQuerySystemInformation
(
System
File
CacheInformation
,
&
SysCacheInfo
,
sizeof
(
SysCacheInfo
),
NULL
);
if
(
status
!=
NO_ERROR
)
if
(
status
!=
NO_ERROR
)
return
;
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment