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.

122 lines
3.0 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. ierrui.hxx
  5. Abstract:
  6. Contains Function Headers for internal Error UI
  7. functions.
  8. Author:
  9. Arthur L Bierer (arthurbi) 04-Apr-1996
  10. Revision History:
  11. 04-Apr-1996 arthurbi
  12. Created
  13. --*/
  14. DWORD
  15. LaunchAuthPlugInDlg(
  16. HTTP_REQUEST_HANDLE_OBJECT *pRequest,
  17. AUTHCTX * pAuthCtx,
  18. HWND hWnd,
  19. DWORD dwError,
  20. DWORD dwFlags,
  21. InvalidPassType *pipAuthUIInfo
  22. );
  23. DWORD
  24. LaunchDlg(
  25. IN HWND hWnd,
  26. IN LPVOID lpParam,
  27. IN DWORD dwDlgResource,
  28. IN DLGPROC pDlgProc
  29. );
  30. DWORD
  31. LaunchW95ErrorDlg(
  32. HWND hWnd,
  33. InvalidPassType *pipAuthUIInfo,
  34. BOOL fSilent
  35. );
  36. DWORD
  37. MapWininetErrorToDlgId(
  38. IN DWORD dwError,
  39. OUT LPDWORD lpdwDlgId,
  40. OUT LPDWORD lpdwDlgFlags,
  41. OUT DLGPROC *ppDlgProc
  42. );
  43. INT_PTR
  44. CALLBACK
  45. CertPickDialogProc(
  46. HWND hwnd,
  47. UINT msg,
  48. WPARAM wparam,
  49. LPARAM lparam
  50. );
  51. INT_PTR
  52. CALLBACK
  53. CookieDialogProc(
  54. HWND hwnd,
  55. UINT msg,
  56. WPARAM wparam,
  57. LPARAM lparam
  58. );
  59. #define MAX_CERT_TEXT_SIZE (3*1024)
  60. #define DLG_FLAGS_CAN_HAVE_CERT_INFO 0x0001
  61. #define DLG_FLAGS_HAS_CERT_INFO 0x0002
  62. #define DLG_FLAGS_HAS_TELL_ME_ABOUT 0x0004
  63. #define DLG_FLAGS_HAS_DISABLED_SELECTION 0x0010
  64. #define DLG_FLAGS_HAS_CERT_TEXT_IN_VOID 0x0020
  65. #define DLG_FLAGS_BRING_TO_FOREGROUND 0x0040
  66. #define DLG_FLAGS_IGNORE_CERT_CN_INVALID INTERNET_FLAG_IGNORE_CERT_CN_INVALID
  67. #define DLG_FLAGS_IGNORE_CERT_DATE_INVALID INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
  68. #define DLG_FLAGS_IGNORE_REDIRECT_TO_HTTPS INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS
  69. #define DLG_FLAGS_IGNORE_REDIRECT_TO_HTTP INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP
  70. #define DLG_FLAGS_IGNORE_INVALID_CA SECURITY_FLAG_IGNORE_UNKNOWN_CA
  71. #define DLG_FLAGS_IGNORE_FAILED_REVOCATION SECURITY_FLAG_IGNORE_REVOCATION
  72. // These flags should not use the same bits as any other SECURITY_FLAGS.
  73. // These are for internal use only but maintained on the same DWORD
  74. // as the SECURITY_FLAG bits.
  75. #define DLG_FLAGS_INVALID_CA 0x01000000
  76. #define DLG_FLAGS_SEC_CERT_CN_INVALID 0x02000000
  77. #define DLG_FLAGS_SEC_CERT_DATE_INVALID 0x04000000
  78. #define DLG_FLAGS_SEC_CERT_REV_FAILED 0x00800000
  79. //
  80. // help topic that the user gets when he clicks on
  81. // "tell me about Internet Security" Button
  82. //
  83. #define HELP_TOPIC_SECURITY 0x104f
  84. typedef struct {
  85. DWORD dwDlgFlags;
  86. DWORD dwDlgId;
  87. HINTERNET hInternetMapped;
  88. LPVOID lpVoid;
  89. } ERRORINFODLGTYPE, *PERRORINFODLGTYPE;
  90. typedef struct {
  91. InvalidPassType *pipt; // must be first element
  92. HTTP_REQUEST_HANDLE_OBJECT *pRequest;
  93. AUTHCTX *pAuthCtx;
  94. } CREDINFODLGTYPE, *PCREDINFODLGTYPE;
  95. // COOKIE_DLG_INFO moved to http.hxx