Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. ttsertl.c
  5. Abstract:
  6. Kernel mode test of security rtl routines.
  7. Author:
  8. Jim Kelly (JimK) 23-Mar-1990
  9. Environment:
  10. Test of security.
  11. Revision History:
  12. --*/
  13. #ifndef _SERTL_DEBUG_
  14. #define _SERTL_DEBUG_
  15. #endif
  16. #define _TST_KERNEL_ //Kernel mode test
  17. #include <stdio.h>
  18. #include "sep.h"
  19. #include <zwapi.h>
  20. #include "tsevars.c" // Common test variables
  21. #include "ctsertl.c" // Common RTL test routines
  22. BOOLEAN SeRtlTest();
  23. int
  24. main(
  25. int argc,
  26. char *argv[]
  27. )
  28. {
  29. VOID KiSystemStartup();
  30. TestFunction = SeRtlTest;
  31. KiSystemStartup();
  32. return( 0 );
  33. }
  34. BOOLEAN
  35. SeRtlTest()
  36. {
  37. BOOLEAN Result;
  38. DbgPrint("Se: Start Kernel Mode RTL Test...\n");
  39. Result = TestSeRtl();
  40. if (!Result) {
  41. DbgPrint("Se: ** Kernel Mode RTL Test Failed **\n");
  42. }
  43. DbgPrint("Se: End Kernel Mode RTL Test.\n");
  44. return Result;
  45. }
  46.