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.

135 lines
3.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: wizpage.h
  8. //
  9. //--------------------------------------------------------------------------
  10. //+------------------------------------------------------------------------
  11. //
  12. // File: wizpage.h
  13. //
  14. // Contents: Header file for OCM wizard support functions.
  15. //
  16. // History: 04/17/97 JerryK Created
  17. //
  18. //-------------------------------------------------------------------------
  19. #ifndef __WIZPAGE_H__
  20. #define __WIZPAGE_H__
  21. typedef struct tagWizPageResEntry
  22. {
  23. int idResource;
  24. DLGPROC fnDlgProc;
  25. int idTitle;
  26. int idSubTitle;
  27. } WIZPAGERESENTRY, *PWIZPAGERESENTRY;
  28. typedef struct _PAGESTRINGS
  29. {
  30. int idControl;
  31. int idLog;
  32. int idMsgBoxNullString;
  33. DWORD idMsgBoxLenString;
  34. int cchMax; // max num of characters allowed
  35. WCHAR **ppwszString;
  36. } PAGESTRINGS;
  37. int FileExists(LPTSTR pszTestFileName);
  38. int DirExists(LPTSTR pszTestFileName);
  39. #define DE_DIREXISTS 1 // Return codes for
  40. #define DE_NAMEINUSE 2 // DirExists
  41. #define STRBUF_SIZE 2048
  42. #define UB_DESCRIPTION 1024 // This is not an X.500 limit
  43. #define UB_VALIDITY 4
  44. #define UB_VALIDITY_ANY 1024 // no limit actually
  45. extern PAGESTRINGS g_aIdPageString[];
  46. BOOL BrowseForDirectory(
  47. HWND hwndParent,
  48. LPCTSTR pszInitialDir,
  49. LPTSTR pszBuf,
  50. int cchBuf,
  51. LPCTSTR pszDialogTitle,
  52. BOOL bRemoveTrailingBackslash);
  53. DWORD
  54. SeekFileNameIndex(WCHAR const *pwszFullPath);
  55. BOOL
  56. IsAnyInvalidRDN(
  57. OPTIONAL HWND hDlg,
  58. PER_COMPONENT_DATA *pComp);
  59. HRESULT
  60. SetKeyContainerName(
  61. CASERVERSETUPINFO *pServer,
  62. const WCHAR * pwszKeyContainerName);
  63. HRESULT
  64. DetermineDefaultHash(CASERVERSETUPINFO *pServer);
  65. void
  66. ClearKeyContainerName(CASERVERSETUPINFO *pServer);
  67. HRESULT
  68. BuildRequestFileName(
  69. IN WCHAR const *pwszCACertFile,
  70. OUT WCHAR **ppwszRequestFile);
  71. HRESULT
  72. HookIdInfoPageStrings(
  73. HWND hDlg,
  74. PAGESTRINGS *pPageString,
  75. CASERVERSETUPINFO *pServer);
  76. HRESULT
  77. WizardPageValidation(
  78. IN HINSTANCE hInstance,
  79. IN BOOL fUnattended,
  80. IN HWND hDlg,
  81. IN PAGESTRINGS *pPageStrings);
  82. HRESULT
  83. StorePageValidation(
  84. HWND hDlg,
  85. PER_COMPONENT_DATA *pComp,
  86. BOOL *pfDontNext);
  87. HRESULT
  88. ExtractCommonName(
  89. LPCWSTR pcwszDN,
  90. LPWSTR* ppwszCN);
  91. INT_PTR
  92. WizIdInfoPageDlgProc(
  93. HWND hDlg,
  94. UINT iMsg,
  95. WPARAM wParam,
  96. LPARAM lParam);
  97. HRESULT
  98. WizPageSetTextLimits(
  99. HWND hDlg,
  100. IN OUT PAGESTRINGS *pPageStrings);
  101. BOOL
  102. IsEverythingMatched(CASERVERSETUPINFO *pServer);
  103. HRESULT BuildFullDN(
  104. OPTIONAL LPCWSTR pcwszCAName,
  105. OPTIONAL LPCWSTR pcwszDNSuffix,
  106. LPWSTR* pwszFullDN);
  107. HRESULT InitNameFields(CASERVERSETUPINFO *pServer);
  108. #endif // #ifndef __WIZPAGE_H__