Index: Common/CHPluginCore.h =================================================================== diff -u -N --- Common/CHPluginCore.h (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Common/CHPluginCore.h (revision 0) @@ -1,50 +0,0 @@ -#ifndef __CHPLUGINCORE_H__ -#define __CHPLUGINCORE_H__ - -#include "PluginCore.h" -//#include "FileObject.h" - -// types of CH plugins -//#define PT_STORAGE 2 - -//#define IMID_LOCALSTORAGE 0x0001020000000001 - -// error codes -//#define EC_NOERROR 0x00000000 -//#define EC_SYSERROR 0x00000001 -//#define EC_USERBREAK 0x00000002 - -// error handling info struct -/*struct _ERRORINFO -{ - char szInfo[256]; // string with error description - DWORD dwCode; // code - DWORD dwError; // system error if any -};*/ - -// storage plugins section -/*struct _ENUMOBJECTS -{ - // data passed to the enumobjects func - CBaseObjectInfo* pBaseObject; // base object - - // ret values - CObjectInfo* pObject; // object that has been found - - // func - bool(*pfnCallback)(_ENUMOBJECTS* pParam); - - // other - PVOID pAppParam; // application defined parameter - PVOID pPlugParam; // plugin dependent parameter -};*/ - -// open object modes -//#define OM_READ 0x80000000 -//#define OM_WRITE 0x40000000 -//#define OM_CREATE 0x00000001 /* create, if exists - fails */ -//#define OM_CREATEALWAYS 0x00000002 /* always creates the file */ -//#define OM_OPENEXISTING 0x00000003 /* opens only if exists */ -//#define OM_OPENALWAYS 0x00000004 /* always opens the object */ - -#endif \ No newline at end of file Index: Copy Handler.sln =================================================================== diff -u -N --- Copy Handler.sln (revision 0) +++ Copy Handler.sln (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -0,0 +1,34 @@ +Microsoft Visual Studio Solution File, Format Version 8.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Copy Handler", "Copy Handler\Copy Handler.vcproj", "{4B215B9A-58CA-4987-AC95-7DFC3043E100}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CopyHandlerShellExt", "CopyHandlerShellExt\CopyHandlerShellExt.vcproj", "{7CE8B0C5-8CD4-4551-ACBF-EC4749E15E69}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + Debug = Debug + Release = Release + Release MinDependency = Release MinDependency + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {4B215B9A-58CA-4987-AC95-7DFC3043E100}.Debug.ActiveCfg = Debug|Win32 + {4B215B9A-58CA-4987-AC95-7DFC3043E100}.Debug.Build.0 = Debug|Win32 + {4B215B9A-58CA-4987-AC95-7DFC3043E100}.Release.ActiveCfg = Release|Win32 + {4B215B9A-58CA-4987-AC95-7DFC3043E100}.Release.Build.0 = Release|Win32 + {4B215B9A-58CA-4987-AC95-7DFC3043E100}.Release MinDependency.ActiveCfg = Release|Win32 + {4B215B9A-58CA-4987-AC95-7DFC3043E100}.Release MinDependency.Build.0 = Release|Win32 + {7CE8B0C5-8CD4-4551-ACBF-EC4749E15E69}.Debug.ActiveCfg = Debug|Win32 + {7CE8B0C5-8CD4-4551-ACBF-EC4749E15E69}.Debug.Build.0 = Debug|Win32 + {7CE8B0C5-8CD4-4551-ACBF-EC4749E15E69}.Release.ActiveCfg = Release MinDependency|Win32 + {7CE8B0C5-8CD4-4551-ACBF-EC4749E15E69}.Release.Build.0 = Release MinDependency|Win32 + {7CE8B0C5-8CD4-4551-ACBF-EC4749E15E69}.Release MinDependency.ActiveCfg = Release MinDependency|Win32 + {7CE8B0C5-8CD4-4551-ACBF-EC4749E15E69}.Release MinDependency.Build.0 = Release MinDependency|Win32 + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection +EndGlobal Index: Copy Handler/COPY HANDLER.cpp =================================================================== diff -u -N -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r125baa60fb7ffbffa0a3b81802f1164f5123e919 --- Copy Handler/COPY HANDLER.cpp (.../COPY HANDLER.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/COPY HANDLER.cpp (.../COPY HANDLER.cpp) (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -23,7 +23,7 @@ #include "CfgProperties.h" #include "MainWnd.h" -#include "..\common\CHPluginCore.h" +#include "PluginCore.h" #include "..\common\ipcstructs.h" #ifdef _DEBUG @@ -200,12 +200,6 @@ if (g_pscsShared == NULL) return FALSE; -#ifdef _AFXDLL - Enable3dControls(); // Call this when using MFC in a shared DLL -#else - Enable3dControlsStatic(); // Call this when linking to MFC statically -#endif - // load configuration m_cfgManager.SetCallback((PFNNOTIFYCALLBACK)MainRouter); TCHAR szPath[_MAX_PATH]; Index: Copy Handler/Copy Handler.vcproj =================================================================== diff -u -N --- Copy Handler/Copy Handler.vcproj (revision 0) +++ Copy Handler/Copy Handler.vcproj (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -0,0 +1,1706 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: CopyHandlerShellExt/CopyHandlerShellExt.def =================================================================== diff -u -N -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r125baa60fb7ffbffa0a3b81802f1164f5123e919 --- CopyHandlerShellExt/CopyHandlerShellExt.def (.../CopyHandlerShellExt.def) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ CopyHandlerShellExt/CopyHandlerShellExt.def (.../CopyHandlerShellExt.def) (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -1,9 +1,9 @@ ; CopyHandlerShellExt.def : Declares the module parameters. -LIBRARY "chext.DLL" +LIBRARY "chext.dll" EXPORTS - DllCanUnloadNow @1 PRIVATE - DllGetClassObject @2 PRIVATE - DllRegisterServer @3 PRIVATE - DllUnregisterServer @4 PRIVATE + DllCanUnloadNow PRIVATE + DllGetClassObject PRIVATE + DllRegisterServer PRIVATE + DllUnregisterServer PRIVATE Index: CopyHandlerShellExt/CopyHandlerShellExt.h =================================================================== diff -u -N -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r125baa60fb7ffbffa0a3b81802f1164f5123e919 --- CopyHandlerShellExt/CopyHandlerShellExt.h (.../CopyHandlerShellExt.h) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ CopyHandlerShellExt/CopyHandlerShellExt.h (.../CopyHandlerShellExt.h) (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -1,19 +1,27 @@ + + /* this ALWAYS GENERATED file contains the definitions for the interfaces */ -/* File created by MIDL compiler version 5.01.0164 */ -/* at Sun Oct 10 12:09:27 2004 + /* File created by MIDL compiler version 6.00.0361 */ +/* at Mon Feb 06 02:08:15 2006 */ -/* Compiler settings for F:\projects\c++\working\Copy Handler\CopyHandlerShellExt\CopyHandlerShellExt.idl: - Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext +/* Compiler settings for .\CopyHandlerShellExt.idl: + Oicf, W1, Zp8, env=Win32 (32b run) + protocol : dce , ms_ext, c_ext, robust error checks: allocation ref bounds_check enum stub_data + VC __declspec() decoration level: + __declspec(uuid()), __declspec(selectany), __declspec(novtable) + DECLSPEC_UUID(), MIDL_INTERFACE() */ //@@MIDL_FILE_HEADING( ) +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + /* verify that the version is high enough to compile this file*/ #ifndef __REQUIRED_RPCNDR_H_VERSION__ -#define __REQUIRED_RPCNDR_H_VERSION__ 440 +#define __REQUIRED_RPCNDR_H_VERSION__ 475 #endif #include "rpc.h" @@ -31,9 +39,9 @@ #ifndef __CopyHandlerShellExt_h__ #define __CopyHandlerShellExt_h__ -#ifdef __cplusplus -extern "C"{ -#endif +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif /* Forward Declarations */ @@ -77,9 +85,13 @@ #include "oaidl.h" #include "ocidl.h" -void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void __RPC_FAR * ); +#ifdef __cplusplus +extern "C"{ +#endif +void * __RPC_USER MIDL_user_allocate(size_t); +void __RPC_USER MIDL_user_free( void * ); + #ifndef __IMenuExt_INTERFACE_DEFINED__ #define __IMenuExt_INTERFACE_DEFINED__ @@ -103,52 +115,52 @@ { BEGIN_INTERFACE - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( - IMenuExt __RPC_FAR * This, + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMenuExt * This, /* [in] */ REFIID riid, - /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject); + /* [iid_is][out] */ void **ppvObject); - ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( - IMenuExt __RPC_FAR * This); + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMenuExt * This); - ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( - IMenuExt __RPC_FAR * This); + ULONG ( STDMETHODCALLTYPE *Release )( + IMenuExt * This); - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( - IMenuExt __RPC_FAR * This, - /* [out] */ UINT __RPC_FAR *pctinfo); + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IMenuExt * This, + /* [out] */ UINT *pctinfo); - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( - IMenuExt __RPC_FAR * This, + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IMenuExt * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, - /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo); + /* [out] */ ITypeInfo **ppTInfo); - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( - IMenuExt __RPC_FAR * This, + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IMenuExt * This, /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames, + /* [size_is][in] */ LPOLESTR *rgszNames, /* [in] */ UINT cNames, /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID __RPC_FAR *rgDispId); + /* [size_is][out] */ DISPID *rgDispId); - /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( - IMenuExt __RPC_FAR * This, + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMenuExt * This, /* [in] */ DISPID dispIdMember, /* [in] */ REFIID riid, /* [in] */ LCID lcid, /* [in] */ WORD wFlags, - /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams, - /* [out] */ VARIANT __RPC_FAR *pVarResult, - /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo, - /* [out] */ UINT __RPC_FAR *puArgErr); + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); END_INTERFACE } IMenuExtVtbl; interface IMenuExt { - CONST_VTBL struct IMenuExtVtbl __RPC_FAR *lpVtbl; + CONST_VTBL struct IMenuExtVtbl *lpVtbl; }; @@ -213,52 +225,52 @@ { BEGIN_INTERFACE - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( - IDropMenuExt __RPC_FAR * This, + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDropMenuExt * This, /* [in] */ REFIID riid, - /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject); + /* [iid_is][out] */ void **ppvObject); - ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( - IDropMenuExt __RPC_FAR * This); + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDropMenuExt * This); - ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( - IDropMenuExt __RPC_FAR * This); + ULONG ( STDMETHODCALLTYPE *Release )( + IDropMenuExt * This); - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( - IDropMenuExt __RPC_FAR * This, - /* [out] */ UINT __RPC_FAR *pctinfo); + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IDropMenuExt * This, + /* [out] */ UINT *pctinfo); - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( - IDropMenuExt __RPC_FAR * This, + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IDropMenuExt * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, - /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo); + /* [out] */ ITypeInfo **ppTInfo); - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( - IDropMenuExt __RPC_FAR * This, + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IDropMenuExt * This, /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames, + /* [size_is][in] */ LPOLESTR *rgszNames, /* [in] */ UINT cNames, /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID __RPC_FAR *rgDispId); + /* [size_is][out] */ DISPID *rgDispId); - /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( - IDropMenuExt __RPC_FAR * This, + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDropMenuExt * This, /* [in] */ DISPID dispIdMember, /* [in] */ REFIID riid, /* [in] */ LCID lcid, /* [in] */ WORD wFlags, - /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams, - /* [out] */ VARIANT __RPC_FAR *pVarResult, - /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo, - /* [out] */ UINT __RPC_FAR *puArgErr); + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); END_INTERFACE } IDropMenuExtVtbl; interface IDropMenuExt { - CONST_VTBL struct IDropMenuExtVtbl __RPC_FAR *lpVtbl; + CONST_VTBL struct IDropMenuExtVtbl *lpVtbl; }; @@ -336,3 +348,5 @@ #endif #endif + + Index: CopyHandlerShellExt/CopyHandlerShellExt.tlb =================================================================== diff -u -N -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r125baa60fb7ffbffa0a3b81802f1164f5123e919 Binary files differ Index: CopyHandlerShellExt/CopyHandlerShellExt.vcproj =================================================================== diff -u -N --- CopyHandlerShellExt/CopyHandlerShellExt.vcproj (revision 0) +++ CopyHandlerShellExt/CopyHandlerShellExt.vcproj (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -0,0 +1,374 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: CopyHandlerShellExt/CopyHandlerShellExt_i.c =================================================================== diff -u -N -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r125baa60fb7ffbffa0a3b81802f1164f5123e919 --- CopyHandlerShellExt/CopyHandlerShellExt_i.c (.../CopyHandlerShellExt_i.c) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ CopyHandlerShellExt/CopyHandlerShellExt_i.c (.../CopyHandlerShellExt_i.c) (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -1,22 +1,52 @@ -/* this file contains the actual definitions of */ -/* the IIDs and CLSIDs */ + +/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ + /* link this file in with the server and any clients */ -/* File created by MIDL compiler version 5.01.0164 */ -/* at Sun Oct 10 12:09:27 2004 + /* File created by MIDL compiler version 6.00.0361 */ +/* at Mon Feb 06 02:08:15 2006 */ -/* Compiler settings for F:\projects\c++\working\Copy Handler\CopyHandlerShellExt\CopyHandlerShellExt.idl: - Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext +/* Compiler settings for .\CopyHandlerShellExt.idl: + Oicf, W1, Zp8, env=Win32 (32b run) + protocol : dce , ms_ext, c_ext, robust error checks: allocation ref bounds_check enum stub_data + VC __declspec() decoration level: + __declspec(uuid()), __declspec(selectany), __declspec(novtable) + DECLSPEC_UUID(), MIDL_INTERFACE() */ //@@MIDL_FILE_HEADING( ) + +#if !defined(_M_IA64) && !defined(_M_AMD64) + + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + #ifdef __cplusplus extern "C"{ #endif +#include +#include + +#ifdef _MIDL_USE_GUIDDEF_ + +#ifndef INITGUID +#define INITGUID +#include +#undef INITGUID +#else +#include +#endif + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) + +#else // !_MIDL_USE_GUIDDEF_ + #ifndef __IID_DEFINED__ #define __IID_DEFINED__ @@ -35,22 +65,32 @@ typedef IID CLSID; #endif // CLSID_DEFINED -const IID IID_IMenuExt = {0x413AA618,0xE769,0x4E6E,{0xA6,0x10,0x7B,0xDC,0x8A,0x18,0x9F,0xB2}}; +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} +#endif !_MIDL_USE_GUIDDEF_ -const IID IID_IDropMenuExt = {0x4AEAD637,0x8A55,0x47B9,{0xAA,0x1A,0xDA,0xCE,0xA3,0xDE,0x9B,0x71}}; +MIDL_DEFINE_GUID(IID, IID_IMenuExt,0x413AA618,0xE769,0x4E6E,0xA6,0x10,0x7B,0xDC,0x8A,0x18,0x9F,0xB2); -const IID LIBID_COPYHANDLERSHELLEXTLib = {0x68FAFC14,0x8EB8,0x4DA1,{0x90,0xEB,0x6B,0x3D,0x22,0x01,0x05,0x05}}; +MIDL_DEFINE_GUID(IID, IID_IDropMenuExt,0x4AEAD637,0x8A55,0x47B9,0xAA,0x1A,0xDA,0xCE,0xA3,0xDE,0x9B,0x71); -const CLSID CLSID_MenuExt = {0xE7A4C2DA,0xF3AF,0x4145,{0xAC,0x19,0xE3,0xB2,0x15,0x30,0x6A,0x54}}; +MIDL_DEFINE_GUID(IID, LIBID_COPYHANDLERSHELLEXTLib,0x68FAFC14,0x8EB8,0x4DA1,0x90,0xEB,0x6B,0x3D,0x22,0x01,0x05,0x05); -const CLSID CLSID_DropMenuExt = {0xB46F8244,0x86E6,0x43CF,{0xB8,0xAB,0x8C,0x3A,0x89,0x92,0x8A,0x48}}; +MIDL_DEFINE_GUID(CLSID, CLSID_MenuExt,0xE7A4C2DA,0xF3AF,0x4145,0xAC,0x19,0xE3,0xB2,0x15,0x30,0x6A,0x54); +MIDL_DEFINE_GUID(CLSID, CLSID_DropMenuExt,0xB46F8244,0x86E6,0x43CF,0xB8,0xAB,0x8C,0x3A,0x89,0x92,0x8A,0x48); + +#undef MIDL_DEFINE_GUID + #ifdef __cplusplus } #endif + + +#endif /* !defined(_M_IA64) && !defined(_M_AMD64)*/ + Index: CopyHandlerShellExt/CopyHandlerShellExt_p.c =================================================================== diff -u -N -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r125baa60fb7ffbffa0a3b81802f1164f5123e919 --- CopyHandlerShellExt/CopyHandlerShellExt_p.c (.../CopyHandlerShellExt_p.c) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ CopyHandlerShellExt/CopyHandlerShellExt_p.c (.../CopyHandlerShellExt_p.c) (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -1,21 +1,37 @@ + + /* this ALWAYS GENERATED file contains the proxy stub code */ -/* File created by MIDL compiler version 5.01.0164 */ -/* at Sun Oct 10 12:09:27 2004 + /* File created by MIDL compiler version 6.00.0361 */ +/* at Mon Feb 06 02:08:15 2006 */ -/* Compiler settings for F:\projects\c++\working\Copy Handler\CopyHandlerShellExt\CopyHandlerShellExt.idl: - Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext +/* Compiler settings for .\CopyHandlerShellExt.idl: + Oicf, W1, Zp8, env=Win32 (32b run) + protocol : dce , ms_ext, c_ext, robust error checks: allocation ref bounds_check enum stub_data + VC __declspec() decoration level: + __declspec(uuid()), __declspec(selectany), __declspec(novtable) + DECLSPEC_UUID(), MIDL_INTERFACE() */ //@@MIDL_FILE_HEADING( ) +#if !defined(_M_IA64) && !defined(_M_AMD64) + + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ +#if _MSC_VER >= 1200 +#pragma warning(push) +#endif +#pragma warning( disable: 4100 ) /* unreferenced arguments in x86 call */ +#pragma warning( disable: 4211 ) /* redefine extent to static */ +#pragma warning( disable: 4232 ) /* dllimport identity*/ #define USE_STUBLESS_PROXY /* verify that the version is high enough to compile this file*/ #ifndef __REDQ_RPCPROXY_H_VERSION__ -#define __REQUIRED_RPCPROXY_H_VERSION__ 440 +#define __REQUIRED_RPCPROXY_H_VERSION__ 475 #endif @@ -29,6 +45,8 @@ #define TYPE_FORMAT_STRING_SIZE 3 #define PROC_FORMAT_STRING_SIZE 1 +#define TRANSMIT_AS_TABLE_SIZE 0 +#define WIRE_MARSHAL_TABLE_SIZE 0 typedef struct _MIDL_TYPE_FORMAT_STRING { @@ -43,10 +61,61 @@ } MIDL_PROC_FORMAT_STRING; +static RPC_SYNTAX_IDENTIFIER _RpcTransferSyntax = +{{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}}; + + extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString; extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString; +extern const MIDL_STUB_DESC Object_StubDesc; + + +extern const MIDL_SERVER_INFO IMenuExt_ServerInfo; +extern const MIDL_STUBLESS_PROXY_INFO IMenuExt_ProxyInfo; + + +extern const MIDL_STUB_DESC Object_StubDesc; + + +extern const MIDL_SERVER_INFO IDropMenuExt_ServerInfo; +extern const MIDL_STUBLESS_PROXY_INFO IDropMenuExt_ProxyInfo; + + + +#if !defined(__RPC_WIN32__) +#error Invalid build platform for this stub. +#endif + +#if !(TARGET_IS_NT50_OR_LATER) +#error You need a Windows 2000 or later to run this stub because it uses these features: +#error /robust command line switch. +#error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems. +#error This app will die there with the RPC_X_WRONG_STUB_VERSION error. +#endif + + +static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString = + { + 0, + { + + 0x0 + } + }; + +static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString = + { + 0, + { + NdrFcShort( 0x0 ), /* 0 */ + + 0x0 + } + }; + + /* Object interface: IUnknown, ver. 0.0, GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */ @@ -58,21 +127,47 @@ /* Object interface: IMenuExt, ver. 0.0, GUID={0x413AA618,0xE769,0x4E6E,{0xA6,0x10,0x7B,0xDC,0x8A,0x18,0x9F,0xB2}} */ +#pragma code_seg(".orpc") +static const unsigned short IMenuExt_FormatStringOffsetTable[] = + { + (unsigned short) -1, + (unsigned short) -1, + (unsigned short) -1, + (unsigned short) -1, + 0 + }; -extern const MIDL_STUB_DESC Object_StubDesc; +static const MIDL_STUBLESS_PROXY_INFO IMenuExt_ProxyInfo = + { + &Object_StubDesc, + __MIDL_ProcFormatString.Format, + &IMenuExt_FormatStringOffsetTable[-3], + 0, + 0, + 0 + }; -#pragma code_seg(".orpc") +static const MIDL_SERVER_INFO IMenuExt_ServerInfo = + { + &Object_StubDesc, + 0, + __MIDL_ProcFormatString.Format, + &IMenuExt_FormatStringOffsetTable[-3], + 0, + 0, + 0, + 0}; CINTERFACE_PROXY_VTABLE(7) _IMenuExtProxyVtbl = { 0, &IID_IMenuExt, IUnknown_QueryInterface_Proxy, IUnknown_AddRef_Proxy, IUnknown_Release_Proxy , - 0 /* (void *)-1 /* IDispatch::GetTypeInfoCount */ , - 0 /* (void *)-1 /* IDispatch::GetTypeInfo */ , - 0 /* (void *)-1 /* IDispatch::GetIDsOfNames */ , + 0 /* (void *) (INT_PTR) -1 /* IDispatch::GetTypeInfoCount */ , + 0 /* (void *) (INT_PTR) -1 /* IDispatch::GetTypeInfo */ , + 0 /* (void *) (INT_PTR) -1 /* IDispatch::GetIDsOfNames */ , 0 /* IDispatch_Invoke_Proxy */ }; @@ -88,7 +183,7 @@ CInterfaceStubVtbl _IMenuExtStubVtbl = { &IID_IMenuExt, - 0, + &IMenuExt_ServerInfo, 7, &IMenuExt_table[-3], CStdStubBuffer_DELEGATING_METHODS @@ -98,46 +193,47 @@ /* Object interface: IDropMenuExt, ver. 0.0, GUID={0x4AEAD637,0x8A55,0x47B9,{0xAA,0x1A,0xDA,0xCE,0xA3,0xDE,0x9B,0x71}} */ - -extern const MIDL_STUB_DESC Object_StubDesc; - - #pragma code_seg(".orpc") +static const unsigned short IDropMenuExt_FormatStringOffsetTable[] = + { + (unsigned short) -1, + (unsigned short) -1, + (unsigned short) -1, + (unsigned short) -1, + 0 + }; -static const MIDL_STUB_DESC Object_StubDesc = +static const MIDL_STUBLESS_PROXY_INFO IDropMenuExt_ProxyInfo = { + &Object_StubDesc, + __MIDL_ProcFormatString.Format, + &IDropMenuExt_FormatStringOffsetTable[-3], 0, - NdrOleAllocate, - NdrOleFree, 0, + 0 + }; + + +static const MIDL_SERVER_INFO IDropMenuExt_ServerInfo = + { + &Object_StubDesc, 0, + __MIDL_ProcFormatString.Format, + &IDropMenuExt_FormatStringOffsetTable[-3], 0, 0, 0, - __MIDL_TypeFormatString.Format, - 1, /* -error bounds_check flag */ - 0x20000, /* Ndr library version */ - 0, - 0x50100a4, /* MIDL Version 5.1.164 */ - 0, - 0, - 0, /* notify & notify_flag routine table */ - 1, /* Flags */ - 0, /* Reserved3 */ - 0, /* Reserved4 */ - 0 /* Reserved5 */ - }; - + 0}; CINTERFACE_PROXY_VTABLE(7) _IDropMenuExtProxyVtbl = { 0, &IID_IDropMenuExt, IUnknown_QueryInterface_Proxy, IUnknown_AddRef_Proxy, IUnknown_Release_Proxy , - 0 /* (void *)-1 /* IDispatch::GetTypeInfoCount */ , - 0 /* (void *)-1 /* IDispatch::GetTypeInfo */ , - 0 /* (void *)-1 /* IDispatch::GetIDsOfNames */ , + 0 /* (void *) (INT_PTR) -1 /* IDispatch::GetTypeInfoCount */ , + 0 /* (void *) (INT_PTR) -1 /* IDispatch::GetTypeInfo */ , + 0 /* (void *) (INT_PTR) -1 /* IDispatch::GetIDsOfNames */ , 0 /* IDispatch_Invoke_Proxy */ }; @@ -153,45 +249,36 @@ CInterfaceStubVtbl _IDropMenuExtStubVtbl = { &IID_IDropMenuExt, - 0, + &IDropMenuExt_ServerInfo, 7, &IDropMenuExt_table[-3], CStdStubBuffer_DELEGATING_METHODS }; -#pragma data_seg(".rdata") - -#if !defined(__RPC_WIN32__) -#error Invalid build platform for this stub. -#endif - -#if !(TARGET_IS_NT40_OR_LATER) -#error You need a Windows NT 4.0 or later to run this stub because it uses these features: -#error -Oif or -Oicf, more than 32 methods in the interface. -#error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems. -#error This app will die there with the RPC_X_WRONG_STUB_VERSION error. -#endif - - -static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString = +static const MIDL_STUB_DESC Object_StubDesc = { - 0, - { - - 0x0 - } + 0, + NdrOleAllocate, + NdrOleFree, + 0, + 0, + 0, + 0, + 0, + __MIDL_TypeFormatString.Format, + 1, /* -error bounds_check flag */ + 0x50002, /* Ndr library version */ + 0, + 0x6000169, /* MIDL Version 6.0.361 */ + 0, + 0, + 0, /* notify & notify_flag routine table */ + 0x1, /* MIDL flag */ + 0, /* cs routines */ + 0, /* proxy/server info */ + 0 /* Reserved5 */ }; -static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString = - { - 0, - { - NdrFcShort( 0x0 ), /* 0 */ - - 0x0 - } - }; - const CInterfaceProxyVtbl * _CopyHandlerShellExt_ProxyVtblList[] = { ( CInterfaceProxyVtbl *) &_IMenuExtProxyVtbl, @@ -246,3 +333,10 @@ 0, /* Filler2 */ 0 /* Filler3 */ }; +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + + +#endif /* !defined(_M_IA64) && !defined(_M_AMD64)*/ + Index: CopyHandlerShellExt/MenuExt.h =================================================================== diff -u -N -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r125baa60fb7ffbffa0a3b81802f1164f5123e919 --- CopyHandlerShellExt/MenuExt.h (.../MenuExt.h) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ CopyHandlerShellExt/MenuExt.h (.../MenuExt.h) (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -23,6 +23,8 @@ #include "resource.h" // main symbols #include "comdef.h" +#include +#include #include "IShellExtInitImpl.h" #include "IContextMenuImpl.h" Index: CopyHandlerShellExt/StdAfx.cpp =================================================================== diff -u -N -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r125baa60fb7ffbffa0a3b81802f1164f5123e919 --- CopyHandlerShellExt/StdAfx.cpp (.../StdAfx.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ CopyHandlerShellExt/StdAfx.cpp (.../StdAfx.cpp) (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -22,7 +22,7 @@ #ifdef _ATL_STATIC_REGISTRY #include -#include +//#include #endif -#include +//#include Index: ch_count.txt =================================================================== diff -u -N --- ch_count.txt (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ ch_count.txt (revision 0) @@ -1,3 +0,0 @@ -Debug builds: 943 -Release builds: 131 -All builds: 1074 Index: chext_count.txt =================================================================== diff -u -N --- chext_count.txt (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ chext_count.txt (revision 0) @@ -1,3 +0,0 @@ -Debug builds: 58 -Release builds: 130 -All builds: 188 Index: other/Help/HTMLDefines.h =================================================================== diff -u -N -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r125baa60fb7ffbffa0a3b81802f1164f5123e919 --- other/Help/HTMLDefines.h (.../HTMLDefines.h) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ other/Help/HTMLDefines.h (.../HTMLDefines.h) (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -1,6 +1,6 @@ -// Help Map file generated from application's resource.h file. - -// Commands (ID_* and IDM_*) +// Help Map file generated from application's resource.h file. + +// Commands (ID_* and IDM_*) #define HID_POPUP_SHOW_STATUS 0x8005 #define HID_POPUP_TIME_CRITICAL 0x8006 #define HID_POPUP_HIGHEST 0x8007 @@ -34,7 +34,7 @@ #define HIDR_ADVANCED_MENU 0x200A0 #define HIDR_POPUP_TOOLBAR 0x200AA #define HIDR_THANKS_TEXT 0x200D3 - + // Dialogs (IDD_*) #define HIDD_ABOUTBOX 0x20064 #define HIDD_STATUS_DIALOG 0x20083 Index: other/Langs/English.lng =================================================================== diff -u -N -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r125baa60fb7ffbffa0a3b81802f1164f5123e919 --- other/Langs/English.lng (.../English.lng) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ other/Langs/English.lng (.../English.lng) (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -324,7 +324,7 @@ [100] 0=About ... 1=&OK -1199=Copyright (C) 2001-2005 J�zef Starosczyk +1199=Copyright (C) 2001-2004 J�zef Starosczyk 1202=http://www.copyhandler.com|http://www.copyhandler.com 1203=http://www.copyhandler.prv.pl|http://www.copyhandler.prv.pl 1204=General discussion forum: Index: other/NEW_ENGINE_PROJECT.TXT =================================================================== diff -u -N --- other/NEW_ENGINE_PROJECT.TXT (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ other/NEW_ENGINE_PROJECT.TXT (revision 0) @@ -1,3 +0,0 @@ -Potrzebne klasy: -CPath, CBasePath - zarz�dzanie �cie�kami -CPathContainer ? - Index: other/Scripts/Exe2Lng.exe =================================================================== diff -u -N Binary files differ Index: other/Scripts/makehelpmap.bat =================================================================== diff -u -N --- other/Scripts/makehelpmap.bat (revision 0) +++ other/Scripts/makehelpmap.bat (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) @@ -0,0 +1,31 @@ +rem @echo off +rem if "%1" == "" goto error +rem if "%2" == "" goto error + +echo // Help Map file generated from application's resource.h file. > "%2" +echo. >> "%2" +echo // Commands (ID_* and IDM_*) >> "%2" +makehm /h ID_,HID_,0x00000 IDM_,HIDM_,0x10000 %1 >> %2 +echo. >> "%2" +echo // Prompts (IDP_*) >> "%2" +makehm /h IDP_,HIDP_,0x30000 %1 >> %2 +echo. >> "%2" +echo // Resources (IDR_*) >> "%2" +makehm /h IDR_,HIDR_,0x20000 %1 >> %2 +echo. >> "%2" +echo // Dialogs (IDD_*) >> "%2" +makehm /h IDD_,HIDD_,0x20000 %1 >> %2 +echo. >> "%2" +echo // Frame Controls (IDW_*) >> "%2" +makehm /h IDW_,HIDW_,0x50000 %1 >> %2 +echo. >> "%2" +echo // Controls (IDC_*) >> "%2" +makehm /h IDC_,IDH_,0x00000 %1 >> %2 + +goto end + +:Error +@echo Missing parameter. Usage: makehelpmap "resource.h" "output.h" +goto end + +:end Index: other/readme.txt =================================================================== diff -u -N --- other/readme.txt (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ other/readme.txt (revision 0) @@ -1,18 +0,0 @@ -THIS CODE IS NOT A MASTERPIECE, SO DON'T EXPECT THAT IT'S FULLY OPTIMIZED OR STH. -IT'S VERY INEFFECTIVE, SLOW AND BUGGY, SO IF YOU HAVE ANY COMMENTS - SEND ME A MAIL TO copyhandler@o2.pl, -OR BETTER - SUBSCRIBE THE DISCUSSION FORUM CHDEV (AS STATED IN README FILE OF THE PROGRAM). -ANY HELP OR COMMENTS WOULD BE HIGHLY APPRECIATED. - -How to build it ? ------------------ -You have to change some paths in the files included in the project - which one ? Try to build it and you'll know. -Add the App framework folder and folder where debug.h is placed to the include directories in tools->options->directories. I do not include "build manager.exe" - it's the program for counting builds. Just remove all references to it. If something is missing - please let me know. - -What do you need to build it ? (This is the minimum to build a program) ------------------------------- -- Visual Studio 6.0. - -But I suggest to use the following: -- Service Pack 5 for Visual Studio 6.0 -- Platform SDK February 2003 -- UPX Software for executable compression