[python-win32] How to QueryInterface IID_IExchangeManageStore
Cheeng, Shu-Chin SC SITI-ITIBDO2
Shu-Chin.Cheeng at Shell.com
Tue Jul 13 17:54:24 CEST 2004
hi mark,
Nice to hear from you.
This is some of my code:
====================================
import win32com.mapi.mapi as mapi
import win32com.mapi.exchange as exchange
import pythoncom,pywintypes
hr=mapi.MAPIInitialize(None)
lpsess = mapi.MAPILogonEx(0,"",None,mapi.MAPI_LOGON_UI|mapi.MAPI_NEW_SESSION|mapi.MAPI_EXPLICIT_PROFILE)
lpmdb=exchange.HrOpenExchangePrivateStore(lpsess)
print lpmdb
tmp=lpmdb.QueryInterface(IID_IExchangeManageStore) # it fail in here
#print exchange.HrMailboxLogon(lpsess,lpmdb,lpszMsgStoreDN,lpszMailboxDN)
#print lpmdb.GetPropList(0)
#print pywintypes.IID('IID_IExchangeManageStore')
#print lpmdb._com_interfaces_
#tmp=lpmdb.QueryInterface(pythoncom.MakeIID('{00000000-0000-0000-C000-000000000046}'))
#print tmp._com_interfaces_
#IExchangeManageStore=tmp.QueryInterface(pythoncom.IID_IDispatch)
#print pythoncom._GetInterfaceCount()
#tmp.Release()
#print IExchangeManageStore
====================================
should we need some of the LIB,TBL, and dll:
* Exchsdk.lib
* Mapi32.lib
* Edkutils.lib
* Edkmapi.lib
* edk.h
can we use ctypes for this????
What can I do for it : )
Regards,
Cheeng Shu Chin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cheeng, Shu-Chin SC SSI-ISWA2.vcf
Type: text/x-vcard
Size: 365 bytes
Desc: Cheeng, Shu-Chin SC SSI-ISWA2.vcf
Url : http://mail.python.org/pipermail/python-win32/attachments/20040713/74d0f625/CheengShu-ChinSCSSI-ISWA2.vcf
More information about the Python-win32
mailing list