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.

69 lines
2.4 KiB

  1. // is this a user key or not?
  2. BOOL FIsUserMasterKey(
  3. LPCWSTR szMasterKey);
  4. // retreive the users' windows password buffer
  5. BOOL FMyGetWinPassword(
  6. PST_PROVIDER_HANDLE* phPSTProv,
  7. LPCWSTR szUser,
  8. BYTE rgbPwd[A_SHA_DIGEST_LEN]);
  9. DWORD BPVerifyPwd(
  10. PST_PROVIDER_HANDLE* phPSTProv,
  11. LPCWSTR szUser,
  12. LPCWSTR szMasterKey,
  13. BYTE rgbPwd[],
  14. DWORD dwPasswordOption);
  15. // retrieves user defaults
  16. HRESULT GetUserConfirmDefaults(
  17. PST_PROVIDER_HANDLE* phPSTProv,
  18. DWORD* pdwDefaultConfirmationStyle,
  19. LPWSTR* ppszMasterKey);
  20. // Be-all, end-all of user confirmation APIs
  21. // gets whatever confirmation is necessary
  22. HRESULT GetUserConfirmBuf(
  23. PST_PROVIDER_HANDLE* phPSTProv,
  24. LPCWSTR szUser,
  25. PST_KEY Key,
  26. LPCWSTR szType,
  27. const GUID* pguidType,
  28. LPCWSTR szSubtype,
  29. const GUID* pguidSubtype,
  30. LPCWSTR szItemName,
  31. PPST_PROMPTINFO psPrompt,
  32. LPCWSTR szAction,
  33. DWORD dwDefaultConfirmationStyle,
  34. LPWSTR* ppszMasterKey,
  35. BYTE rgbPwd[A_SHA_DIGEST_LEN],
  36. DWORD dwFlags);
  37. // Calls above API with PST_CF_DEFAULT as dwDefaultConfirmationStyle
  38. HRESULT GetUserConfirmBuf(
  39. PST_PROVIDER_HANDLE* phPSTProv,
  40. LPCWSTR szUser,
  41. PST_KEY Key,
  42. LPCWSTR szType,
  43. const GUID* pguidType,
  44. LPCWSTR szSubtype,
  45. const GUID* pguidSubtype,
  46. LPCWSTR szItemName,
  47. PPST_PROMPTINFO psPrompt,
  48. LPCWSTR szAction,
  49. LPWSTR* ppszMasterKey,
  50. BYTE rgbPwd[A_SHA_DIGEST_LEN],
  51. DWORD dwFlags);
  52. // forces UI with OK/Cancel behavior
  53. HRESULT ShowOKCancelUI(
  54. PST_PROVIDER_HANDLE* phPSTProv,
  55. LPCWSTR szUser,
  56. PST_KEY Key,
  57. LPCWSTR szType,
  58. LPCWSTR szSubtype,
  59. LPCWSTR szItemName,
  60. PPST_PROMPTINFO psPrompt,
  61. LPCWSTR szAction);