Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
HexShellMenu.h
Package: 16x.rar [view]
Upload User: aiweisk
Upload Date: 2007-05-01
Package Size: 85k
Code Size: 2k
Category:
Editor
Development Platform:
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_
- //---------------------------------------------------------------------------------------