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.

129 lines
2.1 KiB

  1. /*
  2. * Copyright (c) Microsoft Corporation
  3. *
  4. * Module Name :
  5. * tcadmin.h
  6. *
  7. * Header file for the administration utility.
  8. *
  9. * Sadagopan Rajaram -- Dec 20, 1999
  10. *
  11. */
  12. #include <tchar.h>
  13. #include <stdlib.h>
  14. #include <stdio.h>
  15. #include <nt.h>
  16. #include <ntrtl.h>
  17. #include <nturtl.h>
  18. #include <ntseapi.h>
  19. #include <windows.h>
  20. #include <winsock2.h>
  21. #include <align.h>
  22. #include <smbgtpt.h>
  23. #include <dsgetdc.h>
  24. #include <lm.h>
  25. #include <winldap.h>
  26. #include <dsrole.h>
  27. #include <rpc.h>
  28. #include <ntdsapi.h>
  29. #include <lmcons.h>
  30. #include <lmerr.h>
  31. #include <lmsname.h>
  32. #include <rpc.h>
  33. #include <security.h> // General definition of a Security Support Provider
  34. #include <ntlmsp.h>
  35. #include <spseal.h>
  36. #include <userenv.h>
  37. #include <setupapi.h>
  38. #include <ntddser.h>
  39. #include <conio.h>
  40. #include "msg.h"
  41. #include "tcsrvc.h"
  42. extern PVOID ResourceImageBase;
  43. extern FARPROC setparams;
  44. extern FARPROC getparams;
  45. extern FARPROC deletekey;
  46. extern HANDLE hConsoleInput;
  47. extern HANDLE hConsoleOutput;
  48. extern TCHAR lastChar;
  49. #ifdef MAX_BUFFER_SIZE
  50. #undef MAX_BUFFER_SIZE
  51. #define MAX_BUFFER_SIZE 257
  52. #endif
  53. #define NUMBER_FIELDS 6
  54. #define NUMBER_OF_STATES 7
  55. #define SERIAL_DEVICE_KEY _T("HARDWARE\\DEVICEMAP\\SERIALCOMM")
  56. #define DEFAULT_BAUD_RATE 9600
  57. #define TCAlloc(x) malloc(x)
  58. #define TCFree(x) free(x)
  59. BOOL
  60. Browse(
  61. );
  62. VOID
  63. DisplayScreen(
  64. UINT MessageID
  65. );
  66. int
  67. DisplayEditMenu(
  68. TCHAR *name,
  69. int nameLen,
  70. TCHAR *device,
  71. int deviceLen,
  72. UINT *BaudRate,
  73. UCHAR *WordLen,
  74. UCHAR *Parity,
  75. UCHAR *StopBits
  76. );
  77. LPTSTR
  78. RetreiveMessageText(
  79. IN ULONG MessageId
  80. );
  81. LONG
  82. GetLine(
  83. LPTSTR str,
  84. int index,
  85. int MaxLength
  86. );
  87. VOID
  88. DisplayParameters(
  89. LPCTSTR *message,
  90. LPCTSTR name,
  91. LPCTSTR device,
  92. UINT baudRate,
  93. UCHAR wordLen,
  94. UCHAR parity,
  95. UCHAR stopBits
  96. );
  97. VOID SendParameterChange(
  98. );
  99. VOID
  100. GetStatus(
  101. );
  102. VOID
  103. StartTCService(
  104. );
  105. VOID
  106. StopTCService(
  107. );
  108. VOID
  109. AddAllComPorts(
  110. );