mirror of https://github.com/tongzx/nt5src
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.0 KiB
43 lines
1.0 KiB
/****************************************************************************
|
|
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
|