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.

133 lines
3.1 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. DWORD
  53. SeekFileNameIndex(WCHAR const *pwszFullPath);
  54. BOOL
  55. IsAnyInvalidRDN(
  56. OPTIONAL HWND hDlg,
  57. PER_COMPONENT_DATA *pComp);
  58. HRESULT
  59. SetKeyContainerName(
  60. CASERVERSETUPINFO *pServer,
  61. const WCHAR * pwszKeyContainerName);
  62. HRESULT
  63. DetermineDefaultHash(CASERVERSETUPINFO *pServer);
  64. void
  65. ClearKeyContainerName(CASERVERSETUPINFO *pServer);
  66. HRESULT
  67. BuildRequestFileName(
  68. IN WCHAR const *pwszCACertFile,
  69. OUT WCHAR **ppwszRequestFile);
  70. HRESULT
  71. HookIdInfoPageStrings(
  72. PAGESTRINGS *pPageString,
  73. CASERVERSETUPINFO *pServer);
  74. HRESULT
  75. WizardPageValidation(
  76. IN HINSTANCE hInstance,
  77. IN BOOL fUnattended,
  78. IN HWND hDlg,
  79. IN PAGESTRINGS *pPageStrings);
  80. HRESULT
  81. StorePageValidation(
  82. HWND hDlg,
  83. PER_COMPONENT_DATA *pComp,
  84. BOOL *pfDontNext);
  85. HRESULT
  86. ExtractCommonName(
  87. LPCWSTR pcwszDN,
  88. LPWSTR* ppwszCN);
  89. INT_PTR
  90. WizIdInfoPageDlgProc(
  91. HWND hDlg,
  92. UINT iMsg,
  93. WPARAM wParam,
  94. LPARAM lParam);
  95. HRESULT
  96. WizPageSetTextLimits(
  97. HWND hDlg,
  98. IN OUT PAGESTRINGS *pPageStrings);
  99. BOOL
  100. IsEverythingMatched(CASERVERSETUPINFO *pServer);
  101. HRESULT BuildFullDN(
  102. OPTIONAL LPCWSTR pcwszCAName,
  103. OPTIONAL LPCWSTR pcwszDNSuffix,
  104. LPWSTR* pwszFullDN);
  105. HRESULT InitNameFields(CASERVERSETUPINFO *pServer);
  106. #endif // #ifndef __WIZPAGE_H__