Leaked source code of windows server 2003
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.

58 lines
1.9 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Base provider defines
  3. #define WSZ_NULLSTRING L""
  4. // UI behavior types
  5. #define BP_CONFIRM_NONE 0x00000002 // never ask for pwd
  6. #define BP_CONFIRM_PASSWORDUI 0x00000004 // password
  7. #define BP_CONFIRM_OKCANCEL 0x00000008 // ok / cancel box
  8. #define WSZ_PASSWORD_WINDOWS L"Windows"
  9. #define WSZ_LOCAL_MACHINE L"*Local Machine*"
  10. // #define WSZ_LOCALMACHINE_MKNAME L"Machine Default"
  11. static
  12. BYTE RGB_LOCALMACHINE_KEY[] =
  13. { 0x12, 0x60, 0xBF, 0x5C, 0x0B,
  14. 0x36, 0x7E, 0x1B, 0xFE, 0xF9,
  15. 0xFC, 0x6B, 0x25, 0x36, 0x99,
  16. 0x98, 0x5A, 0xCB, 0xB2, 0x8C };
  17. // UNDONE UNDONE:
  18. // make this live in general protected storage config area
  19. #define PST_BASEPROV_SUBTYPE_STRING L"MS Base Provider"
  20. // 7F019FC0-AAC0-11d0-8C68-00C04FC297EB
  21. #define PST_BASEPROV_SUBTYPE_GUID \
  22. { \
  23. 0x7f019fc0, \
  24. 0xaac0, \
  25. 0x11d0, \
  26. { 0x8c, 0x68, 0x0, 0xc0, 0x4f, 0xc2, 0x97, 0xeb } \
  27. }
  28. // items that live in the base provider config area
  29. #define WSZ_CONFIG_USERCONFIRM_DEFAULTS L"User Confirmation Defaults"
  30. //////////////////
  31. // Protect APIs
  32. // stored at base protect key
  33. #define REGSZ_DEFAULT_ALLOW_CACHEPW L"AllowCachePW"
  34. // stored at provider subkey
  35. #define REGSZ_DEFAULT_ENCR_ALG L"Encr Alg"
  36. #define REGSZ_DEFAULT_MAC_ALG L"MAC Alg"
  37. #define REGSZ_DEFAULT_ENCR_ALG_KEYSIZE L"Encr Alg Key Size"
  38. #define REGSZ_DEFAULT_MAC_ALG_KEYSIZE L"MAC Alg Key Size"
  39. #define REGSZ_DEFAULT_CRYPT_PROV_TYPE L"Default CSP Type"
  40. BOOL FInitProtectAPIGlobals();
  41. BOOL FDeleteProtectAPIGlobals();