(E2K) with an eye towards deleting/creating more. I am going off of
the Exchange SDK docs in msdn
(http://msdn.microsoft.com/library/en...and_stores.asp)
to do this.
I used makepy.py (on 'Microsoft CDO for Exchange Management Library')
to generate early binding and thought everything was going fine, but I
get the following...
import win32com.client
exch = win32com.client .Dispatch("CDOE XM.ExchangeServ er")
exch <COMObject CDOEXM.Exchange Server> exch.ExchangeVe rsion
u''
exch.StorageGro ups
()
First, it doesn't appear that early binding is working?? Second, both
calls come up empty?? I am obviously missing something but don't know
what that something is.
I look in the makepy.py generated module and see the following under
the IExchangeServer class - So I believe that I am creating/calling
everything correctly. Any ideas??
class IExchangeServer (DispatchBaseCl ass):
"""IExchangeSer ver Interface"""
CLSID = IID('{25150F47-5734-11D2-A593-00C04F990D8A}')
coclass_clsid = IID('{25150F27-5734-11D2-A593-00C04F990D8A}')
def GetInterface(se lf, Interface=defau ltNamedNotOptAr g):
"""Returns the specified interface on the object"""
ret = self._oleobj_.I nvokeTypes(85, LCID, 1, (9, 0), ((8, 1),),
Interface)
if ret is not None:
ret = Dispatch(ret, 'GetInterface', None, UnicodeToString =0)
return ret
_prop_map_get_ = {
# Method 'DataSource' returns object of type 'IDataSource2'
"DataSource ": (75, 2, (9, 0), (), "DataSource ",
'{25150F48-5734-11D2-A593-00C04F990D8A}') ,
"DaysBeforeLogF ileRemoval": (82, 2, (3, 0), (),
"DaysBeforeLogF ileRemoval",
None),
"DirectoryServe r": (84, 2, (8, 0), (), "DirectoryServe r", None),
"ExchangeVersio n": (78, 2, (8, 0), (), "ExchangeVersio n", None),
# Method 'Fields' returns object of type 'Fields'
"Fields": (76, 2, (9, 0), (), "Fields",
'{00000564-0000-0010-8000-00AA006D2EA4}') ,
"MessageTrackin gEnabled": (81, 2, (11, 0), (),
"MessageTrackin gEnabled",
None),
"Name": (77, 2, (8, 0), (), "Name", None),
"ServerType ": (83, 2, (3, 0), (), "ServerType ", None),
"StorageGroups" : (79, 2, (12, 0), (), "StorageGroups" , None),
"SubjectLogging Enabled": (80, 2, (11, 0), (),
"SubjectLogging Enabled",
None),
}