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.

71 lines
2.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-2002.
  5. //
  6. // File: locate.h
  7. //
  8. // Contents:
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_LOCATE_H__DE5E8115_A351_11D1_861B_00C04FB94F17__INCLUDED_)
  12. #define AFX_LOCATE_H__DE5E8115_A351_11D1_861B_00C04FB94F17__INCLUDED_
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. // Locate.h : header file
  17. //
  18. #include "Wiz97PPg.h"
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CAddEFSWizLocate dialog
  21. class CAddEFSWizLocate : public CWizard97PropertyPage
  22. {
  23. DECLARE_DYNCREATE(CAddEFSWizLocate)
  24. // Construction
  25. public:
  26. CAddEFSWizLocate();
  27. ~CAddEFSWizLocate();
  28. // Dialog Data
  29. //{{AFX_DATA(CAddEFSWizLocate)
  30. enum { IDD = IDD_ADD_EFS_AGENT_SELECT_USER };
  31. CListCtrl m_UserAddList;
  32. //}}AFX_DATA
  33. // Overrides
  34. // ClassWizard generate virtual function overrides
  35. //{{AFX_VIRTUAL(CAddEFSWizLocate)
  36. public:
  37. virtual BOOL OnSetActive();
  38. virtual LRESULT OnWizardBack();
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. protected:
  44. // Generated message map functions
  45. //{{AFX_MSG(CAddEFSWizLocate)
  46. afx_msg void OnBrowseDir();
  47. afx_msg void OnBrowseFile();
  48. virtual BOOL OnInitDialog();
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. void EnableControls ();
  52. private:
  53. DWORD GetCertNameFromCertContext(PCCERT_CONTEXT pCertContext, PWSTR *ppwszUserCertName);
  54. HRESULT FindUserFromDir();
  55. bool IsCertificateRevoked (PCCERT_CONTEXT pCertContext);
  56. };
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  59. #endif // !defined(AFX_LOCATE_H__DE5E8115_A351_11D1_861B_00C04FB94F17__INCLUDED_)