[ctypes-commit] ctypes/comtypes __init__.py,1.8,1.9
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2005-02-11 20:46:20
|
Update of /cvsroot/ctypes/ctypes/comtypes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21041 Modified Files: __init__.py Log Message: Minor changes. Index: __init__.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/comtypes/__init__.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** __init__.py 4 Feb 2005 21:17:10 -0000 1.8 --- __init__.py 11 Feb 2005 20:46:07 -0000 1.9 *************** *** 3,6 **** --- 3,9 ---- from ctypes import * from comtypes.GUID import GUID + _GUID = GUID + IID = GUID + DWORD = c_ulong ################################################################ *************** *** 118,122 **** STDMETHOD(c_ulong, "AddRef"), STDMETHOD(c_ulong, "Release") ! ] def QueryInterface(self, interface): --- 121,125 ---- STDMETHOD(c_ulong, "AddRef"), STDMETHOD(c_ulong, "Release") ! ] def QueryInterface(self, interface): *************** *** 134,137 **** --- 137,141 ---- return self.__com_Release() + ################ class CoClass(object): # creation, and so on *************** *** 147,150 **** --- 151,174 ---- return p + ################ + ##class IErrorInfo(IUnknown): + ## _iid_ = GUID("{1CF2B120-547D-101B-8E65-08002B2BD119}") + ## _methods_ = [ + ## # C:/Programme/gccxml/bin/Vc71/PlatformSDK/oaidl.h 5186 + ## STDMETHOD(HRESULT, 'GetGUID', [POINTER(GUID)]), + ## STDMETHOD(HRESULT, 'GetSource', [POINTER(BSTR)]), + ## STDMETHOD(HRESULT, 'GetDescription', [POINTER(BSTR)]), + ## STDMETHOD(HRESULT, 'GetHelpFile', [POINTER(BSTR)]), + ## STDMETHOD(HRESULT, 'GetHelpContext', [POINTER(DWORD)]), + ## ] + + ################ + ##class ISupportErrorInfo(IUnknown): + ## _iid_ = GUID("{DF0B3D60-548F-101B-8E65-08002B2BD119}") + ## _methods_ = [ + ## # C:/Programme/gccxml/bin/Vc71/PlatformSDK/oaidl.h 5546 + ## STDMETHOD(HRESULT, 'InterfaceSupportsErrorInfo', [POINTER(IID)]), + ## ] + __all__ = ["CoClass", "IUnknown", "GUID", "HRESULT", "BSTR", "STDMETHOD"] |