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.

76 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. utlnpqos.c
  5. Abstract:
  6. Security component user-mode test.
  7. Security quality of service test for Local Named Pipes from user mode.
  8. This test must be run from the SM> prompt in the debugger.
  9. Author:
  10. Jim Kelly (JimK) 27-June-1990
  11. Revision History:
  12. --*/
  13. #include <stdio.h>
  14. #include <nt.h>
  15. #include <ntrtl.h>
  16. #include <nturtl.h>
  17. #include <string.h>
  18. #define _TST_USER_ // User mode test
  19. typedef ULONG NAMED_PIPE_TYPE;
  20. typedef NAMED_PIPE_TYPE *PNAMED_PIPE_TYPE;
  21. typedef ULONG READ_MODE;
  22. typedef READ_MODE *PREAD_MODE;
  23. typedef ULONG COMPLETION_MODE;
  24. typedef COMPLETION_MODE *PCOMPLETION_MODE;
  25. typedef ULONG NAMED_PIPE_CONFIGURATION;
  26. typedef NAMED_PIPE_CONFIGURATION *PNAMED_PIPE_CONFIGURATION;
  27. typedef ULONG NAMED_PIPE_STATE;
  28. typedef NAMED_PIPE_STATE *PNAMED_PIPE_STATE;
  29. typedef ULONG NAMED_PIPE_END;
  30. typedef NAMED_PIPE_END *PNAMED_PIPE_END;
  31. #include "tsecomm.c" // Common routines
  32. #include "ctlnpqos.c" // quality of service tests
  33. BOOLEAN
  34. Test()
  35. {
  36. BOOLEAN Result = TRUE;
  37. Result = CtLnpQos();
  38. return Result;
  39. }
  40. BOOLEAN
  41. main()
  42. {
  43. return Test();
  44. }
  45.