Update of /cvsroot/pywin32/pywin32/com/win32comext/shell/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv317
Modified Files:
PyIQueryAssociations.cpp PyIQueryAssociations.h shell.cpp
Log Message:
Fix previous fix!
Index: PyIQueryAssociations.h
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/src/PyIQueryAssociations.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PyIQueryAssociations.h 15 Dec 2004 01:09:13 -0000 1.1
--- PyIQueryAssociations.h 16 Dec 2004 05:02:21 -0000 1.2
***************
*** 5,8 ****
--- 5,56 ----
// Interface Declaration
+ // The shlwapi.h included with MSVC6 does not have this interface.
+ // A default Microsoft SDK does not provide an updated shlwapi.h file
+ // (even though the SDK on mhammond's machine does!). Rather than
+ // try and figure out these header versions, just copy the interface
+ // definition here.
+ // #include "shlwapi.h"
+
+ // *** - start of shlwapi.h clone
+ enum {
+ ASSOCF_INIT_NOREMAPCLSID = 0x00000001, // do not remap clsids to progids
+ ASSOCF_INIT_BYEXENAME = 0x00000002, // executable is being passed in
+ ASSOCF_OPEN_BYEXENAME = 0x00000002, // executable is being passed in
+ ASSOCF_INIT_DEFAULTTOSTAR = 0x00000004, // treat "*" as the BaseClass
+ ASSOCF_INIT_DEFAULTTOFOLDER = 0x00000008, // treat "Folder" as the BaseClass
+ ASSOCF_NOUSERSETTINGS = 0x00000010, // dont use HKCU
+ ASSOCF_NOTRUNCATE = 0x00000020, // dont truncate the return string
+ ASSOCF_VERIFY = 0x00000040, // verify data is accurate (DISK HITS)
+ ASSOCF_REMAPRUNDLL = 0x00000080, // actually gets info about rundlls target if applicable
+ ASSOCF_NOFIXUPS = 0x00000100, // attempt to fix errors if found
+ ASSOCF_IGNOREBASECLASS = 0x00000200, // dont recurse into the baseclass
+ };
+ typedef DWORD ASSOCF;
+ #define LWSTDAPI STDAPI
+ typedef enum {} ASSOCSTR;
+ typedef enum {} ASSOCKEY;
+ typedef enum {} ASSOCDATA;
+ typedef enum {} ASSOCENUM;
+ #undef INTERFACE
+ #define INTERFACE IQueryAssociations
+
+ DECLARE_INTERFACE_( IQueryAssociations, IUnknown )
+ {
+ // IUnknown methods
+ STDMETHOD (QueryInterface)(THIS_ REFIID riid, void **ppv) PURE;
+ STDMETHOD_(ULONG, AddRef) ( THIS ) PURE;
+ STDMETHOD_(ULONG, Release) ( THIS ) PURE;
+
+ // IQueryAssociations methods
+ STDMETHOD (Init)(THIS_ ASSOCF flags, LPCWSTR pszAssoc, HKEY hkProgid, HWND hwnd) PURE;
+ STDMETHOD (GetString)(THIS_ ASSOCF flags, ASSOCSTR str, LPCWSTR pszExtra, LPWSTR pszOut, DWORD *pcchOut) PURE;
+ STDMETHOD (GetKey)(THIS_ ASSOCF flags, ASSOCKEY key, LPCWSTR pszExtra, HKEY *phkeyOut) PURE;
+ STDMETHOD (GetData)(THIS_ ASSOCF flags, ASSOCDATA data, LPCWSTR pszExtra, LPVOID pvOut, DWORD *pcbOut) PURE;
+ STDMETHOD (GetEnum)(THIS_ ASSOCF flags, ASSOCENUM assocenum, LPCWSTR pszExtra, REFIID riid, LPVOID *ppvOut) PURE;
+ };
+
+ LWSTDAPI AssocCreate(CLSID clsid, REFIID riid, LPVOID *ppv);
+ // *** - end of shlwapi.h clone
+
class PyIQueryAssociations : public PyIUnknown
{
Index: shell.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/src/shell.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** shell.cpp 15 Dec 2004 01:09:13 -0000 1.30
--- shell.cpp 16 Dec 2004 05:02:21 -0000 1.31
***************
*** 14,18 ****
#include "shell_pch.h"
- #include "shlwapi.h"
#include "PyIShellLink.h"
#include "PyIContextMenu.h"
--- 14,17 ----
Index: PyIQueryAssociations.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/src/PyIQueryAssociations.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** PyIQueryAssociations.cpp 15 Dec 2004 23:27:49 -0000 1.2
--- PyIQueryAssociations.cpp 16 Dec 2004 05:02:21 -0000 1.3
***************
*** 3,55 ****
#include "shell_pch.h"
-
- // The shlwapi.h included with MSVC6 does not have this interface.
- // A default Microsoft SDK does not provide an updated shlwapi.h file
- // (even though the SDK on mhammond's machine does!). Rather than
- // try and figure out these header versions, just copy the interface
- // definition here.
- // #include "shlwapi.h"
-
- // *** - start of shlwapi.h clone
- enum {
- ASSOCF_INIT_NOREMAPCLSID = 0x00000001, // do not remap clsids to progids
- ASSOCF_INIT_BYEXENAME = 0x00000002, // executable is being passed in
- ASSOCF_OPEN_BYEXENAME = 0x00000002, // executable is being passed in
- ASSOCF_INIT_DEFAULTTOSTAR = 0x00000004, // treat "*" as the BaseClass
- ASSOCF_INIT_DEFAULTTOFOLDER = 0x00000008, // treat "Folder" as the BaseClass
- ASSOCF_NOUSERSETTINGS = 0x00000010, // dont use HKCU
- ASSOCF_NOTRUNCATE = 0x00000020, // dont truncate the return string
- ASSOCF_VERIFY = 0x00000040, // verify data is accurate (DISK HITS)
- ASSOCF_REMAPRUNDLL = 0x00000080, // actually gets info about rundlls target if applicable
- ASSOCF_NOFIXUPS = 0x00000100, // attempt to fix errors if found
- ASSOCF_IGNOREBASECLASS = 0x00000200, // dont recurse into the baseclass
- };
- typedef DWORD ASSOCF;
- #define LWSTDAPI STDAPI
- typedef enum {} ASSOCSTR;
- typedef enum {} ASSOCKEY;
- typedef enum {} ASSOCDATA;
- typedef enum {} ASSOCENUM;
- #undef INTERFACE
- #define INTERFACE IQueryAssociations
-
- DECLARE_INTERFACE_( IQueryAssociations, IUnknown )
- {
- // IUnknown methods
- STDMETHOD (QueryInterface)(THIS_ REFIID riid, void **ppv) PURE;
- STDMETHOD_(ULONG, AddRef) ( THIS ) PURE;
- STDMETHOD_(ULONG, Release) ( THIS ) PURE;
-
- // IQueryAssociations methods
- STDMETHOD (Init)(THIS_ ASSOCF flags, LPCWSTR pszAssoc, HKEY hkProgid, HWND hwnd) PURE;
- STDMETHOD (GetString)(THIS_ ASSOCF flags, ASSOCSTR str, LPCWSTR pszExtra, LPWSTR pszOut, DWORD *pcchOut) PURE;
- STDMETHOD (GetKey)(THIS_ ASSOCF flags, ASSOCKEY key, LPCWSTR pszExtra, HKEY *phkeyOut) PURE;
- STDMETHOD (GetData)(THIS_ ASSOCF flags, ASSOCDATA data, LPCWSTR pszExtra, LPVOID pvOut, DWORD *pcbOut) PURE;
- STDMETHOD (GetEnum)(THIS_ ASSOCF flags, ASSOCENUM assocenum, LPCWSTR pszExtra, REFIID riid, LPVOID *ppvOut) PURE;
- };
-
- LWSTDAPI AssocCreate(CLSID clsid, REFIID riid, LPVOID *ppv);
- // *** - end of shlwapi.h clone
-
#include "PyIQueryAssociations.h"
--- 3,6 ----
|