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.

81 lines
2.4 KiB

  1. #if !defined(AFX_USERLIST_H__3A1CD0AB_4FC3_11D1_BB5D_00A0C906345D__INCLUDED_)
  2. #define AFX_USERLIST_H__3A1CD0AB_4FC3_11D1_BB5D_00A0C906345D__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // USERLIST.h : header file
  7. //
  8. #include "users.h"
  9. #include "lmcons.h"
  10. #include "dns.h"
  11. #include "ntdsapi.h"
  12. #include <wincrypt.h>
  13. /////////////////////////////////////////////////////////////////////////////
  14. // USERLIST dialog
  15. class USERLIST : public CDialog
  16. {
  17. // Construction
  18. public:
  19. USERLIST(CWnd* pParent = NULL); // standard constructor
  20. USERLIST(LPCTSTR FileName, CWnd* pParent = NULL);
  21. DWORD ApplyChanges(LPCTSTR FileName);
  22. DWORD AddNewUsers(CUsers &NewUsers);
  23. // Dialog Data
  24. //{{AFX_DATA(USERLIST)
  25. enum { IDD = IDD_ENCRYPT_DETAILS };
  26. CButton m_BackupButton;
  27. CListCtrl m_RecoveryListCtrl;
  28. CListCtrl m_UserListCtrl;
  29. CButton m_AddButton;
  30. CButton m_RemoveButton;
  31. //}}AFX_DATA
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(USERLIST)
  35. protected:
  36. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. protected:
  40. // Generated message map functions
  41. //{{AFX_MSG(USERLIST)
  42. afx_msg void OnRemove();
  43. virtual void OnCancel();
  44. virtual void OnOK();
  45. virtual BOOL OnInitDialog();
  46. afx_msg void OnAdd();
  47. afx_msg void OnSetfocusListuser(NMHDR* pNMHDR, LRESULT* pResult);
  48. afx_msg void OnKillfocusListuser(NMHDR* pNMHDR, LRESULT* pResult);
  49. afx_msg void OnItemchangedListuser(NMHDR* pNMHDR, LRESULT* pResult);
  50. afx_msg void OnSetfocusListra(NMHDR* pNMHDR, LRESULT* pResult);
  51. afx_msg void OnBackup();
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. private:
  55. void ShowBackup();
  56. DWORD TryGetBetterNameInCert(PEFS_HASH_BLOB HashData, LPTSTR *UserName);
  57. void SetUpListBox(BOOL *Enable);
  58. void ShowRemove(void);
  59. DWORD GetCertNameFromCertContext(PCCERT_CONTEXT CertContext, LPTSTR * UserDispName);
  60. DWORD CertInStore(HCERTSTORE *pStores, DWORD StoreNum, PCCERT_CONTEXT selectedCert);
  61. CString m_FileName;
  62. CUsers m_Users;
  63. CUsers m_Recs;
  64. LONG m_CurrentUsers;
  65. CERT_CHAIN_PARA m_CertChainPara;
  66. };
  67. //{{AFX_INSERT_LOCATION}}
  68. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  69. #endif // !defined(AFX_USERLIST_H__3A1CD0AB_4FC3_11D1_BB5D_00A0C906345D__INCLUDED_)