windows-nt/Source/XPSP1/NT/inetsrv/iis/ui/itools/isadmin/scripmap.h

44 lines
1 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/****************************************************************************
MIMEMAPC.H
Mime Map Class Definition
****************************************************************************/
#ifndef _scriptmapc_h
#define _scriptmapc_h
// Forward declarations
class CScriptMap ;
// Maximum size of a Registry class name
#define CREGKEY_MAX_CLASS_NAME MAX_PATH
// Wrapper for a Registry key handle.
class CScriptMap : public CObject
{
protected:
CString m_strPrevFileExtension;
CString m_strScriptMap;
CString m_strFileExtension;
CString m_strDisplayString;
void CheckDot(CString &strFileExtension);
public:
// Standard constructor
CScriptMap ( LPCTSTR pchFileExtension, LPCTSTR pchScriptMap, BOOL bExistingEntry);
~CScriptMap();
// Allow a CRegKey to be used anywhere an HKEY is required.
void SetScriptMap(LPCTSTR);
LPCTSTR GetScriptMap();
void SetFileExtension(LPCTSTR);
LPCTSTR GetFileExtension();
void SetPrevFileExtension();
LPCTSTR GetPrevFileExtension();
BOOL PrevScriptMapExists();
LPCTSTR GetDisplayString();
};
#endif