home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / mdsimsgs.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  7KB  |  287 lines

  1. /************************************************************************
  2. *                                                                        *
  3. *   Copyright (c) 1996, Microsoft Corp. All rights reserved.             *
  4. *                                                                        *
  5. *   mdsimsg.h -- message code definitions for the MDSI functions         *  
  6. *                                                                        *
  7. ************************************************************************/
  8.  
  9. #ifndef __MDSIMSGS_H__
  10. #define __MDSIMSGS_H__
  11.  
  12. //
  13. // Define the message IDs
  14. //
  15. //
  16. //  Values are 32 bit values layed out as follows:
  17. //
  18. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  19. //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  20. //  +---+-+-+-----------------------+-------------------------------+
  21. //  |Sev|C|R|     Facility          |               Code            |
  22. //  +---+-+-+-----------------------+-------------------------------+
  23. //
  24. //  where
  25. //
  26. //      Sev - is the severity code
  27. //
  28. //          00 - Success
  29. //          01 - Informational
  30. //          10 - Warning
  31. //          11 - Error
  32. //
  33. //      C - is the Customer code flag
  34. //
  35. //      R - is a reserved bit
  36. //
  37. //      Facility - is the facility code
  38. //
  39. //      Code - is the facility's status code
  40. //
  41. //
  42. // Define the facility codes
  43. //
  44. #define FACILITY_MDSI                    0x900
  45.  
  46.  
  47. //
  48. // Define the severity codes
  49. //
  50.  
  51.  
  52. //
  53. // MessageId: HOSTSEC_ERROR_UNABLE_TO_PROCESS_REQUEST
  54. //
  55. // MessageText:
  56. //
  57. //  Security DLL was unable to queue the request for processing.
  58. //
  59. #define HOSTSEC_ERROR_UNABLE_TO_PROCESS_REQUEST ((DWORD)0xE90005DDL)
  60.  
  61. //
  62. // MessageId: HOSTSEC_ERROR_REMOTE_UNREACHABLE
  63. //
  64. // MessageText:
  65. //
  66. //  Host Process could not establish network connection to other NT side components.
  67. //
  68. #define HOSTSEC_ERROR_REMOTE_UNREACHABLE ((DWORD)0xE90005DEL)
  69.  
  70. //
  71. // MessageId: HOSTSEC_ERROR_INVALID_USERNAME
  72. //
  73. // MessageText:
  74. //
  75. //  Invalid user name was specified or user does not exist.
  76. //
  77. #define HOSTSEC_ERROR_INVALID_USERNAME   ((DWORD)0xE90005DFL)
  78.  
  79. //
  80. // MessageId: HOSTSEC_ERROR_INVALID_PASSWORD
  81. //
  82. // MessageText:
  83. //
  84. //  Invalid password was specified for the user.
  85. //
  86. #define HOSTSEC_ERROR_INVALID_PASSWORD   ((DWORD)0xE90005E0L)
  87.  
  88. //
  89. // MessageId: NTSEC_ERROR_UNABLE_TO_PROCESS_REQUEST
  90. //
  91. // MessageText:
  92. //
  93. //  Host Process was unable to process the request.
  94. //
  95. #define NTSEC_ERROR_UNABLE_TO_PROCESS_REQUEST ((DWORD)0xE90005E1L)
  96.  
  97. //
  98. // MessageId: NTSEC_ERROR_REMOTE_UNREACHABLE
  99. //
  100. // MessageText:
  101. //
  102. //  Security DLL could not establish network connection to host side components.
  103. //
  104. #define NTSEC_ERROR_REMOTE_UNREACHABLE   ((DWORD)0xE90005E2L)
  105.  
  106. //
  107. // MessageId: NTSEC_ERROR_INVALID_USERNAME
  108. //
  109. // MessageText:
  110. //
  111. //  Invalid user name was specified or user does not exist on the host.
  112. //
  113. #define NTSEC_ERROR_INVALID_USERNAME     ((DWORD)0xE90005E3L)
  114.  
  115. //
  116. // MessageId: NTSEC_ERROR_INVALID_OLD_PASSWORD
  117. //
  118. // MessageText:
  119. //
  120. //  Invalid old password for the host user was specified.
  121. //
  122. #define NTSEC_ERROR_INVALID_OLD_PASSWORD ((DWORD)0xE90005E4L)
  123.  
  124. //
  125. // MessageId: NTSEC_ERROR_NOT_IMPLEMENTED
  126. //
  127. // MessageText:
  128. //
  129. //  Host Process function not implemented.
  130. //
  131. #define NTSEC_ERROR_NOT_IMPLEMENTED      ((DWORD)0xE90005E5L)
  132.  
  133. //
  134. // MessageId: HOSTSEC_ERROR_NOT_IMPLEMENTED
  135. //
  136. // MessageText:
  137. //
  138. //  Security DLL function not implemented.
  139. //
  140. #define HOSTSEC_ERROR_NOT_IMPLEMENTED    ((DWORD)0xE90005E6L)
  141.  
  142. //
  143. // MessageId: NTSEC_ERROR_INVALID_NEW_PASSWORD
  144. //
  145. // MessageText:
  146. //
  147. //  Invalid new password for the host user was specified.
  148. //
  149. #define NTSEC_ERROR_INVALID_NEW_PASSWORD ((DWORD)0xE90005E7L)
  150.  
  151. //
  152. // MessageId: NTSEC_ERROR_NEW_PASSWORD_HAS_REPEATING_CHARS
  153. //
  154. // MessageText:
  155. //
  156. //  New host password supplied has repeating characters.
  157. //
  158. #define NTSEC_ERROR_NEW_PASSWORD_HAS_REPEATING_CHARS ((DWORD)0xE90005E8L)
  159.  
  160. //
  161. // MessageId: NTSEC_ERROR_NEW_PASSWORD_TOO_LONG
  162. //
  163. // MessageText:
  164. //
  165. //  New host password supplied is longer than maximum allowed.
  166. //
  167. #define NTSEC_ERROR_NEW_PASSWORD_TOO_LONG ((DWORD)0xE90005E9L)
  168.  
  169. //
  170. // MessageId: NTSEC_ERROR_NEW_PASSWORD_TOO_SHORT
  171. //
  172. // MessageText:
  173. //
  174. //  New host password supplied is shorter than minimum allowed.
  175. //
  176. #define NTSEC_ERROR_NEW_PASSWORD_TOO_SHORT ((DWORD)0xE90005EAL)
  177.  
  178. //
  179. // MessageId: NTSEC_ERROR_NEW_PASSWORD_BAD_CHAR
  180. //
  181. // MessageText:
  182. //
  183. //  New host password supplied contains invalid characters.
  184. //
  185. #define NTSEC_ERROR_NEW_PASSWORD_BAD_CHAR ((DWORD)0xE90005EBL)
  186.  
  187. //
  188. // MessageId: NTSEC_ERROR_NEW_PASSWORD_SPACES
  189. //
  190. // MessageText:
  191. //
  192. //  New host password supplied contains spaces.
  193. //
  194. #define NTSEC_ERROR_NEW_PASSWORD_SPACES  ((DWORD)0xE90005ECL)
  195.  
  196. //
  197. // MessageId: NTSEC_ERROR_NEW_PASSWORD_NULL
  198. //
  199. // MessageText:
  200. //
  201. //  New host password supplied is null.
  202. //
  203. #define NTSEC_ERROR_NEW_PASSWORD_NULL    ((DWORD)0xE90005EDL)
  204.  
  205. //
  206. // MessageId: NTSEC_ERROR_NEW_PASSWORD_NON_ALPHANUMERIC
  207. //
  208. // MessageText:
  209. //
  210. //  New host password supplied contains non-alphanumeric characters.
  211. //
  212. #define NTSEC_ERROR_NEW_PASSWORD_NON_ALPHANUMERIC ((DWORD)0xE90005EEL)
  213.  
  214. //
  215. // MessageId: NTSEC_ERROR_NEW_PASSWORD_SAME_AS_PREVIOUS
  216. //
  217. // MessageText:
  218. //
  219. //  New host password supplied is same as the old host password.
  220. //
  221. #define NTSEC_ERROR_NEW_PASSWORD_SAME_AS_PREVIOUS ((DWORD)0xE90005EFL)
  222.  
  223. //
  224. // MessageId: NTSEC_ERROR_NEW_PASSWORD_NOT_ALLOWED
  225. //
  226. // MessageText:
  227. //
  228. //  New host password supplied matches the one in Not Allowed Dictionary on the host.
  229. //
  230. #define NTSEC_ERROR_NEW_PASSWORD_NOT_ALLOWED ((DWORD)0xE90005F0L)
  231.  
  232. //
  233. // MessageId: NTSEC_ERROR_NEW_PASSWORD_HISTORY_CONFLICT
  234. //
  235. // MessageText:
  236. //
  237. //  New host password supplied matches one of the previous passwords in the history list of the most recent passwords on the host.
  238. //
  239. #define NTSEC_ERROR_NEW_PASSWORD_HISTORY_CONFLICT ((DWORD)0xE90005F1L)
  240.  
  241. //
  242. // MessageId: NTSEC_ERROR_REQUEST_REJECTED
  243. //
  244. // MessageText:
  245. //
  246. //  The host rejected the request for an unknown reason.
  247. //
  248. #define NTSEC_ERROR_REQUEST_REJECTED     ((DWORD)0xE90005F2L)
  249.  
  250. //
  251. // MessageId: NTSEC_ERROR_PASSWORD_EXPIRED
  252. //
  253. // MessageText:
  254. //
  255. //  The password for the host user specified has expired.
  256. //
  257. #define NTSEC_ERROR_PASSWORD_EXPIRED     ((DWORD)0xE90005F3L)
  258.  
  259. //
  260. // MessageId: NTSEC_ERROR_ACCOUNT_DISABLED
  261. //
  262. // MessageText:
  263. //
  264. //  The user account is disabled on the host.
  265. //
  266. #define NTSEC_ERROR_ACCOUNT_DISABLED     ((DWORD)0xE90005F4L)
  267.  
  268. //
  269. // MessageId: NTSEC_ERROR_ACCOUNT_LOCKED
  270. //
  271. // MessageText:
  272. //
  273. //  The user account is locked on the host.
  274. //
  275. #define NTSEC_ERROR_ACCOUNT_LOCKED       ((DWORD)0xE90005F5L)
  276.  
  277. //
  278. // MessageId: NTSEC_ERROR_USER_CANNOT_CHANGE_PASSWORD
  279. //
  280. // MessageText:
  281. //
  282. //  User does not have permission to change the account password on the host.
  283. //
  284. #define NTSEC_ERROR_USER_CANNOT_CHANGE_PASSWORD ((DWORD)0xE90005F6L)
  285.  
  286. #endif // __MDSIMSGS_H__
  287.