FileAssociation.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:1k
源码类别:
P2P编程
开发平台:
Visual C++
- // FileAssociation.h: interface for the CFileAssociation class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_FILEASSOCIATION_H__B8834D3B_C352_4F48_84FA_DFEB490846D9__INCLUDED_)
- #define AFX_FILEASSOCIATION_H__B8834D3B_C352_4F48_84FA_DFEB490846D9__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CFileAssociation
- {
- public:
- CFileAssociation(CString strFileTypeId, CString strFilterExt, CString strShellMenuName);
- virtual ~CFileAssociation();
- bool MakeAssocaition(bool bRegister) const;
- bool MakeGenerateTorrentMenu(bool bRegister) const;
- private:
- BOOL SetRegKeyMy(LPCTSTR lpszKey, LPCTSTR lpszValue, LPCTSTR lpszValueName = NULL);
- void GetShortFileName(HINSTANCE hInst, CString& strShortName) const;
- CString m_strFileTypeId;
- CString m_strFilterExt;
- CString m_strShellMenuName;
- };
- #endif // !defined(AFX_FILEASSOCIATION_H__B8834D3B_C352_4F48_84FA_DFEB490846D9__INCLUDED_)