- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
HexShellMenu.h
资源名称:16x.rar [点击查看]
上传用户:aiweisk
上传日期:2007-05-01
资源大小:85k
文件大小:2k
源码类别:
编辑器/阅读器
开发平台:
DOS
- //---------------------------------------------------------------------------------------
- // Quick Hex Shell extension
- // Copyright (c) 2000 by Shanker.C
- // All rights reserved
- // Author's consent required if this program is to be used for commercial purposes
- // No warranty of any kind, expressed or implied, is included with this
- // software; use at your own risk, responsibility for damages (if any) to
- // anyone resulting from the use of this software rests entirely with the user.
- // Please send comments/suggestions/criticisms to: Shanker@xlprint.com
- // March 7, 2000
- //---------------------------------------------------------------------------------------
- // HexShellMenu.h : Declaration of the CHexShellMenu
- #ifndef __HEXSHELLMENU_H_
- #define __HEXSHELLMENU_H_
- //---------------------------------------------------------------------------------------
- #include "resource.h" // main symbols
- #include "IContextMenuImpl.h"
- #include "IShellExtInitImpl.h"
- #include "hexdlg.h"
- #include <comdef.h>
- //---------------------------------------------------------------------------------------
- // CHexShellMenu
- class ATL_NO_VTABLE CHexShellMenu :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<CHexShellMenu, &CLSID_HexShellMenu>,
- public IShellExtInitImpl,
- public IContextMenuImpl,
- public IDispatchImpl<IHexShellMenu, &IID_IHexShellMenu, &LIBID_HEXSHELLLib>
- {
- public:
- CHexShellMenu()
- {
- m_bOSNT = FALSE;
- if((GetVersion() & 0x80000000) == 0)
- m_bOSNT = TRUE;
- }
- // IContextMenu methods
- STDMETHOD(GetCommandString)(UINT, UINT, UINT*, LPSTR, UINT);
- STDMETHOD(InvokeCommand)(LPCMINVOKECOMMANDINFO);
- STDMETHOD(QueryContextMenu)(HMENU, UINT, UINT, UINT, UINT);
- // IShellExtInit methods
- STDMETHOD(Initialize)(LPCITEMIDLIST, LPDATAOBJECT, HKEY);
- char m_szPath[MAX_PATH];
- CHexDlg* m_pHexDlg;
- BOOL m_bOSNT;
- DECLARE_REGISTRY_RESOURCEID(IDR_HEXSHELLMENU)
- DECLARE_PROTECT_FINAL_CONSTRUCT()
- BEGIN_COM_MAP(CHexShellMenu)
- COM_INTERFACE_ENTRY(IHexShellMenu)
- COM_INTERFACE_ENTRY(IDispatch)
- COM_INTERFACE_ENTRY(IShellExtInit)
- COM_INTERFACE_ENTRY(IContextMenu)
- END_COM_MAP()
- // IHexShellMenu
- public:
- };
- //---------------------------------------------------------------------------------------
- #endif //__HEXSHELLMENU_H_
- //---------------------------------------------------------------------------------------