61{
64 UINT64 Count;
66 string SecondParam;
67
68 if (CommandTokens.size() != 3)
69 {
70 ShowMessages("incorrect use of the '%s'\n\n",
73 return;
74 }
75
77
78
79
80
81 if (!SecondParam.compare("thread-interception"))
82 {
84 }
85 else if (!SecondParam.compare("monitor") || !SecondParam.compare("!monitor"))
86 {
88 }
89 else if (!SecondParam.compare("epthook") || !SecondParam.compare("!epthook"))
90 {
92 }
93 else if (!SecondParam.compare("epthook2") || !SecondParam.compare("!epthook2"))
94 {
96 }
97 else if (!SecondParam.compare("regular-event"))
98 {
100 }
101 else if (!SecondParam.compare("big-event"))
102 {
104 }
105 else if (!SecondParam.compare("regular-safe-buffer"))
106 {
108 }
109 else if (!SecondParam.compare("big-safe-buffer"))
110 {
112 }
113 else
114 {
115
116
117
118 ShowMessages("err, couldn't resolve error at '%s'\n",
120 return;
121 }
122
123
124
125
127 {
128
129
130
131 ShowMessages("err, couldn't resolve error at '%s'\n",
133 return;
134 }
135
136
137
138
140
142
143
144
145
149 &PreallocRequest,
151 &PreallocRequest,
153
154 &ReturnedLength,
155 NULL
156 );
157
158 if (!Status)
159 {
161 return;
162 }
163
165 {
166 ShowMessages("the requested pools are allocated and reserved\n");
167 }
168 else
169 {
170
171
172
174 }
175}
std::string GetCaseSensitiveStringFromCommandToken(CommandToken TargetToken)
Get case sensitive string from command token.
Definition common.cpp:467
std::string GetLowerStringFromCommandToken(CommandToken TargetToken)
Get lower case string from command token.
Definition common.cpp:484
BOOLEAN ShowErrorMessage(UINT32 Error)
shows the error message
Definition debugger.cpp:40
HANDLE g_DeviceHandle
Holds the global handle of device which is used to send the request to the kernel by IOCTL,...
Definition globals.h:481
BOOLEAN g_IsKdModuleLoaded
shows whether the kernel debugger (KD) module is loaded or not
Definition globals.h:22
VOID CommandPreallocHelp()
help of the prealloc command
Definition prealloc.cpp:25
DEBUGGER_PREALLOC_COMMAND_TYPE Type
Definition RequestStructures.h:203
UINT32 KernelStatus
Definition RequestStructures.h:205
UINT32 Count
Definition RequestStructures.h:204
BOOLEAN SymbolConvertNameOrExprToAddress(const string &TextToConvert, PUINT64 Result)
check and convert string to a 64 bit unsigned integer and also check for symbol object names and eval...
Definition symbol.cpp:359