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.

43 lines
1.1 KiB

  1. /****************************************************************************
  2. MIMEMAPC.H
  3. Mime Map Class Definition
  4. ****************************************************************************/
  5. #ifndef _scriptmapc_h
  6. #define _scriptmapc_h
  7. // Forward declarations
  8. class CScriptMap ;
  9. // Maximum size of a Registry class name
  10. #define CREGKEY_MAX_CLASS_NAME MAX_PATH
  11. // Wrapper for a Registry key handle.
  12. class CScriptMap : public CObject
  13. {
  14. protected:
  15. CString m_strPrevFileExtension;
  16. CString m_strScriptMap;
  17. CString m_strFileExtension;
  18. CString m_strDisplayString;
  19. void CheckDot(CString &strFileExtension);
  20. public:
  21. // Standard constructor
  22. CScriptMap ( LPCTSTR pchFileExtension, LPCTSTR pchScriptMap, BOOL bExistingEntry);
  23. ~CScriptMap();
  24. // Allow a CRegKey to be used anywhere an HKEY is required.
  25. void SetScriptMap(LPCTSTR);
  26. LPCTSTR GetScriptMap();
  27. void SetFileExtension(LPCTSTR);
  28. LPCTSTR GetFileExtension();
  29. void SetPrevFileExtension();
  30. LPCTSTR GetPrevFileExtension();
  31. BOOL PrevScriptMapExists();
  32. LPCTSTR GetDisplayString();
  33. };
  34. #endif