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.

253 lines
8.2 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1995 **/
  4. /**********************************************************************/
  5. /*
  6. msnsvc.h
  7. This file contains constants & type definitions shared between the
  8. Shuttle Service, Installer, and Administration UI.
  9. FILE HISTORY:
  10. VladimV 30-May-1995 Created
  11. rkamicar 7-June-1995 Added Admin Stuff
  12. VladimV 26-June-1995 Replace W3 with MSN info.
  13. */
  14. #ifndef _MSNSVC_H_
  15. #define _MSNSVC_H_
  16. #ifdef __cplusplus
  17. extern "C"
  18. {
  19. #endif // _cplusplus
  20. #if !defined(MIDL_PASS)
  21. #include <winsock2.h>
  22. #endif
  23. //
  24. // Service name.
  25. //
  26. #define MSN_SERVICE_NAME_A "MSNSVC"
  27. #define MSN_SERVICE_NAME_W L"MSNSVC"
  28. //
  29. // Name of the log file, used for logging file accesses.
  30. //
  31. #define MSN_LOG_FILE_A "MSNSVC.LOG"
  32. #define MSN_LOG_FILE_W L"MSNSVC.LOG"
  33. //
  34. // Configuration parameters registry key.
  35. //
  36. #define MSN_PARAMETERS_KEY_A \
  37. "System\\CurrentControlSet\\Services\\MsnSvc\\Parameters"
  38. #define MSN_PARAMETERS_KEY_W \
  39. L"System\\CurrentControlSet\\Services\\MsnSvc\\Parameters"
  40. //
  41. // Performance key.
  42. //
  43. #define MSN_PERFORMANCE_KEY_A \
  44. "System\\CurrentControlSet\\Services\\MsnSvc\\Performance"
  45. #define MSN_PERFORMANCE_KEY_W \
  46. L"System\\CurrentControlSet\\Services\\MsnSvc\\Performance"
  47. //
  48. // If this registry key exists under the MsnSvc\Parameters key,
  49. // it is used to validate MSNSVC access. Basically, all new users
  50. // must have sufficient privilege to open this key before they
  51. // may access the MSN Server.
  52. //
  53. #define MSN_ACCESS_KEY_A "AccessCheck"
  54. #define MSN_ACCESS_KEY_W L"AccessCheck"
  55. //
  56. // Configuration value names.
  57. //
  58. #define MSN_ALLOW_ANONYMOUS_A "AllowAnonymous"
  59. #define MSN_ALLOW_ANONYMOUS_W L"AllowAnonymous"
  60. #define MSN_ALLOW_GUEST_ACCESS_A "AllowGuestAccess"
  61. #define MSN_ALLOW_GUEST_ACCESS_W L"AllowGuestAccess"
  62. #define MSN_ANONYMOUS_ONLY_A "AnonymousOnly"
  63. #define MSN_ANONYMOUS_ONLY_W L"AnonymousOnly"
  64. #define MSN_LOG_ANONYMOUS_A "LogAnonymous"
  65. #define MSN_LOG_ANONYMOUS_W L"LogAnonymous"
  66. #define MSN_LOG_NONANONYMOUS_A "LogNonAnonymous"
  67. #define MSN_LOG_NONANONYMOUS_W L"LogNonAnonymous"
  68. #define MSN_ANONYMOUS_USERNAME_A "AnonymousUserName"
  69. #define MSN_ANONYMOUS_USERNAME_W L"AnonymousUserName"
  70. #define MSN_HOME_DIRECTORY_A "HomeDirectory"
  71. #define MSN_HOME_DIRECTORY_W L"HomeDirectory"
  72. #define MSN_MAX_CONNECTIONS_A "MaxConnections"
  73. #define MSN_MAX_CONNECTIONS_W L"MaxConnections"
  74. #define MSN_READ_ACCESS_MASK_A "ReadAccessMask"
  75. #define MSN_READ_ACCESS_MASK_W L"ReadAccessMask"
  76. #define MSN_WRITE_ACCESS_MASK_A "WriteAccessMask"
  77. #define MSN_WRITE_ACCESS_MASK_W L"WriteAccessMask"
  78. #define MSN_CONNECTION_TIMEOUT_A "ConnectionTimeout"
  79. #define MSN_CONNECTION_TIMEOUT_W L"ConnectionTimeout"
  80. #define MSN_MSDOS_DIR_OUTPUT_A "MsdosDirOutput"
  81. #define MSN_MSDOS_DIR_OUTPUT_W L"MsdosDirOutput"
  82. #define MSN_GREETING_MESSAGE_A "GreetingMessage"
  83. #define MSN_GREETING_MESSAGE_W L"GreetingMessage"
  84. #define MSN_EXIT_MESSAGE_A "ExitMessage"
  85. #define MSN_EXIT_MESSAGE_W L"ExitMessage"
  86. #define MSN_MAX_CLIENTS_MSG_A "MaxClientsMessage"
  87. #define MSN_MAX_CLIENTS_MSG_W L"MaxClientsMessage"
  88. #define MSN_DEBUG_FLAGS_A "DebugFlags"
  89. #define MSN_DEBUG_FLAGS_W L"DebugFlags"
  90. #define MSN_ANNOTATE_DIRS_A "AnnotateDirectories"
  91. #define MSN_ANNOTATE_DIRS_W L"AnnotateDirectories"
  92. #define MSN_LOWERCASE_FILES_A "LowercaseFiles"
  93. #define MSN_LOWERCASE_FILES_W L"LowercaseFiles"
  94. #define MSN_LOG_FILE_ACCESS_A "LogFileAccess"
  95. #define MSN_LOG_FILE_ACCESS_W L"LogFileAccess"
  96. #define MSN_LOG_FILE_DIRECTORY_A "LogFileDirectory"
  97. #define MSN_LOG_FILE_DIRECTORY_W L"LogFileDirectory"
  98. #define MSN_LISTEN_BACKLOG_A "ListenBacklog"
  99. #define MSN_LISTEN_BACKLOG_W L"ListenBacklog"
  100. #define MSN_ENABLE_LICENSING_A "EnableLicensing"
  101. #define MSN_ENABLE_LICENSING_W L"EnableLicensing"
  102. #define MSN_DEFAULT_LOGON_DOMAIN_A "DefaultLogonDomain"
  103. #define MSN_DEFAULT_LOGON_DOMAIN_W L"DefaultLogonDomain"
  104. //
  105. // Name of the LSA Secret Object containing the password for
  106. // anonymous logon and virtual UNC roots
  107. //
  108. #define MSN_ANONYMOUS_SECRET_A "MSN_ANONYMOUS_DATA"
  109. #define MSN_ANONYMOUS_SECRET_W L"MSN_ANONYMOUS_DATA"
  110. #define MSN_ROOT_SECRET_A "MSN_ROOT_DATA"
  111. #define MSN_ROOT_SECRET_W L"MSN_ROOT_DATA"
  112. //
  113. // Handle ANSI/UNICODE sensitivity.
  114. //
  115. #ifdef UNICODE
  116. #define MSN_SERVICE_NAME MSN_SERVICE_NAME_W
  117. #define MSN_ANNOTATION_FILE MSN_ANNOTATION_FILE_W
  118. #define MSN_PARAMETERS_KEY MSN_PARAMETERS_KEY_W
  119. #define MSN_PERFORMANCE_KEY MSN_PERFORMANCE_KEY_W
  120. #define MSN_ACCESS_KEY MSN_ACCESS_KEY_W
  121. #define MSN_ALLOW_ANONYMOUS MSN_ALLOW_ANONYMOUS_W
  122. #define MSN_ALLOW_GUEST_ACCESS MSN_ALLOW_GUEST_ACCESS_W
  123. #define MSN_ANONYMOUS_ONLY MSN_ANONYMOUS_ONLY_W
  124. #define MSN_LOG_ANONYMOUS MSN_LOG_ANONYMOUS_W
  125. #define MSN_LOG_NONANONYMOUS MSN_LOG_NONANONYMOUS_W
  126. #define MSN_ANONYMOUS_USERNAME MSN_ANONYMOUS_USERNAME_W
  127. #define MSN_HOME_DIRECTORY MSN_HOME_DIRECTORY_W
  128. #define MSN_MAX_CONNECTIONS MSN_MAX_CONNECTIONS_W
  129. #define MSN_READ_ACCESS_MASK MSN_READ_ACCESS_MASK_W
  130. #define MSN_WRITE_ACCESS_MASK MSN_WRITE_ACCESS_MASK_W
  131. #define MSN_CONNECTION_TIMEOUT MSN_CONNECTION_TIMEOUT_W
  132. #define MSN_MSDOS_DIR_OUTPUT MSN_MSDOS_DIR_OUTPUT_W
  133. #define MSN_GREETING_MESSAGE MSN_GREETING_MESSAGE_W
  134. #define MSN_EXIT_MESSAGE MSN_EXIT_MESSAGE_W
  135. #define MSN_MAX_CLIENTS_MSG MSN_MAX_CLIENTS_MSG_W
  136. #define MSN_DEBUG_FLAGS MSN_DEBUG_FLAGS_W
  137. #define MSN_ANNOTATE_DIRS MSN_ANNOTATE_DIRS_W
  138. #define MSN_ANONYMOUS_SECRET MSN_ANONYMOUS_SECRET_W
  139. #define MSN_LOWERCASE_FILES MSN_LOWERCASE_FILES_W
  140. #define MSN_LOG_FILE_ACCESS MSN_LOG_FILE_ACCESS_W
  141. #define MSN_LOG_FILE MSN_LOG_FILE_W
  142. #define MSN_LOG_FILE_DIRECTORY MSN_LOG_FILE_DIRECTORY_W
  143. #define MSN_LISTEN_BACKLOG MSN_LISTEN_BACKLOG_W
  144. #define MSN_ENABLE_LICENSING MSN_ENABLE_LICENSING_W
  145. #define MSN_DEFAULT_LOGON_DOMAIN MSN_DEFAULT_LOGON_DOMAIN_W
  146. #else // !UNICODE
  147. #define MSN_SERVICE_NAME MSN_SERVICE_NAME_A
  148. #define MSN_ANNOTATION_FILE MSN_ANNOTATION_FILE_A
  149. #define MSN_PARAMETERS_KEY MSN_PARAMETERS_KEY_A
  150. #define MSN_PERFORMANCE_KEY MSN_PERFORMANCE_KEY_A
  151. #define MSN_ACCESS_KEY MSN_ACCESS_KEY_A
  152. #define MSN_ANONYMOUS_ONLY MSN_ANONYMOUS_ONLY_A
  153. #define MSN_LOG_ANONYMOUS MSN_LOG_ANONYMOUS_A
  154. #define MSN_LOG_NONANONYMOUS MSN_LOG_NONANONYMOUS_A
  155. #define MSN_ALLOW_ANONYMOUS MSN_ALLOW_ANONYMOUS_A
  156. #define MSN_ALLOW_GUEST_ACCESS MSN_ALLOW_GUEST_ACCESS_A
  157. #define MSN_ANONYMOUS_USERNAME MSN_ANONYMOUS_USERNAME_A
  158. #define MSN_HOME_DIRECTORY MSN_HOME_DIRECTORY_A
  159. #define MSN_MAX_CONNECTIONS MSN_MAX_CONNECTIONS_A
  160. #define MSN_READ_ACCESS_MASK MSN_READ_ACCESS_MASK_A
  161. #define MSN_WRITE_ACCESS_MASK MSN_WRITE_ACCESS_MASK_A
  162. #define MSN_CONNECTION_TIMEOUT MSN_CONNECTION_TIMEOUT_A
  163. #define MSN_MSDOS_DIR_OUTPUT MSN_MSDOS_DIR_OUTPUT_A
  164. #define MSN_GREETING_MESSAGE MSN_GREETING_MESSAGE_A
  165. #define MSN_EXIT_MESSAGE MSN_EXIT_MESSAGE_A
  166. #define MSN_MAX_CLIENTS_MSG MSN_MAX_CLIENTS_MSG_A
  167. #define MSN_DEBUG_FLAGS MSN_DEBUG_FLAGS_A
  168. #define MSN_ANNOTATE_DIRS MSN_ANNOTATE_DIRS_A
  169. #define MSN_ANONYMOUS_SECRET MSN_ANONYMOUS_SECRET_A
  170. #define MSN_LOWERCASE_FILES MSN_LOWERCASE_FILES_A
  171. #define MSN_LOG_FILE_ACCESS MSN_LOG_FILE_ACCESS_A
  172. #define MSN_LOG_FILE MSN_LOG_FILE_A
  173. #define MSN_LOG_FILE_DIRECTORY MSN_LOG_FILE_DIRECTORY_A
  174. #define MSN_LISTEN_BACKLOG MSN_LISTEN_BACKLOG_A
  175. #define MSN_ENABLE_LICENSING MSN_ENABLE_LICENSING_A
  176. #define MSN_DEFAULT_LOGON_DOMAIN MSN_DEFAULT_LOGON_DOMAIN_A
  177. #endif // UNICODE
  178. //
  179. // Values for LogFileAccess
  180. //
  181. #define MSN_LOG_DISABLED 0
  182. #define MSN_LOG_SINGLE 1
  183. #define MSN_LOG_DAILY 2
  184. #ifdef __cplusplus
  185. }
  186. #endif // _cplusplus
  187. #endif // _MSNSVC_H_