Process Hacker
Main Page
Namespaces
Data Structures
Files
File List
Globals
settings.h
Go to the documentation of this file.
1
#ifndef PH_SETTINGS_H
2
#define PH_SETTINGS_H
3
4
// begin_phapppub
5
typedef
enum
_PH_SETTING_TYPE
6
{
7
StringSettingType
,
8
IntegerSettingType
,
9
IntegerPairSettingType
10
}
PH_SETTING_TYPE
,
PPH_SETTING_TYPE
;
11
// end_phapppub
12
13
typedef
struct
_PH_SETTING
14
{
15
PH_SETTING_TYPE
Type
;
16
PH_STRINGREF
Name
;
17
PH_STRINGREF
DefaultValue
;
18
19
union
20
{
21
PVOID
Pointer
;
22
ULONG
Integer
;
23
PH_INTEGER_PAIR
IntegerPair
;
24
}
u
;
25
}
PH_SETTING
, *
PPH_SETTING
;
26
27
VOID
PhSettingsInitialization
(
28
VOID
29
);
30
31
VOID
PhUpdateCachedSettings
(
32
VOID
33
);
34
35
// begin_phapppub
36
PHAPPAPI
37
_May_raise_
ULONG
38
NTAPI
39
PhGetIntegerSetting
(
40
_In_ PWSTR Name
41
);
42
43
PHAPPAPI
44
_May_raise_
PH_INTEGER_PAIR
45
NTAPI
46
PhGetIntegerPairSetting
(
47
_In_ PWSTR Name
48
);
49
50
PHAPPAPI
51
_May_raise_
PPH_STRING
52
NTAPI
53
PhGetStringSetting
(
54
_In_ PWSTR Name
55
);
56
57
PHAPPAPI
58
_May_raise_
VOID
59
NTAPI
60
PhSetIntegerSetting
(
61
_In_ PWSTR Name,
62
_In_ ULONG Value
63
);
64
65
PHAPPAPI
66
_May_raise_
VOID
67
NTAPI
68
PhSetIntegerPairSetting
(
69
_In_ PWSTR Name,
70
_In_
PH_INTEGER_PAIR
Value
71
);
72
73
PHAPPAPI
74
_May_raise_
VOID
75
NTAPI
76
PhSetStringSetting
(
77
_In_ PWSTR Name,
78
_In_ PWSTR Value
79
);
80
81
PHAPPAPI
82
_May_raise_
VOID
83
NTAPI
84
PhSetStringSetting2
(
85
_In_ PWSTR Name,
86
_In_
PPH_STRINGREF
Value
87
);
88
// end_phapppub
89
90
VOID
PhClearIgnoredSettings
(
91
VOID
92
);
93
94
VOID
PhConvertIgnoredSettings
(
95
VOID
96
);
97
98
NTSTATUS
PhLoadSettings
(
99
_In_ PWSTR FileName
100
);
101
102
NTSTATUS
PhSaveSettings
(
103
_In_ PWSTR FileName
104
);
105
106
VOID
PhResetSettings
(
107
VOID
108
);
109
110
#define PhaGetStringSetting(Name) ((PPH_STRING)PhAutoDereferenceObject(PhGetStringSetting(Name))) // phapppub
111
112
// begin_phapppub
113
// High-level settings creation
114
115
typedef
struct
_PH_SETTING_CREATE
116
{
117
PH_SETTING_TYPE
Type
;
118
PWSTR
Name
;
119
PWSTR
DefaultValue
;
120
}
PH_SETTING_CREATE
, *
PPH_SETTING_CREATE
;
121
122
PHAPPAPI
123
VOID
124
NTAPI
125
PhAddSettings
(
126
_In_ PPH_SETTING_CREATE Settings,
127
_In_ ULONG NumberOfSettings
128
);
129
// end_phapppub
130
131
// Cached settings
132
133
#undef EXT
134
135
#ifdef PH_SETTINGS_PRIVATE
136
#define EXT
137
#else
138
#define EXT extern
139
#endif
140
141
EXT
ULONG
PhCsCollapseServicesOnStart
;
142
EXT
ULONG
PhCsForceNoParent
;
143
EXT
ULONG
PhCsHighlightingDuration
;
144
EXT
ULONG
PhCsPropagateCpuUsage
;
145
EXT
ULONG
PhCsScrollToNewProcesses
;
146
EXT
ULONG
PhCsShowCpuBelow001
;
147
EXT
ULONG
PhCsUpdateInterval
;
148
149
EXT
ULONG
PhCsColorNew
;
150
EXT
ULONG
PhCsColorRemoved
;
151
EXT
ULONG
PhCsUseColorOwnProcesses
;
152
EXT
ULONG
PhCsColorOwnProcesses
;
153
EXT
ULONG
PhCsUseColorSystemProcesses
;
154
EXT
ULONG
PhCsColorSystemProcesses
;
155
EXT
ULONG
PhCsUseColorServiceProcesses
;
156
EXT
ULONG
PhCsColorServiceProcesses
;
157
EXT
ULONG
PhCsUseColorJobProcesses
;
158
EXT
ULONG
PhCsColorJobProcesses
;
159
EXT
ULONG
PhCsUseColorWow64Processes
;
160
EXT
ULONG
PhCsColorWow64Processes
;
161
EXT
ULONG
PhCsUseColorPosixProcesses
;
162
EXT
ULONG
PhCsColorPosixProcesses
;
163
EXT
ULONG
PhCsUseColorDebuggedProcesses
;
164
EXT
ULONG
PhCsColorDebuggedProcesses
;
165
EXT
ULONG
PhCsUseColorElevatedProcesses
;
166
EXT
ULONG
PhCsColorElevatedProcesses
;
167
EXT
ULONG
PhCsUseColorImmersiveProcesses
;
168
EXT
ULONG
PhCsColorImmersiveProcesses
;
169
EXT
ULONG
PhCsUseColorSuspended
;
170
EXT
ULONG
PhCsColorSuspended
;
171
EXT
ULONG
PhCsUseColorDotNet
;
172
EXT
ULONG
PhCsColorDotNet
;
173
EXT
ULONG
PhCsUseColorPacked
;
174
EXT
ULONG
PhCsColorPacked
;
175
EXT
ULONG
PhCsUseColorGuiThreads
;
176
EXT
ULONG
PhCsColorGuiThreads
;
177
EXT
ULONG
PhCsUseColorRelocatedModules
;
178
EXT
ULONG
PhCsColorRelocatedModules
;
179
EXT
ULONG
PhCsUseColorProtectedHandles
;
180
EXT
ULONG
PhCsColorProtectedHandles
;
181
EXT
ULONG
PhCsUseColorInheritHandles
;
182
EXT
ULONG
PhCsColorInheritHandles
;
183
EXT
ULONG
PhCsGraphShowText
;
184
EXT
ULONG
PhCsGraphColorMode
;
185
EXT
ULONG
PhCsColorCpuKernel
;
186
EXT
ULONG
PhCsColorCpuUser
;
187
EXT
ULONG
PhCsColorIoReadOther
;
188
EXT
ULONG
PhCsColorIoWrite
;
189
EXT
ULONG
PhCsColorPrivate
;
190
EXT
ULONG
PhCsColorPhysical
;
191
192
#define PH_SET_INTEGER_CACHED_SETTING(Name, Value) (PhSetIntegerSetting(L#Name, PhCs##Name = (Value)))
193
194
#endif
ProcessHacker
include
settings.h
Generated by
1.8.2