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.

94 lines
2.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-2001.
  5. //
  6. // File: addsheet.h
  7. //
  8. // Contents:
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_ADDSHEET_H__AD17A140_5492_11D1_BB63_00A0C906345D__INCLUDED_)
  12. #define AFX_ADDSHEET_H__AD17A140_5492_11D1_BB63_00A0C906345D__INCLUDED_
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. // AddSheet.h : header file
  17. //
  18. #include "welcome.h"
  19. #include "locate.h"
  20. #include "complete.h"
  21. #pragma warning(push, 3)
  22. #include <dsclient.h>
  23. #pragma warning(pop)
  24. #include "Users.h" // Added by ClassView
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CAddEFSWizSheet
  27. class CAddEFSWizSheet : public CWizard97PropertySheet
  28. {
  29. // Construction
  30. public:
  31. CAddEFSWizSheet(UINT nIDCaption, CUsers& externalUsers, bool bMachineIsStandAlone);
  32. DWORD Add(
  33. LPWSTR UserName,
  34. LPWSTR DnName,
  35. PVOID UserCert,
  36. PSID UserSid = NULL,
  37. DWORD Flag = USERINFILE,
  38. PCCERT_CONTEXT pCertContext = NULL
  39. );
  40. DWORD Remove(
  41. LPCWSTR UserName,
  42. LPCWSTR CertName
  43. );
  44. PUSERSONFILE StartEnum(void);
  45. PUSERSONFILE GetNextUser(
  46. PUSERSONFILE Token,
  47. CString &UserName,
  48. CString &CertName
  49. );
  50. void ClearUserList(void);
  51. DWORD AddNewUsers(void);
  52. protected:
  53. void AddControlPages(void);
  54. // Attributes
  55. private:
  56. CUsers m_Users;
  57. CUsers& m_externalUsers;
  58. CAddEFSWizWelcome m_WelcomePage; // Welcome PropPage
  59. CAddEFSWizLocate m_LocatePage; // Locate User PropPage
  60. CAddEFSWizComplete m_CompletePage; // Complete PropPage
  61. CString m_SheetTitle;
  62. CLIPFORMAT m_cfDsObjectNames; // ClipBoardFormat
  63. // Attributes
  64. public:
  65. const bool m_bMachineIsStandAlone;
  66. // Operations
  67. public:
  68. // Implementation
  69. public:
  70. CLIPFORMAT GetDataFormat(void);
  71. virtual ~CAddEFSWizSheet();
  72. };
  73. /////////////////////////////////////////////////////////////////////////////
  74. //{{AFX_INSERT_LOCATION}}
  75. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  76. #endif // !defined(AFX_ADDSHEET_H__AD17A140_5492_11D1_BB63_00A0C906345D__INCLUDED_)