Source code of Windows XP (NT5)
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.

109 lines
1.3 KiB

  1. #ifndef __ADSCMD_MAIN__
  2. #define __ADSCMD_MAIN__
  3. //
  4. // System Includes
  5. //
  6. #define UNICODE
  7. #define _UNICODE
  8. #define INC_OLE2
  9. #include <windows.h>
  10. //
  11. // CRunTime Includes
  12. //
  13. #include <stdlib.h>
  14. #include <limits.h>
  15. #include <io.h>
  16. #include <stdio.h>
  17. //
  18. // Public ADs includes
  19. //
  20. #include <activeds.h>
  21. //
  22. // Local includes
  23. //
  24. #include "dispdef.hxx"
  25. void
  26. PrintUsage(
  27. char *szProgName,
  28. char *szActions,
  29. char *extra
  30. );
  31. void
  32. PrintUsage(
  33. char *szProgName,
  34. char *szActions,
  35. DISPENTRY *DispTable,
  36. int nDispTable
  37. );
  38. BOOL
  39. IsHelp(
  40. char *szAction
  41. );
  42. BOOL
  43. IsValidAction(
  44. char *szAction,
  45. DISPENTRY *DispTable,
  46. int nDispTable
  47. );
  48. BOOL
  49. IsSameAction(
  50. char *action1,
  51. char *action2
  52. );
  53. BOOL
  54. DispatchHelp(
  55. DISPENTRY *DispTable,
  56. int nDispTable,
  57. char *szProgName,
  58. char *szPrevActions,
  59. char *szAction
  60. );
  61. int
  62. DispatchExec(
  63. DISPENTRY *DispTable,
  64. int nDispTable,
  65. char *szProgName,
  66. char *szPrevActions,
  67. char *szAction,
  68. int argc,
  69. char *argv[]
  70. );
  71. char *
  72. AllocAction(
  73. char *action1,
  74. char *action2
  75. );
  76. void
  77. FreeAction(
  78. char *action
  79. );
  80. BOOL
  81. DoHelp(
  82. char *szProgName,
  83. char *szPrevActions,
  84. char *szCurrentAction,
  85. char *szNextAction,
  86. DISPENTRY *DispTable,
  87. int nDispTable,
  88. HELPFUNC DefaultHelp
  89. );
  90. #endif // __ADSCMD_MAIN__