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.

130 lines
3.6 KiB

  1. #ifndef _PROVUI_H_
  2. #define _PROVUI_H_
  3. #include "pstypes.h"
  4. #include "dispif.h"
  5. //////////////////////////////
  6. // string resources we load
  7. extern LPWSTR g_PromptReadItem;
  8. extern LPWSTR g_PromptOpenItem;
  9. extern LPWSTR g_PromptWriteItem;
  10. extern LPWSTR g_PromptDeleteItem;
  11. extern LPWSTR g_PasswordNoVerify;
  12. extern LPWSTR g_PasswordWinNoVerify;
  13. extern LPWSTR g_PasswordSolicitOld;
  14. //////////////////////////////
  15. // String load/unload routines
  16. BOOL InitUI();
  17. BOOL ReleaseUI();
  18. //////////////////////////////
  19. // Miscellaneous support
  20. BOOL
  21. FIsProviderUIAllowed(
  22. LPCWSTR szUser
  23. );
  24. //////////////////////////////
  25. // Dialogs
  26. BOOL FSimplifiedPasswordConfirm(
  27. PST_PROVIDER_HANDLE* phPSTProv,
  28. LPCWSTR szUserName,
  29. LPCWSTR szCallerName,
  30. LPCWSTR szType,
  31. LPCWSTR szSubtype,
  32. LPCWSTR szItemName,
  33. PPST_PROMPTINFO psPrompt,
  34. LPCWSTR szAccessType,
  35. LPWSTR* ppszPWName,
  36. DWORD* pdwPasswordOptions,
  37. BOOL fAllowUserFreedom,
  38. // BOOL* pfCacheThisPasswd,
  39. BYTE rgbPasswordDerivedBytes[],
  40. DWORD cbPasswordDerivedBytes,
  41. BYTE rgbPasswordDerivedBytesLowerCase[],
  42. DWORD cbPasswordDerivedBytesLowerCase,
  43. DWORD dwFlags);
  44. BOOL FChangePassword(
  45. HWND hParentWnd,
  46. LPCWSTR szUserName);
  47. BOOL FGetChangedPassword(
  48. PST_PROVIDER_HANDLE* phPSTProv,
  49. HWND hParentWnd,
  50. LPCWSTR szUserName,
  51. LPCWSTR szPasswordName,
  52. BYTE rgbNewPasswordDerivedBytes[]);
  53. //////////////////////////////
  54. // Dialog box args
  55. typedef struct _PW_DIALOG_ARGS
  56. {
  57. PST_PROVIDER_HANDLE* phPSTProv;
  58. LPCWSTR szAppName;
  59. LPCWSTR szAccess;
  60. LPCWSTR szPrompt;
  61. LPCWSTR szItemType;
  62. LPCWSTR szItemName;
  63. LPCWSTR szUserName;
  64. LPWSTR* ppszPWName;
  65. LPWSTR* ppszPW;
  66. DWORD* pdwPasswordOptions;
  67. BOOL fAllowConfirmChange; // defining subtype
  68. BOOL* pfCacheThisPasswd;
  69. BYTE* rgbPwd; // A_SHA_DIGEST_LEN
  70. BYTE* rgbPwdLowerCase; // A_SHA_DIGEST_LEN
  71. LUID luidAuthID; // Windows NT authentication ID
  72. DWORD dwFlags; // dwFlags to SP calls.
  73. HDC hMyDC;
  74. HICON hIcon;
  75. int xIconPos;
  76. int yIconPos;
  77. } PW_DIALOG_ARGS, *PPW_DIALOG_ARGS;
  78. /*
  79. typedef struct _NEWPW_DIALOGARGS
  80. {
  81. LPCWSTR szUserName;
  82. LPWSTR* ppszPWName;
  83. LPWSTR* ppszPW;
  84. } NEWPW_DIALOGARGS, *PNEWPW_DIALOGARGS;
  85. */
  86. typedef struct _OLDNEWPW_DIALOGARGS
  87. {
  88. LPCWSTR szUserName;
  89. LPWSTR* ppszPWName;
  90. LPWSTR* ppszOldPW;
  91. LPWSTR* ppszNewPW;
  92. } OLDNEWPW_DIALOGARGS, *POLDNEWPW_DIALOGARGS;
  93. typedef struct _SOLICITOLDPW_DIALOGARGS
  94. {
  95. LPCWSTR szPWName;
  96. LPWSTR* ppszOldPW;
  97. LPWSTR* ppszNewPW;
  98. } SOLICITOLDPW_DIALOGARGS, *PSOLICITOLDPW_DIALOGARGS;
  99. typedef struct _ADVANCEDCONFIRM_DIALOGARGS
  100. {
  101. LPCWSTR szUserName;
  102. LPWSTR* ppszPWName;
  103. LPWSTR* ppszPW;
  104. DWORD* pdwPasswordOptions;
  105. LPCWSTR szItemName;
  106. } ADVANCEDCONFIRM_DIALOGARGS, *PADVANCEDCONFIRM_DIALOGARGS;
  107. #endif // _PROVUI_H_