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.

169 lines
5.8 KiB

  1. // names of supported credential fields ....
  2. #define CRED_MEMBERNAME "SignInName"
  3. #define CRED_DOMAIN "Domain"
  4. #define CRED_PASSWORD "Password"
  5. #define CRED_CONFIRMPASSWORD "ConfirmedPassword"
  6. #define CRED_SECRETQ "SecretQuestion"
  7. #define CRED_SECRETA "SecretAnswer"
  8. #define CRED_MOBILEPHONE "MobilePhone"
  9. #define CRED_MOBILEPIN "MobilePin"
  10. #define CRED_CONFIRMMOBILEPIN "ConfirmedMobilePin"
  11. #define CRED_SA_PIN "SecurePIN"
  12. #define CRED_SA_CONFIRMPIN "ConfirmSecurePIN"
  13. #define CRED_SA_SECRETQ1 "SecretQ1"
  14. #define CRED_SA_SECRETQ2 "SecretQ2"
  15. #define CRED_SA_SECRETQ3 "SecretQ3"
  16. #define CRED_SA_SECRETA1 "SecretA1"
  17. #define CRED_SA_SECRETA2 "SecretA2"
  18. #define CRED_SA_SECRETA3 "SecretA3"
  19. #define CRED_SA_SECRETA1_VERIFY "SecretA1Verify"
  20. #define CRED_SA_SECRETA2_VERIFY "SecretA2Verify"
  21. #define CRED_SA_SECRETA3_VERIFY "SecretA3Verify"
  22. #define CRED_SA_HIDDEN_FLAG "HiddenFlag"
  23. // names of supported profile fields ....
  24. #define PROF_EMAIL "Email"
  25. #define PROF_BIRTHDATE "Birthdate"
  26. #define PROF_COUNTRY "Country"
  27. #define PROF_REGION "Region"
  28. #define PROF_POSTALCODE "PostalCode"
  29. #define PROF_GENDER "Gender"
  30. #define PROF_LANGUAGE "PrefLanguage"
  31. #define PROF_ACCESSIBILITY "Accessibility"
  32. #define PROF_NICKNAME "NickName"
  33. #define PROF_FIRSTNAME "FirstName"
  34. #define PROF_LASTNAME "LastName"
  35. #define PROF_TIMEZONE "TimeZone"
  36. #define PROF_OCCUPATION "Occupation"
  37. //
  38. //These profile fields below are not persisted in DB.
  39. //They are viewed as (non-persist) external items.
  40. //The difference between these fields and partner customized external items
  41. //is their SectionID=-1
  42. #define PROF_VOLATILE_SAVEPASSWORD "SavePassword"
  43. // names of system fields ...
  44. #define SYSTEM_WALLET "Wallet"
  45. #define SYSTEM_DIR1_HMMPP "Dir1_HM_MPP"
  46. #define SYSTEM_DIR2_HMDIRSEARCH "Dir2_HM_DirSearch"
  47. #define SYSTEM_DIR3_HMWHITEPAGE "Dir3_HM_WhitePage"
  48. #define SYSTEM_DIR4_PPMPP "Dir4_PP_MPP"
  49. #define SYSTEM_BIRTHDATE_PRECISION "BirthdatePrecision"
  50. #define SYSTEM_PROFILEVERSION "ProfileVersion"
  51. #define SYSTEM_FLAG1 "Flag1_PreferredEmailVerified"
  52. #define SYSTEM_FLAG2 "Flag2_HMActivated"
  53. #define SYSTEM_FLAG3 "Flag3_HMPwdRecovered"
  54. #define SYSTEM_FLAG4 "Flag4_WalletUpload"
  55. #define SYSTEM_FLAG5 "Flag5_HMMemberBlocked"
  56. #define SYSTEM_FLAG6_7 "Flag6_7_AffiliateConsent"
  57. #define SYSTEM_FLAG8_9 "Flag8_9_AccountType"
  58. #define SYSTEM_FLAG10 "Flag10_EASI"
  59. #define SYSTEM_FLAG11 "Flag11_PPEmailVerified"
  60. #define SYSTEM_FLAG12 "Flag12_MSNIA"
  61. #define SYSTEM_FLAG13 "Flag13_MSNMOBILE"
  62. //#define SYSTEM_FLAG31 "Flag31_NOTUSED"
  63. #define SYSTEM_FLAG32 "Flag32_KidConsentCookie"
  64. // misc bit 2 is a bit 1 (EMAIL) in profileconsent field (under profileconsent) category
  65. #define SYSTEM_MISC1_PPMARKETING "Misc1_PP_Marketing"
  66. #define SYSTEM_DOMAINADMIN "DomainAdministrator"
  67. // -1, 'ProfileConsent'
  68. //
  69. // Starting point for a field cateogry
  70. // Never change these numbers without consulting NexusDB
  71. //
  72. #define FIELD_INVALID 0x0000
  73. #define CREDENTIAL_FIRST_TAG 0x0001
  74. #define PROFILE_FIRST_TAG 0x10000
  75. #define SYSTEM_FIRST_TAG 0x20000
  76. #define CONSENT_FIRST_TAG 0x30000
  77. #define NEXT_CATEGORY_FIRST_TAG 0x40000
  78. #define CREDENTIAL_LAST_TAG (PROFILE_FIRST_TAG-1)
  79. #define PROFILE_LAST_TAG (SYSTEM_FIRST_TAG-1)
  80. // Suwat is putting some system flags that runtime shouldn't load
  81. // These flags would be at the high end of the system ID's
  82. // Ignore those
  83. #define SYSTEM_LAST_TAG (CONSENT_FIRST_TAG-1 - 0x300)
  84. #define CONSENT_LAST_TAG (NEXT_CATEGORY_FIRST_TAG -1)
  85. // email sq credential
  86. #define FIELD_CRED_MEMBERNAME 0x0001
  87. #define FIELD_CRED_PASSWORD 0x0002
  88. #define FIELD_CRED_SECRETQ 0x0003
  89. #define FIELD_CRED_SECRETA 0x0004
  90. #define FIELD_CRED_CONFIRMPASSWORD 0x0005
  91. // secure token pin 3qa credential
  92. #define FIELD_CRED_SA_SECRETQ1 0x0006
  93. #define FIELD_CRED_SA_SECRETQ2 0x0007
  94. #define FIELD_CRED_SA_SECRETQ3 0x0008
  95. #define FIELD_CRED_SA_SECRETA1 0x0009
  96. #define FIELD_CRED_SA_SECRETA2 0x000A
  97. #define FIELD_CRED_SA_SECRETA3 0x000B
  98. #define FIELD_CRED_SA_PIN 0x000C
  99. #define FIELD_CRED_SA_CONFIRMPIN 0x000D
  100. #define FIELD_CRED_SA_SECRETA1_VERIFY 0x000E
  101. #define FIELD_CRED_SA_SECRETA2_VERIFY 0x000F
  102. #define FIELD_CRED_SA_SECRETA3_VERIFY 0x0010
  103. #define FIELD_CRED_SA_HIDDEN_FLAG 0x0011
  104. //mobile pin credential
  105. #define FIELD_CRED_MOBILEPHONE 0x0012
  106. #define FIELD_CRED_MOBILEPIN 0x0013
  107. #define FIELD_CRED_CONFIRMMOBILEPIN 0x0014
  108. //
  109. // cred flags needed for barry's delegated admin
  110. // These are not real fields at all. Don't use them to call into CUserProfile
  111. #define FIELD_CRED_DBFLAG_ACTIVE 0xFFFD
  112. #define FIELD_CRED_DBFLAG_MANAGED 0xFFFE
  113. // consent
  114. #define FIELD_CONSENT_PROFILE CONSENT_FIRST_TAG
  115. #define FIELD_CONSENT_CREDENTIAL CONSENT_FIRST_TAG + 1
  116. #define FIELD_CONSENT_SYSTEM CONSENT_FIRST_TAG + 2
  117. // Use for Site 3, device=web, in order to get traditional passport core fields.
  118. #define DEFAULT_DEVICESTYLE_WEB "web"
  119. #define DEFAULT_DEVICESTYLE_WIZ "wiz"
  120. //
  121. //
  122. //
  123. #define QRY_PAGE "pppage"
  124. #define QRY_PPDIRECTION "ppdir"
  125. #define QRY_RST "rst"
  126. #define QRY_PPERR "pperr"
  127. //#define FORM_IS_SPECIAL_PASSWORD_PAGE "HiddenSpecialPasswordPage"
  128. #define QRY_VALUE_PPDIRECTION_NEXT "next"
  129. #define QRY_VALUE_PPDIRECTION_PREV "prev"
  130. #define QRY_VALUE_PPERROR_MEMBEREXIST "1"
  131. //#define FORM_VALUE_IS_SPECIAL_PASSWORD_PAGE "1"
  132. #define DEVICE_ATTRIBUTE_WIZARDAFTER "WizardPageAfter"
  133. #define DEVICE_ATTRIBUTE_WIZARDBEFORE "WizardPageBefore"