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.

338 lines
30 KiB

  1. #pragma once
  2. //-----------------------------------------------------------------------------
  3. //
  4. // File: pperr.h
  5. //
  6. // Passport error code definitions.
  7. //
  8. //-----------------------------------------------------------------------------
  9. #include <winerror.h>
  10. // General errors
  11. #define PP_E_COMFAIL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1000)
  12. #define PP_E_ERRORCODE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1001)
  13. #define PP_E_TOOMANYREQUESTS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1002)
  14. #define PP_E_SVC_NOT_CONFIGURED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1003)
  15. #define PP_E_NEEDSBIRTHDATE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1004)
  16. #define PP_E_MD5SILENTNOCONSENT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1005)
  17. #define PP_E_MD5SILENTNEEDPARENT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1006)
  18. #define PP_E_PROFILENOTEXIST MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1007)
  19. #define PP_E_TICKETEXPIRED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1008)
  20. #define PP_E_TICKETNOTEXIST MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1009)
  21. #define PP_E_SECTICKETNOTEXIST MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x100A)
  22. #define PP_E_SECTICKETNOTMATCH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x100B)
  23. #define PP_E_FORCESIGNIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x100C)
  24. #define PP_E_KPPVCMISSING MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x100D)
  25. #define PP_E_KPPVCINVALID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x100E)
  26. #define PP_E_KPPNONKIDSITE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x100F)
  27. #define PP_E_EXCLUDED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1010)
  28. #define PP_E_MEMBER_LOCKED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1011)
  29. #define PP_E_BAD_PASSWORD MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1012)
  30. #define PP_E_KIDNPP MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1014)
  31. #define PP_E_KIDSPASSPORTURL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1015)
  32. #define PP_E_NOT_OVER_SSL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1016)
  33. #define PP_E_INVALIDKPP MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1017)
  34. #define PP_E_INVALIDSITEID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1018)
  35. #define PP_E_INVALIDMEMBERNAME MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1019)
  36. #define PP_E_INVALIDRETURNURL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x101A)
  37. #define PP_E_INVALIDKEYVERSION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x101B)
  38. #define PP_E_INVALIDREQUEST MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x101C)
  39. #define PP_E_INVALIDPARAMS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x101D)
  40. #define PP_E_NOCREDENTIALS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x101E)
  41. #define PP_E_NOAUTH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x101F)
  42. #define PP_E_NO_SL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1020)
  43. #define PP_E_NO_ALIAS_NO_PASSWORD MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1021)
  44. #define PP_E_NO_ALIAS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1022)
  45. #define PP_E_NO_PASSWORD MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1023)
  46. #define PP_E_NO_DOMAIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1024)
  47. #define PP_E_NO_CHALLENGE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1025)
  48. #define PP_E_INVALIDMODE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1026)
  49. #define PP_E_USER_BAD_LOGIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1027)
  50. #define PP_E_SAME_USER_BAD_LOGIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1028)
  51. #define PP_E_DIFFERENT_USER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1029)
  52. #define PP_E_WRONG_CREDENTIALS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x102A)
  53. #define PP_E_WRONG_MODE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x102B)
  54. #define PP_E_BROWSERINCAPABLE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x102C)
  55. #define PP_E_BROWSERCOOKIEDISABLED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x102D)
  56. #define PP_E_CRED_INPUT_TOO_LONG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x102E)
  57. #define PP_E_NOT_EMAIL_INPUT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x102F)
  58. #define PP_E_MISSING_CREDS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1030)
  59. #define PP_E_MISSING_MEMBERNAME MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1031)
  60. #define PP_E_MISSING_PASSWORD MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1032)
  61. #define PP_E_MISSING_DOMAIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1033)
  62. #define PP_E_INVALID_MEMBERNAME MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1034)
  63. #define PP_E_WRONG_DA_DOMAIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1035)
  64. #define PP_E_NONE_AUTH_MODE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1036)
  65. #define PP_E_INVALID_CARD MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1037)
  66. #define PP_E_LOCATION_WRONG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1038)
  67. #define PP_E_SECRET_ANS_WRONG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1039)
  68. #define PP_E_KID_HAS_NO_CONSENT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x103A)
  69. #define PP_E_NO_COUNTRY MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x103B)
  70. #define PP_E_NO_REGION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x103C)
  71. #define PP_E_NO_POSTALCODE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x103D)
  72. #define PP_E_NO_SECRET_ANSWER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x103E)
  73. #define PP_E_NO_CREDIT_CARD MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x103F)
  74. #define PP_E_NEED_STRONG_CREDENTIALS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1040)
  75. #define PP_E_BAD_PIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1041)
  76. #define PP_E_EMAIL_TAKEN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1042)
  77. #define PP_E_BAD_PINSA MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1043)
  78. #define PP_E_MISSING_PIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1044)
  79. #define PP_E_MISSING_PINSA MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1045)
  80. #define PP_E_PIN_MISMATCH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1046)
  81. #define PP_E_PIN_INVALID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1047)
  82. #define PP_E_PIN_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1048)
  83. #define PP_E_PIN_TOO_SHORT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1049)
  84. #define PP_E_PIN_TOO_LONG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1050)
  85. #define PP_E_PIN_CONTAINS_MEMBERNAME MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1051)
  86. #define PP_E_FORCE_RENAME MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1052)
  87. #define PP_E_MISSING_PHONENUM MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1053)
  88. #define PP_E_MISSING_PHONEPIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1054)
  89. #define PP_E_PPM_NOTCAPABLE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1055)
  90. // Errors from ValidateFunctions.cpp
  91. #define PP_E_NAME_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1100)
  92. #define PP_E_NAME_TOO_SHORT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1101)
  93. #define PP_E_NAME_TOO_LONG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1102)
  94. #define PP_E_NAME_INVALID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1103)
  95. #define PP_E_PASSWORD_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1104)
  96. #define PP_E_PASSWORD_TOO_SHORT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1105)
  97. #define PP_E_PASSWORD_TOO_LONG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1106)
  98. #define PP_E_PASSWORD_CONTAINS_MEMBERNAME MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1107)
  99. #define PP_E_PASSWORD_INVALID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1108)
  100. #define PP_E_PASSWORD_MISMATCH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1109)
  101. #define PP_E_EMAIL_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x110A)
  102. #define PP_E_EMAIL_INVALID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x110B)
  103. #define PP_E_EMAIL_RIGHT_TOO_LONG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x110C)
  104. #define PP_E_EMAIL_INCOMPLETE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x110D)
  105. #define PP_E_EMAIL_INVALID_CHARS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x110E)
  106. #define PP_E_BIRTHDATE_NOTENTERED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x110F)
  107. #define PP_E_BIRTHYEAR_INVALID_CHARS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1110)
  108. #define PP_E_BIRTHYEAR_NOT_4DIGIT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1111)
  109. #define PP_E_BIRTHYEAR_TOO_LOW MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1112)
  110. #define PP_E_BIRTHYEAR_MISSING MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1113)
  111. #define PP_E_BIRTHMONTH_MISSING MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1114)
  112. #define PP_E_BIRTHMONTH_INVALID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1115)
  113. #define PP_E_BIRTHDAY_MISSING MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1116)
  114. #define PP_E_BIRTHDAY_INVALID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1117)
  115. #define PP_E_BADDAYFORMONTH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1118)
  116. #define PP_E_BIRTHDATE_UNDER18 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1119)
  117. #define PP_E_BIRTHDATE_IN_FUTURE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x111A)
  118. #define PP_E_PARENT_UNDER13 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x111B)
  119. #define PP_E_SECRETQA_NOQUESTION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x111C)
  120. #define PP_E_SECRETQA_NOANSWER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x111D)
  121. #define PP_E_SQ_INVALID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x111E)
  122. #define PP_E_SA_INVALID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x111F)
  123. #define PP_E_SA_TOOSHORT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1120)
  124. #define PP_E_SA_TOOLONG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1121)
  125. #define PP_E_SQ_TOOSHORT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1122)
  126. #define PP_E_SQ_TOOLONG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1123)
  127. #define PP_E_LOCATION_INVALID_REGION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1124)
  128. #define PP_E_LOCATION_INVALID_POSTALCODE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1125)
  129. #define PP_E_LOCATION_INVALID_POSTALCODECHARS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1126)
  130. #define PP_E_LOCATION_INVALID_COUNTRY MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1127)
  131. #define PP_E_GENDER_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1128)
  132. #define PP_E_GENDER_INVALID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1129)
  133. #define PP_E_LANGUAGE_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x112A)
  134. #define PP_E_TIMEZONE_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x112B)
  135. #define PP_E_OCCUPATION_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x112C)
  136. #define PP_E_SVC_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x112D)
  137. #define PP_E_SAVEPASSWORD_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x112E)
  138. #define PP_E_ACCESSIBILITY_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x112F)
  139. #define PP_E_ALLOWEMAILINPROFILE_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1130)
  140. #define PP_E_ALLOWPASSPORTNETWORKEMAIL_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1131)
  141. #define PP_E_MEMBER_EXIST MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1132)
  142. #define PP_E_EMAIL_MEMBER_EXIST MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1133)
  143. #define PP_E_EMAIL_MANAGED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1134)
  144. #define PP_E_SECRETQA_DUPLICATE_Q MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1135)
  145. #define PP_E_FIRSTNAME_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1136)
  146. #define PP_E_LASTNAME_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1137)
  147. #define PP_E_NICKNAME_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1138)
  148. #define PP_E_EMAIL_RESERVED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1139)
  149. #define PP_E_DOMAIN_INVALID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x113A)
  150. #define PP_E_SECRETQA_DUPLICATE_A MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x113B)
  151. #define PP_E_SECRETQA_NOMATCH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x113C)
  152. #define PP_E_EXTERNALFIELD_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x113D)
  153. #define PP_E_PARENT_INVALID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x113E)
  154. #define PP_E_INVALID_PHONENUMBER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x113F)
  155. #define PP_E_PHONENUMBER_EXIST MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1140)
  156. // Database Errors
  157. #define PP_E_DB_STRINGTOOLONG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1200)
  158. #define PP_E_DB_STRINGTOOSHORT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1201)
  159. #define PP_E_DB_INVALIDPASSWORD MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1202)
  160. #define PP_E_DB_INVALIDEMAIL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1203)
  161. #define PP_E_DB_INVALIDMEMBERNAME MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1204)
  162. #define PP_E_DB_MISSINGPARAMETERS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1205)
  163. #define PP_E_DB_FORBIDDENWORD MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1206)
  164. #define PP_E_DB_INVALIDDOMAINNAME MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1207)
  165. #define PP_E_DB_CRITICALERROR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1208)
  166. #define PP_E_DB_ERROR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1209)
  167. #define PP_E_DB_MEMBEREXISTS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x120A)
  168. #define PP_E_DB_MEMBERDOESNOTEXIST MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x120B)
  169. #define PP_E_DB_NODATA MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x120C)
  170. #define PP_E_DB_DUPLICATEFRIENDLYNAME MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x120D)
  171. #define PP_E_DB_ADDRESSDOESNOTEXIST MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x120E)
  172. #define PP_E_DB_CARDDOESNOTEXIST MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x120F)
  173. #define PP_E_DB_ADDRESSREFERENCEDBYCARD MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1210)
  174. #define PP_E_DB_KIDSSITENOTLISTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1211)
  175. #define PP_E_DB_SITEALREADYREQUESTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1212)
  176. #define PP_E_DB_CONNECTIONTIMEOUT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1213)
  177. #define PP_E_DB_NOCONNECTIONAVAILABLE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1224)
  178. // XML interface errors
  179. #define PP_E_XML_PARSE_ERROR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1300)
  180. #define PP_E_XML_NO_CLIENTINFO MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1301)
  181. #define PP_E_XML_UNKNOWN_CLIENTVERSION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1302)
  182. #define PP_E_XML_NAME_AND_PASSWORD_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1303)
  183. #define PP_E_XML_DOMAIN_BLANK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1304)
  184. #define PP_E_XML_INCOMPLETE_MEMBERNAME MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1305)
  185. #define PP_E_XML_NO_SUCH_NODE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1306)
  186. #define PP_E_XML_NO_TEXT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1307)
  187. #define PP_E_XML_INVALID_ROOTTAG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1308)
  188. #define PP_E_XML_USER_ALREADY_LOGGEDIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1309)
  189. #define PP_E_XML_KEYVERSION_NOT_A_NUMBER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x130A)
  190. #define PP_E_XML_NO_USER_LOGGED_IN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x130B)
  191. #define PP_E_XML_NO_SUCH_ATTRIBUTE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x130C)
  192. // Global Init object errors
  193. #define PP_E_GLOBALINIT_BASE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1400)
  194. #define PP_E_GLOBALINIT_MISSING_PCONTROL_SERVICE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1400)
  195. #define PP_E_GLOBALINIT_NOAGENT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1401)
  196. #define PP_E_GLOBALINIT_DOMAINGET_BINDFAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1402)
  197. #define PP_E_GLOBALINIT_MISSING_STRINGTABLE_SERVICE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1403)
  198. #define PP_E_GLOBALINIT_DOMAINGET_EXECUTEFAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1404)
  199. #define PP_E_GLOBALINIT_MISSING_DOMAINID_CONFIG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1405)
  200. #define PP_E_GLOBALINIT_INVALID_DOMAIN_INDEX MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1406)
  201. #define PP_E_GLOBALINIT_BUFFER_TOO_SMALL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1407)
  202. #define PP_E_GLOBALINIT_MISSING_MANAGER_SERVICE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1408)
  203. #define PP_E_GLOBALINIT_ADDSTRING_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1409)
  204. #define PP_E_GLOBALINIT_DOMAINGET_GETROWEXFAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x140A)
  205. #define PP_E_GLOBALINIT_DOMAINGET_GETITEMFAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x140B)
  206. #define PP_E_GLOBALINIT_ADDNUMBER_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x140C)
  207. // Digest Errors
  208. #define PP_E_DIGEST_PARSE_AUTH_HEADER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1500)
  209. #define PP_E_DIGEST_OPAQUE_MISSMATCH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1501)
  210. #define PP_E_DIGEST_ALGORITHM_MISSMATCH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1502)
  211. #define PP_E_DIGEST_REALMS_MISSMATCH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1503)
  212. #define PP_E_DIGEST_URL_MISSMATCH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1504)
  213. #define PP_E_DIGEST_USERNAME_MISSING MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1505)
  214. #define PP_E_DIGEST_CNONCE_MISSING MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1506)
  215. #define PP_E_DIGEST_NONCE_COUNT_MISSING MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1507)
  216. #define PP_E_DIGEST_NONCE_MISSING MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1508)
  217. #define PP_E_DIGEST_UNSUPPORTED_KPP_MODE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1509)
  218. #define PP_E_DIGEST_NONCE_MISSMATCH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x150A)
  219. #define PP_E_DIGEST_RESPONSE_TIMEOUT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x150B)
  220. #define PP_E_DIGEST_RESPONSE_MISSING MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x150C)
  221. // MD5 Silent Errors
  222. #define PP_E_MD5SILENT_SITEID_IS_ONE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1600)
  223. #define PP_E_MD5SILENT_INVALID_T MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1601)
  224. #define PP_E_MD5SILENT_INVALID_P MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1602)
  225. #define PP_E_MD5SILENT_INVALID_KPP MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1603)
  226. // Inline Signin Errors
  227. #define PP_E_INLINESIGNIN_NOT_ALLOWED_FOR_SITE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1700)
  228. #define PP_E_INLINESIGNIN_SSL_REQUIRED_FOR_POST MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1701)
  229. // NetPartnerInfo (NSO) Errors
  230. #define PP_E_NETPARTNERINFO_UNINITIALZED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1800)
  231. #define PP_E_NETPARTNERINFO_SITEID_NOT_FOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1801)
  232. #define PP_E_NETPARTNERINFO_DECRYPT_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1802)
  233. #define PP_E_NETPARTNERINFO_KEYSIZE_MISMATCH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1803)
  234. #define PP_E_NETPARTNERINFO_CREATEFILE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1804)
  235. #define PP_E_NETPARTNERINFO_WRITEFILE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1805)
  236. #define PP_E_NETPARTNERINFO_READFILE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1806)
  237. // Com object errors
  238. #define PP_E_HASHSTRING_ADDRECORD_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1900)
  239. #define PP_E_MD5_HASH_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1901)
  240. // Globalization errors
  241. #define PP_E_GLOBALIZATION_INVALID_COUNTRY_ID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A00)
  242. #define PP_E_GLOBALIZATION_INVALID_REGION_ID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A01)
  243. #define PP_E_GLOBALIZATION_INVALID_POSTAL_ID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A02)
  244. #define PP_E_GLOBALIZATION_INVALID_GEO_ID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A03)
  245. #define PP_E_GLOBALIZATION_INVALID_TIMEZONE_ID MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A04)
  246. #define PP_E_GLOBALIZATION_INVALID_REGION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A05)
  247. #define PP_E_GLOBALIZATION_INVALID_TIMEZONE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A06)
  248. #define PP_E_GLOBALIZATION_INVALID_INDEX MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A07)
  249. #define PP_E_GLOBALIZATION_INVALID_DATA MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A08)
  250. #define PP_E_GLOBALIZATION_INVALID_DATA_TYPE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A09)
  251. #define PP_E_GLOBALIZATION_OBJ_IS_NULL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A0A)
  252. #define PP_E_GLOBALIZATION_PTR_IS_NULL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A0B)
  253. #define PP_E_GLOBALIZATION_STREAM_IS_NULL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A0C)
  254. #define PP_E_GLOBALIZATION_BSTR_EXPECTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A0D)
  255. #define PP_E_GLOBALIZATION_SEMICOLON_NOT_FOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A0E)
  256. #define PP_E_GLOBALIZATION_COMMA_NOT_FOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A0F)
  257. #define PP_E_GLOBALIZATION_ALREADY_LOADED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A10)
  258. #define PP_E_GLOBALIZATION_LCIDINFO_NOT_LOADED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A11)
  259. #define PP_E_GLOBALIZATION_LCIDINFO_NOT_PREPARED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A12)
  260. #define PP_E_GLOBALIZATION_REGION_LOAD_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A13)
  261. #define PP_E_GLOBALIZATION_TIMEZONE_LOAD_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A14)
  262. #define PP_E_GLOBALIZATION_LOOKUP_OBJ_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A15)
  263. #define PP_E_GLOBALIZATION_LOADVALUES_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A16)
  264. #define PP_E_GLOBALIZATION_GETLOCALINFO_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A17)
  265. #define PP_E_GLOBALIZATION_STRING_RETURNED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A18)
  266. #define PP_E_GLOBALIZATION_W2A_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A19)
  267. #define PP_E_GLOBALIZATION_A2W_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A1A)
  268. #define PP_E_GLOBALIZATION_INSTREAM_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A1B)
  269. #define PP_E_GLOBALIZATION_GET_LCIDINFODIR_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A1C)
  270. #define PP_E_GLOBALIZATION_STRING_TOO_LONG MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A1D)
  271. #define PP_E_GLOBALIZATION_IDTABLE_NOT_INIT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1A1E)
  272. // DelegatedAdmin Errors
  273. #define PP_E_DELEGADMIN_INVALID_ADMIN_ELE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B00)
  274. #define PP_E_DELEGADMIN_INVALID_ADMIN_TICKET MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B01)
  275. #define PP_E_DELEGADMIN_DOMAIN_ALREADY_MANAGED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B02)
  276. #define PP_E_DELEGADMIN_DOMAIN_NOT_MANAGED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B03)
  277. #define PP_E_DELEGADMIN_DOMAIN_NOT_PARTNERS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B04)
  278. #define PP_E_DELEGADMIN_INVALID_NS_ADMIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B05)
  279. #define PP_E_DELEGADMIN_INVALID_PARTNER_ADMIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B06)
  280. #define PP_E_DELEGADMIN_ERROR_LOADING_XMLRQ MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B07)
  281. #define PP_E_DELEGADMIN_INVALID_AUTH_ELE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B08)
  282. #define PP_E_DELEGADMIN_INVALID_DOMAIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B09)
  283. #define PP_E_DELEGADMIN_INVALID_ACTION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B0a)
  284. #define PP_E_DELEGADMIN_INVALID_CLIENTVERSION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B0b)
  285. #define PP_E_DELEGADMIN_NOTALLOWED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B0c)
  286. #define PP_E_DELEGADMIN_INVALID_USER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B0d)
  287. #define PP_E_DELEGADMIN_INVALID_USER_ELE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B0e)
  288. #define PP_E_DELEGADMIN_INVALID_PARAM MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B0f)
  289. #define PP_E_DELEGADMIN_NOT_NAMESPACE_PARTNER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1B10)
  290. // Update Server Errors
  291. #define PP_E_UPDATE_UPDATES_NOT_ALLOWED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1C00)
  292. // Profile Server Errors
  293. #define PP_E_PROFILE_REG_LOGIN_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1D00)
  294. #define PP_E_EMAILRESPONSE_INTERNALERROR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1D01) // unexpected error (status should be of VT_INT) return from EmailResponse object
  295. #define PP_E_EMAIL_NOT_FOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1D02)
  296. #define PP_E_LCID_NOT_FOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1D03)
  297. #define PP_E_EMAILRESPONSE_CHECKSECRET MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1D04)
  298. // PST Support Object Errors
  299. #define PP_E_PSTUTIL_INVALID_EMAIL_STATUS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1E00)
  300. #define PP_E_PSTUTIL_INVALID_ADMIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1E01)
  301. #define PP_E_PSTUTIL_INVALID_CRED_TYPE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x1E02)
  302. // map db error to application error defined above
  303. HRESULT DBError(HRESULT hr);
  304. // EOF