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.

79 lines
1.7 KiB

  1. // *********************************************************************************
  2. //
  3. //
  4. // File: waitfor.h
  5. // Copyright (C) Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // Abstract
  9. // This module is the header file used for WaitFor.cpp
  10. //
  11. // Syntax
  12. //
  13. // WaitFor [-s server ] [-u [domain\]username [-p password]]
  14. // { [-si ] | [-t time interval] } signal
  15. //
  16. // Author:
  17. //
  18. // 29-6-2000 by J.S.Vasu .
  19. //
  20. // Revision History:
  21. //
  22. //
  23. // Modified on 1-7-2000 by J.S.Vasu .
  24. //
  25. // *********************************************************************************
  26. #ifndef __WAITFOR_H
  27. #define __WAITFOR_H
  28. #if !defined( SECURITY_WIN32 ) && !defined( SECURITY_KERNEL ) && !defined( SECURITY_MAC )
  29. #define SECURITY_WIN32
  30. #endif
  31. // include header file only once
  32. #pragma once
  33. #define MAX_OPTIONS 7
  34. #define OPTION_SERVER L"s"
  35. #define OPTION_USER L"u"
  36. #define OPTION_PASSWORD L"p"
  37. #define OPTION_SIGNAL L"si"
  38. #define OPTION_HELP L"?"
  39. #define OPTION_TIMEOUT L"t"
  40. #define OPTION_DEFAULT L""
  41. #define EXIT_FAILURE 1
  42. #define EXIT_SUCCESS 0
  43. #define NULL_U_STRING L"\0"
  44. #define MAILSLOT L"\\\\.\\mailslot\\WAITFOR.EXE\\%s"
  45. #define MAILSLOT2 L"\\\\*\\mailslot\\WAITFOR.EXE\\%s"
  46. #define MAILSLOT1 L"mailslot\\WAITFOR.EXE"
  47. #define BACKSLASH4 L"\\\\"
  48. #define BACKSLASH2 L"\\"
  49. #define EMPTY_SPACE _T(" ")
  50. #define SIZE_OF_ARRAY_IN_CHARS(x) \
  51. GetBufferSize(x)/sizeof(WCHAR)
  52. #define TIMEOUT_CONST 1000
  53. #define OI_USAGE 0
  54. #define OI_SERVER 1
  55. #define OI_USER 2
  56. #define OI_PASSWORD 3
  57. #define OI_SIGNAL 4
  58. #define OI_TIMEOUT 5
  59. #define OI_DEFAULT 6
  60. #define SPACE_CHAR L" "
  61. #define NEWLINE L"\n"
  62. #endif