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.

240 lines
9.2 KiB

  1. /*****************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1989-1990 **/
  4. /*****************************************************************/
  5. /*
  6. * Windows/Network Interface
  7. */
  8. /*
  9. * History:
  10. * chuckc 12-Dec-1991 split off from winlocal, uses uimsg.h
  11. */
  12. #ifndef _ERRORNUM_H_
  13. #define _ERRORNUM_H_
  14. #include <uimsg.h>
  15. /*
  16. * READ THIS!!!
  17. *
  18. * NOTE: Due to limitations in the resource compiler, the message numbers
  19. * are hard coded in the file msg2help.tbl. Any changes to the message
  20. * numbers should also be changed in the msg2help.tbl file.
  21. */
  22. /*
  23. * Error messages in this range may be returned to Windows, via
  24. * WNetGetErrorText.
  25. */
  26. #define IDS_UI_SHELL_EXPORTED_BASE (IDS_UI_SHELL_BASE+0)
  27. #define IDS_UI_SHELL_EXPORTED_LAST (IDS_UI_SHELL_BASE+99)
  28. /*
  29. * Error messages in this range are general Winnet messages
  30. */
  31. #define IDS_UI_SHELL_GEN_BASE (IDS_UI_SHELL_BASE+100)
  32. #define IDS_UI_SHELL_GEN_LAST (IDS_UI_SHELL_BASE+299)
  33. /*
  34. * Error messages in this range are BROWSING related messages
  35. */
  36. #define IDS_UI_SHELL_BROW_BASE (IDS_UI_SHELL_BASE+300)
  37. #define IDS_UI_SHELL_BROW_LAST (IDS_UI_SHELL_BASE+399)
  38. /*
  39. * Error messages in this range are password related messages
  40. */
  41. #define IDS_UI_SHELL_PASS_BASE (IDS_UI_SHELL_BASE+400)
  42. #define IDS_UI_SHELL_PASS_LAST (IDS_UI_SHELL_BASE+499)
  43. /*
  44. * Error messages in this range are share related messages
  45. */
  46. #define IDS_UI_SHELL_SHR_BASE (IDS_UI_SHELL_BASE+500)
  47. #define IDS_UI_SHELL_SHR_LAST (IDS_UI_SHELL_BASE+599)
  48. /*
  49. * Error messages in this range are openfile related messages
  50. */
  51. #define IDS_UI_SHELL_OPEN_BASE (IDS_UI_SHELL_BASE+600)
  52. #define IDS_UI_SHELL_OPEN_LAST (IDS_UI_SHELL_BASE+619)
  53. /*
  54. * Error messages in this range are PERM related messages
  55. */
  56. #define IDS_UI_SHELL_PERM_BASE (IDS_UI_SHELL_BASE+620)
  57. #define IDS_UI_SHELL_PERM_LAST (IDS_UI_SHELL_BASE+799)
  58. /********************* Messages Proper ************************/
  59. /*
  60. * exported messages
  61. */
  62. #define IERR_MustBeLoggedOnToConnect (IDS_UI_SHELL_EXPORTED_BASE+0)
  63. #define IERR_MustBeLoggedOnToDisconnect (IDS_UI_SHELL_EXPORTED_BASE+1)
  64. #define IERR_CannotOpenPrtJobFile (IDS_UI_SHELL_EXPORTED_BASE+2)
  65. #define IERR_ConnectDlgNoDevices (IDS_UI_SHELL_EXPORTED_BASE+3)
  66. /*
  67. * general messages
  68. */
  69. #define IDS_SHELLHELPFILENAME (IDS_UI_SHELL_GEN_BASE+1)
  70. #define IDS_SMHELPFILENAME (IDS_UI_SHELL_GEN_BASE+2)
  71. #define IDS_CREDHELPFILENAME (IDS_UI_SHELL_GEN_BASE+3)
  72. #ifndef WIN32
  73. #define IERR_PWNoUser (IDS_UI_SHELL_GEN_BASE+9)
  74. #define IERR_PWNoDomainOrServer (IDS_UI_SHELL_GEN_BASE+10)
  75. #endif
  76. #define IERR_FullAPISupportNotLoaded (IDS_UI_SHELL_GEN_BASE+19)
  77. #define IERR_IncorrectNetwork (IDS_UI_SHELL_GEN_BASE+20)
  78. #define IERR_InvalidDomainName (IDS_UI_SHELL_GEN_BASE+22)
  79. #define IDS_LMMsgBoxTitle (IDS_UI_SHELL_GEN_BASE+23)
  80. #define IERR_UnrecognizedNetworkError (IDS_UI_SHELL_GEN_BASE+30)
  81. #define IERR_NotLoggedOn (IDS_UI_SHELL_GEN_BASE+32)
  82. #define IERR_USER_CLICKED_CANCEL (IDS_UI_SHELL_GEN_BASE+34)
  83. #define IERR_CannotConnect (IDS_UI_SHELL_GEN_BASE+40)
  84. /* The following 2 errors are defined for LM 2.1 */
  85. #define IERR_HigherLMVersion (IDS_UI_SHELL_GEN_BASE+50)
  86. #define IERR_LowerLMVersion (IDS_UI_SHELL_GEN_BASE+51)
  87. /* The following errors are for LOGON */
  88. #define IERR_LogonBadUsername (IDS_UI_SHELL_GEN_BASE+53)
  89. #define IERR_LogonBadDomainName (IDS_UI_SHELL_GEN_BASE+54)
  90. #define IERR_LogonBadPassword (IDS_UI_SHELL_GEN_BASE+55)
  91. #define IERR_LogonSuccess (IDS_UI_SHELL_GEN_BASE+56)
  92. #define IERR_LogonStandalone (IDS_UI_SHELL_GEN_BASE+57)
  93. #define IERR_LogonFailure (IDS_UI_SHELL_GEN_BASE+58)
  94. /* CODEWORK - these should be IDS_ */
  95. #define PRIV_STRING_GUEST (IDS_UI_SHELL_GEN_BASE+75)
  96. #define IDS_UnknownWorkgroup (IDS_UI_SHELL_GEN_BASE+76)
  97. #ifndef WIN32
  98. #define IERR_PasswordNoMatch (IDS_UI_SHELL_GEN_BASE+80)
  99. #define IERR_PasswordOldInvalid (IDS_UI_SHELL_GEN_BASE+81)
  100. #define IERR_PasswordTooRecent_Domain (IDS_UI_SHELL_GEN_BASE+82)
  101. #define IERR_PasswordTooRecent_Server (IDS_UI_SHELL_GEN_BASE+83)
  102. #define IERR_PasswordHistConflict (IDS_UI_SHELL_GEN_BASE+84)
  103. #define IERR_PasswordNewInvalid (IDS_UI_SHELL_GEN_BASE+85)
  104. #define IERR_PasswordTooShort (IDS_UI_SHELL_GEN_BASE+86)
  105. #endif
  106. #define IERR_CannotConnectAlias (IDS_UI_SHELL_GEN_BASE+92)
  107. #define IERR_ReplaceUnavailQuery (IDS_UI_SHELL_GEN_BASE+93)
  108. #define IERR_DisconnectNoRemoteDrives (IDS_UI_SHELL_GEN_BASE+94)
  109. #define IDS_LogonDialogCaptionFromApp (IDS_UI_SHELL_GEN_BASE+96)
  110. #define IERR_BadTransactConfig (IDS_UI_SHELL_GEN_BASE+97)
  111. #define IERR_BAD_NET_NAME (IDS_UI_SHELL_GEN_BASE+98)
  112. #define IERR_NOT_SUPPORTED (IDS_UI_SHELL_GEN_BASE+99)
  113. /* The following manifests are for the Browse, Connect, and Connection
  114. * dialogs. They are used in file\browdlg.cxx.
  115. * The IDSOFFSET_BROW_COUNT value indicates how many offset values
  116. * there are.
  117. * The BASE values in combination with the OFFSET values form a matrix
  118. * of strings.
  119. */
  120. #define IDSOFFSET_BROW_CAPTION_CONNECT 0
  121. #define IDSOFFSET_BROW_CAPTION_CONNS 1
  122. #define IDSOFFSET_BROW_CAPTION_BROW 2
  123. #define IDSOFFSET_BROW_SHOW_TEXT 3
  124. #define IDSOFFSET_BROW_IN_DOMAIN 4
  125. #define IDSOFFSET_BROW_ON_SERVER 5
  126. #define IDSOFFSET_BROW_DEVICE_TEXT 6
  127. #define IDSOFFSET_BROW_CURRENT_CONNS 7
  128. #define IDSOFFSET_BROW_COUNT 8
  129. #define IDSBASE_BROW_RES_TEXT_FILE IDS_UI_SHELL_BROW_BASE
  130. #define IDSBASE_BROW_RES_TEXT_PRINT (IDSBASE_BROW_RES_TEXT_FILE + IDSOFFSET_BROW_COUNT)
  131. #define IDSBASE_BROW_RES_TEXT_COMM (IDSBASE_BROW_RES_TEXT_PRINT + IDSOFFSET_BROW_COUNT)
  132. /* The following manifests are for the Password Change and Password
  133. * Expiry dialogs. Each pair of strings contains the messages for
  134. * the first and second static text strings under these situations:
  135. * EXPIRED: Password has already expired
  136. * EXPIRES_SOON: Password will expire in one or more days
  137. * EXPIRES_TODAY: Password will expire in less than 24 hours
  138. *
  139. * They should all be processed with the following
  140. * insertion strings:
  141. * Insertion String 0: Name of server/domain
  142. * Insertion String 1: Number of days until expiry (as text)
  143. */
  144. #define IDS_PASSWORD_EXPIRED IDS_UI_SHELL_PASS_BASE
  145. #define IDS_PASSWORD_EXPIRED_0 (IDS_PASSWORD_EXPIRED + 0)
  146. #define IDS_PASSWORD_EXPIRED_1 (IDS_PASSWORD_EXPIRED + 1)
  147. #define IDS_PASSWORD_EXPIRES_SOON (IDS_PASSWORD_EXPIRED + 2)
  148. #define IDS_PASSWORD_EXPIRES_SOON_0 (IDS_PASSWORD_EXPIRES_SOON + 0)
  149. #define IDS_PASSWORD_EXPIRES_SOON_1 (IDS_PASSWORD_EXPIRES_SOON + 1)
  150. #define IDS_PASSWORD_EXPIRES_TODAY (IDS_PASSWORD_EXPIRES_SOON + 2)
  151. #define IDS_PASSWORD_EXPIRES_TODAY_0 (IDS_PASSWORD_EXPIRES_TODAY + 0)
  152. #define IDS_PASSWORD_EXPIRES_TODAY_1 (IDS_PASSWORD_EXPIRES_TODAY + 1)
  153. // #define IDSBASE_PRINTMAN IDS_UI_SHELL_PASS_BASE+20
  154. #define IDS_CREDENTIALS_CAPTION (IDS_UI_SHELL_PASS_BASE+40)
  155. #define IDS_CREDENTIALS_MESSAGE (IDS_UI_SHELL_PASS_BASE+41)
  156. /* Note. The following string ID is the first one not used. If
  157. * you add any more strings, use this number as your first number, and
  158. * then update IDS_FirstValueThatIsNotUsed.
  159. */
  160. // #define IDS_FirstValueThatIsNotUsed (IDSBASE_PRINTMAN + 20)
  161. #endif
  162. /* Not used any more.
  163. #define IERR_MessageNoText (IDS_UI_SHELL_GEN_BASE+3)
  164. #define IERR_MessageRetry (IDS_UI_SHELL_GEN_BASE+4)
  165. #define IERR_MessageNoUser (IDS_UI_SHELL_GEN_BASE+5)
  166. #define IERR_LogoffQuery (IDS_UI_SHELL_GEN_BASE+6)
  167. #define IERR_LogoffQueryOpenFiles (IDS_UI_SHELL_GEN_BASE+7)
  168. #define IERR_NoServers (IDS_UI_SHELL_GEN_BASE+8)
  169. #define IDS_DMNoUser (IDS_UI_SHELL_GEN_BASE+11)
  170. #define IDS_DomainText (IDS_UI_SHELL_GEN_BASE+12)
  171. #define IDS_BrowseCaptionAll (IDS_UI_SHELL_GEN_BASE+13)
  172. #define IDS_BrowseCaptionDisk (IDS_UI_SHELL_GEN_BASE+14)
  173. #define IDS_BrowseCaptionPrint (IDS_UI_SHELL_GEN_BASE+15)
  174. #define IDS_BrowseShareText (IDS_UI_SHELL_GEN_BASE+16)
  175. #define IDS_VersionText (IDS_UI_SHELL_GEN_BASE+17)
  176. #define IERR_NetworkNotStarted (IDS_UI_SHELL_GEN_BASE+18)
  177. #define IERR_NoSupportForRealMode (IDS_UI_SHELL_GEN_BASE+21)
  178. #define IERR_CannotDisplayUserInfo (IDS_UI_SHELL_GEN_BASE+31)
  179. #define IERR_BadSharePassword (IDS_UI_SHELL_GEN_BASE+33)
  180. #define IERR_CannotInitMsgPopup (IDS_UI_SHELL_GEN_BASE+52)
  181. #define IERR_ProfileChangeError (IDS_UI_SHELL_GEN_BASE+60)
  182. #define IERR_ProfileLoadError (IDS_UI_SHELL_GEN_BASE+61)
  183. #define IERR_ProfileLoadErrorWithCancel (IDS_UI_SHELL_GEN_BASE+62)
  184. #define IERR_ProfileAlreadyAssigned (IDS_UI_SHELL_GEN_BASE+65)
  185. #define IERR_ProfileFileRead (IDS_UI_SHELL_GEN_BASE+66)
  186. #define FMT_NET_error (IDS_UI_SHELL_GEN_BASE+72)
  187. #define FMT_SYS_error (IDS_UI_SHELL_GEN_BASE+73)
  188. #define FMT_other_error (IDS_UI_SHELL_GEN_BASE+74)
  189. #define PRIV_STRING_USER (IDS_UI_SHELL_GEN_BASE+76)
  190. #define PRIV_STRING_ADMIN (IDS_UI_SHELL_GEN_BASE+77)
  191. #define IERR_DelUnavailQuery (IDS_UI_SHELL_GEN_BASE+87)
  192. #define IERR_DelUseOpenFilesQuery (IDS_UI_SHELL_GEN_BASE+88)
  193. #define IDS_DevicePromptDrive (IDS_UI_SHELL_GEN_BASE+90)
  194. #define IDS_DevicePromptDevice (IDS_UI_SHELL_GEN_BASE+91)
  195. #define IERR_OutOfStructures (IDS_UI_SHELL_GEN_BASE+95)
  196. */