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.

64 lines
1.6 KiB

  1. // mimemap1.h : header file
  2. //
  3. #include "mimemapc.h"
  4. typedef struct _MIME_ENTRY {
  5. struct _MIME_ENTRY *NextPtr;
  6. CMimeMap *mimeData;
  7. DWORD iListIndex;
  8. BOOL DeleteCurrent;
  9. BOOL WriteNew;
  10. } MIME_ENTRY, *PMIME_ENTRY;
  11. /////////////////////////////////////////////////////////////////////////////
  12. // MIMEMAP1 dialog
  13. class MIMEMAP1 : public CGenPage
  14. {
  15. DECLARE_DYNCREATE(MIMEMAP1)
  16. // Construction
  17. public:
  18. MIMEMAP1();
  19. ~MIMEMAP1();
  20. // Dialog Data
  21. //{{AFX_DATA(MIMEMAP1)
  22. enum { IDD = IDD_MIMEMAP1 };
  23. CListBox m_lboxMimeMapList;
  24. //}}AFX_DATA
  25. CRegKey *m_rkMimeKey;
  26. // Overrides
  27. // ClassWizard generate virtual function overrides
  28. //{{AFX_VIRTUAL(MIMEMAP1)
  29. protected:
  30. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  31. virtual void SaveInfo(void);
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. protected:
  35. // Generated message map functions
  36. //{{AFX_MSG(MIMEMAP1)
  37. virtual BOOL OnInitDialog();
  38. afx_msg void OnMimemapaddbutton();
  39. afx_msg void OnMimemapremovebutton();
  40. afx_msg void OnMimemapeditbutton();
  41. afx_msg void OnDblclkMimemaplist1();
  42. //}}AFX_MSG
  43. DECLARE_MESSAGE_MAP()
  44. BOOL AddMimeEntry(CString &);
  45. BOOL AddMimeEntry(LPCTSTR pchFileExtension, LPCTSTR pchMimeType, LPCTSTR pchImageFile, LPCTSTR pchGoperType);
  46. void DeleteMimeList();
  47. void DeleteMimeMapping(int iCurSel);
  48. BOOL EditMimeMapping(int iCurSel, PMIME_ENTRY pmeEditEntry, LPCTSTR pchFileExtension, LPCTSTR pchMimeType,
  49. LPCTSTR pchImageFile, LPCTSTR pchGopherType);
  50. DWORD m_ulMimeIndex;
  51. BOOL m_bMimeEntriesExist;
  52. PMIME_ENTRY m_pmeMimeMapList;
  53. };