125{
126 void *pFunction;
128
130 if (hKrnlMod)
131 {
135 {
136
143 char szTest[100] = "FltMgr";
146 UCHAR TestEaBufferFlags;
147
148
149 TestEaBufferFlags = 0;
150
151 iTestCount = 1;
154
155
156 printf(
"1.) Test : *********************\n");
157
158
159
160
162 {
164
167 WinEaBuffer->
Flags = TestEaBufferFlags;
169
170
173 ROSEaBuffer->
Flags = TestEaBufferFlags;
175
177 iTestCount++;
178 }
179
180 printf(
"2.) Test : *********************\n");
181
182
183
185 {
187
191 WinEaBuffer->
Flags = TestEaBufferFlags;
193
194
199
201 iTestCount++;
202 }
203
204 printf(
"3.) Test : *********************\n");
205
206
209 {
210
211
216 WinEaBuffer->
Flags = TestEaBufferFlags;
218
219
224 ROSEaBuffer->
Flags = TestEaBufferFlags;
226
228 iTestCount++;
229 }
230
231 printf(
"4.) Test : *********************\n");
232
233
235 {
237
242 WinEaBuffer->
Flags = TestEaBufferFlags;
244
245
250 ROSEaBuffer->
Flags = TestEaBufferFlags;
252
254 iTestCount++;
255 }
256
257 printf(
"5.) Test : *********************\n");
258
259
261 {
263
269 WinEaBuffer->
Flags = TestEaBufferFlags;
271
272
278 ROSEaBuffer->
Flags = TestEaBufferFlags;
280
282 iTestCount++;
283 }
284
285
286 printf(
"6.) Test : *********************\n");
287
288
289
290
292 {
294
301 WinEaBuffer->
Flags = TestEaBufferFlags;
303
304
311 ROSEaBuffer->
Flags = TestEaBufferFlags;
313
315 iTestCount++;
316 }
317
318 printf(
"7.) Test : *********************\n");
319
320
321
323 {
325
332 WinEaBuffer->
Flags = TestEaBufferFlags;
334
335
342 ROSEaBuffer->
Flags = TestEaBufferFlags;
344
346 iTestCount++;
347 }
348
349
350 printf(
"8.) Test : *********************\n");
351
352
353
355 {
357
364 WinEaBuffer->
Flags = TestEaBufferFlags;
367
368
375 ROSEaBuffer->
Flags = TestEaBufferFlags;
378
381 iTestCount++;
382 }
383
384 printf(
"9.) Test : *********************\n");
385
386
387
389 {
391
394
398 WinEaBuffer->
Flags = TestEaBufferFlags;
401
402
405
409 ROSEaBuffer->
Flags = TestEaBufferFlags;
412
415 iTestCount++;
416 }
417
418 printf(
"10.) Test : *********************\n");
419
420
421
423 {
425
428
432 WinEaBuffer->
Flags = TestEaBufferFlags;
435
436
439
443 ROSEaBuffer->
Flags = TestEaBufferFlags;
446
449 iTestCount++;
450 }
451
452 printf(
"11.) Test : *********************\n");
453
454
456 {
458
461
465 WinEaBuffer->
Flags = TestEaBufferFlags;
468
469
472
476 ROSEaBuffer->
Flags = TestEaBufferFlags;
479
482 iTestCount++;
483 }
484
485
488 }
489
491 }
492 else
493 {
495 switch (dwLastError)
496 {
498 printf(
"ERROR_MOD_NOT_FOUND\n");
499 break;
501 printf(
"ERROR_BAD_EXE_FORMAT\n");
502 break;
503 }
504 }
505 return 0;
506}
struct _FILE_FULL_EA_INFORMATION * PFILE_FULL_EA_INFORMATION
void CheckROSAgainstWinAndPrintResult(PFILE_FULL_EA_INFORMATION WinEaBuffer, PFILE_FULL_EA_INFORMATION ROSEaBuffer, NTSTATUS WinStatus, NTSTATUS ROSStatus, ULONG WinErrorOffset, ULONG ROSErrorOffset, int iBufferLength, int iTestCount, ULONG TestEaLength)
#define RANDOM_INIT_ERROR
NTSTATUS NTAPI IoCheckEaBufferValidityROS(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
ACPI_SIZE strlen(const char *String)
#define ERROR_MOD_NOT_FOUND
#define GetProcAddress(x, y)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define sprintf(buf, format,...)
NTSTATUS NTAPI IoCheckEaBufferValidity(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
DWORD WINAPI GetLastError(void)
#define ERROR_BAD_EXE_FORMAT