PyXR

c:\projects\bitpim\src \ native \ outlook \ outlook_com.py



0001 # Created by makepy.py version 0.4.91
0002 # By python version 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
0003 # From type library 'msoutl9.olb'
0004 # On Sun Jun 13 01:17:20 2004
0005 """Microsoft Outlook 9.0 Object Library"""
0006 makepy_version = '0.4.91'
0007 python_version = 0x20304f0
0008 
0009 import win32com.client.CLSIDToClass, pythoncom
0010 import win32com.client.util
0011 from pywintypes import IID
0012 from win32com.client import Dispatch
0013 
0014 # The following 3 lines may need tweaking for the particular server
0015 # Candidates are pythoncom.Missing and pythoncom.Empty
0016 defaultNamedOptArg=pythoncom.Empty
0017 defaultNamedNotOptArg=pythoncom.Empty
0018 defaultUnnamedArg=pythoncom.Empty
0019 
0020 CLSID = IID('{00062FFF-0000-0000-C000-000000000046}')
0021 MajorVersion = 9
0022 MinorVersion = 0
0023 LibraryFlags = 8
0024 LCID = 0x0
0025 
0026 class constants:
0027         olForward                     =0x2        # from enum OlActionCopyLike
0028         olReply                       =0x0        # from enum OlActionCopyLike
0029         olReplyAll                    =0x1        # from enum OlActionCopyLike
0030         olReplyFolder                 =0x3        # from enum OlActionCopyLike
0031         olRespond                     =0x4        # from enum OlActionCopyLike
0032         olEmbedOriginalItem           =0x1        # from enum OlActionReplyStyle
0033         olIncludeOriginalText         =0x2        # from enum OlActionReplyStyle
0034         olIndentOriginalText          =0x3        # from enum OlActionReplyStyle
0035         olLinkOriginalItem            =0x4        # from enum OlActionReplyStyle
0036         olOmitOriginalText            =0x0        # from enum OlActionReplyStyle
0037         olReplyTickOriginalText       =0x3e8      # from enum OlActionReplyStyle
0038         olUserPreference              =0x5        # from enum OlActionReplyStyle
0039         olOpen                        =0x0        # from enum OlActionResponseStyle
0040         olPrompt                      =0x2        # from enum OlActionResponseStyle
0041         olSend                        =0x1        # from enum OlActionResponseStyle
0042         olDontShow                    =0x0        # from enum OlActionShowOn
0043         olMenu                        =0x1        # from enum OlActionShowOn
0044         olMenuAndToolbar              =0x2        # from enum OlActionShowOn
0045         olByReference                 =0x4        # from enum OlAttachmentType
0046         olByValue                     =0x1        # from enum OlAttachmentType
0047         olEmbeddeditem                =0x5        # from enum OlAttachmentType
0048         olOLE                         =0x6        # from enum OlAttachmentType
0049         olBusy                        =0x2        # from enum OlBusyStatus
0050         olFree                        =0x0        # from enum OlBusyStatus
0051         olOutOfOffice                 =0x3        # from enum OlBusyStatus
0052         olTentative                   =0x1        # from enum OlBusyStatus
0053         olFriday                      =0x20       # from enum OlDaysOfWeek
0054         olMonday                      =0x2        # from enum OlDaysOfWeek
0055         olSaturday                    =0x40       # from enum OlDaysOfWeek
0056         olSunday                      =0x1        # from enum OlDaysOfWeek
0057         olThursday                    =0x10       # from enum OlDaysOfWeek
0058         olTuesday                     =0x4        # from enum OlDaysOfWeek
0059         olWednesday                   =0x8        # from enum OlDaysOfWeek
0060         olFolderCalendar              =0x9        # from enum OlDefaultFolders
0061         olFolderContacts              =0xa        # from enum OlDefaultFolders
0062         olFolderDeletedItems          =0x3        # from enum OlDefaultFolders
0063         olFolderDrafts                =0x10       # from enum OlDefaultFolders
0064         olFolderInbox                 =0x6        # from enum OlDefaultFolders
0065         olFolderJournal               =0xb        # from enum OlDefaultFolders
0066         olFolderNotes                 =0xc        # from enum OlDefaultFolders
0067         olFolderOutbox                =0x4        # from enum OlDefaultFolders
0068         olFolderSentMail              =0x5        # from enum OlDefaultFolders
0069         olFolderTasks                 =0xd        # from enum OlDefaultFolders
0070         olAgent                       =0x3        # from enum OlDisplayType
0071         olDistList                    =0x1        # from enum OlDisplayType
0072         olForum                       =0x2        # from enum OlDisplayType
0073         olOrganization                =0x4        # from enum OlDisplayType
0074         olPrivateDistList             =0x5        # from enum OlDisplayType
0075         olRemoteUser                  =0x6        # from enum OlDisplayType
0076         olUser                        =0x0        # from enum OlDisplayType
0077         olEditorHTML                  =0x2        # from enum OlEditorType
0078         olEditorRTF                   =0x3        # from enum OlEditorType
0079         olEditorText                  =0x1        # from enum OlEditorType
0080         olEditorWord                  =0x4        # from enum OlEditorType
0081         olFlagComplete                =0x1        # from enum OlFlagStatus
0082         olFlagMarked                  =0x2        # from enum OlFlagStatus
0083         olNoFlag                      =0x0        # from enum OlFlagStatus
0084         olFolderDisplayFolderOnly     =0x1        # from enum OlFolderDisplayMode
0085         olFolderDisplayNoNavigation   =0x2        # from enum OlFolderDisplayMode
0086         olFolderDisplayNormal         =0x0        # from enum OlFolderDisplayMode
0087         olDefaultRegistry             =0x0        # from enum OlFormRegistry
0088         olFolderRegistry              =0x3        # from enum OlFormRegistry
0089         olOrganizationRegistry        =0x4        # from enum OlFormRegistry
0090         olPersonalRegistry            =0x2        # from enum OlFormRegistry
0091         olFemale                      =0x1        # from enum OlGender
0092         olMale                        =0x2        # from enum OlGender
0093         olUnspecified                 =0x0        # from enum OlGender
0094         olImportanceHigh              =0x2        # from enum OlImportance
0095         olImportanceLow               =0x0        # from enum OlImportance
0096         olImportanceNormal            =0x1        # from enum OlImportance
0097         olDiscard                     =0x1        # from enum OlInspectorClose
0098         olPromptForSave               =0x2        # from enum OlInspectorClose
0099         olSave                        =0x0        # from enum OlInspectorClose
0100         olAppointmentItem             =0x1        # from enum OlItemType
0101         olContactItem                 =0x2        # from enum OlItemType
0102         olDistributionListItem        =0x7        # from enum OlItemType
0103         olJournalItem                 =0x4        # from enum OlItemType
0104         olMailItem                    =0x0        # from enum OlItemType
0105         olNoteItem                    =0x5        # from enum OlItemType
0106         olPostItem                    =0x6        # from enum OlItemType
0107         olTaskItem                    =0x3        # from enum OlItemType
0108         olAssociatedContact           =0x1        # from enum OlJournalRecipientType
0109         olBCC                         =0x3        # from enum OlMailRecipientType
0110         olCC                          =0x2        # from enum OlMailRecipientType
0111         olOriginator                  =0x0        # from enum OlMailRecipientType
0112         olTo                          =0x1        # from enum OlMailRecipientType
0113         olBusiness                    =0x2        # from enum OlMailingAddress
0114         olHome                        =0x1        # from enum OlMailingAddress
0115         olNone                        =0x0        # from enum OlMailingAddress
0116         olOther                       =0x3        # from enum OlMailingAddress
0117         olOptional                    =0x2        # from enum OlMeetingRecipientType
0118         olOrganizer                   =0x0        # from enum OlMeetingRecipientType
0119         olRequired                    =0x1        # from enum OlMeetingRecipientType
0120         olResource                    =0x3        # from enum OlMeetingRecipientType
0121         olMeetingAccepted             =0x3        # from enum OlMeetingResponse
0122         olMeetingDeclined             =0x4        # from enum OlMeetingResponse
0123         olMeetingTentative            =0x2        # from enum OlMeetingResponse
0124         olMeeting                     =0x1        # from enum OlMeetingStatus
0125         olMeetingCanceled             =0x5        # from enum OlMeetingStatus
0126         olMeetingReceived             =0x3        # from enum OlMeetingStatus
0127         olNonMeeting                  =0x0        # from enum OlMeetingStatus
0128         olChat                        =0x2        # from enum OlNetMeetingType
0129         olNetMeeting                  =0x0        # from enum OlNetMeetingType
0130         olNetShow                     =0x1        # from enum OlNetMeetingType
0131         olBlue                        =0x0        # from enum OlNoteColor
0132         olGreen                       =0x1        # from enum OlNoteColor
0133         olPink                        =0x2        # from enum OlNoteColor
0134         olWhite                       =0x4        # from enum OlNoteColor
0135         olYellow                      =0x3        # from enum OlNoteColor
0136         olAction                      =0x20       # from enum OlObjectClass
0137         olActions                     =0x21       # from enum OlObjectClass
0138         olAddressEntries              =0x15       # from enum OlObjectClass
0139         olAddressEntry                =0x8        # from enum OlObjectClass
0140         olAddressList                 =0x7        # from enum OlObjectClass
0141         olAddressLists                =0x14       # from enum OlObjectClass
0142         olApplication                 =0x0        # from enum OlObjectClass
0143         olAppointment                 =0x1a       # from enum OlObjectClass
0144         olAttachment                  =0x5        # from enum OlObjectClass
0145         olAttachments                 =0x12       # from enum OlObjectClass
0146         olContact                     =0x28       # from enum OlObjectClass
0147         olDistributionList            =0x45       # from enum OlObjectClass
0148         olDocument                    =0x29       # from enum OlObjectClass
0149         olException                   =0x1e       # from enum OlObjectClass
0150         olExceptions                  =0x1d       # from enum OlObjectClass
0151         olExplorer                    =0x22       # from enum OlObjectClass
0152         olExplorers                   =0x3c       # from enum OlObjectClass
0153         olFolder                      =0x2        # from enum OlObjectClass
0154         olFolders                     =0xf        # from enum OlObjectClass
0155         olFormDescription             =0x25       # from enum OlObjectClass
0156         olInspector                   =0x23       # from enum OlObjectClass
0157         olInspectors                  =0x3d       # from enum OlObjectClass
0158         olItems                       =0x10       # from enum OlObjectClass
0159         olJournal                     =0x2a       # from enum OlObjectClass
0160         olLink                        =0x4b       # from enum OlObjectClass
0161         olLinks                       =0x4c       # from enum OlObjectClass
0162         olMail                        =0x2b       # from enum OlObjectClass
0163         olMeetingCancellation         =0x36       # from enum OlObjectClass
0164         olMeetingRequest              =0x35       # from enum OlObjectClass
0165         olMeetingResponseNegative     =0x37       # from enum OlObjectClass
0166         olMeetingResponsePositive     =0x38       # from enum OlObjectClass
0167         olMeetingResponseTentative    =0x39       # from enum OlObjectClass
0168         olNamespace                   =0x1        # from enum OlObjectClass
0169         olNote                        =0x2c       # from enum OlObjectClass
0170         olOutlookBarGroup             =0x42       # from enum OlObjectClass
0171         olOutlookBarGroups            =0x41       # from enum OlObjectClass
0172         olOutlookBarPane              =0x3f       # from enum OlObjectClass
0173         olOutlookBarShortcut          =0x44       # from enum OlObjectClass
0174         olOutlookBarShortcuts         =0x43       # from enum OlObjectClass
0175         olOutlookBarStorage           =0x40       # from enum OlObjectClass
0176         olPages                       =0x24       # from enum OlObjectClass
0177         olPanes                       =0x3e       # from enum OlObjectClass
0178         olPost                        =0x2d       # from enum OlObjectClass
0179         olPropertyPageSite            =0x46       # from enum OlObjectClass
0180         olPropertyPages               =0x47       # from enum OlObjectClass
0181         olRecipient                   =0x4        # from enum OlObjectClass
0182         olRecipients                  =0x11       # from enum OlObjectClass
0183         olRecurrencePattern           =0x1c       # from enum OlObjectClass
0184         olRemote                      =0x2f       # from enum OlObjectClass
0185         olReport                      =0x2e       # from enum OlObjectClass
0186         olSelection                   =0x4a       # from enum OlObjectClass
0187         olSyncObject                  =0x48       # from enum OlObjectClass
0188         olSyncObjects                 =0x49       # from enum OlObjectClass
0189         olTask                        =0x30       # from enum OlObjectClass
0190         olTaskRequest                 =0x31       # from enum OlObjectClass
0191         olTaskRequestAccept           =0x33       # from enum OlObjectClass
0192         olTaskRequestDecline          =0x34       # from enum OlObjectClass
0193         olTaskRequestUpdate           =0x32       # from enum OlObjectClass
0194         olUserProperties              =0x26       # from enum OlObjectClass
0195         olUserProperty                =0x27       # from enum OlObjectClass
0196         olLargeIcon                   =0x0        # from enum OlOutlookBarViewType
0197         olSmallIcon                   =0x1        # from enum OlOutlookBarViewType
0198         olFolderList                  =0x2        # from enum OlPane
0199         olOutlookBar                  =0x1        # from enum OlPane
0200         olPreview                     =0x3        # from enum OlPane
0201         olApptException               =0x3        # from enum OlRecurrenceState
0202         olApptMaster                  =0x1        # from enum OlRecurrenceState
0203         olApptNotRecurring            =0x0        # from enum OlRecurrenceState
0204         olApptOccurrence              =0x2        # from enum OlRecurrenceState
0205         olRecursDaily                 =0x0        # from enum OlRecurrenceType
0206         olRecursMonthNth              =0x3        # from enum OlRecurrenceType
0207         olRecursMonthly               =0x2        # from enum OlRecurrenceType
0208         olRecursWeekly                =0x1        # from enum OlRecurrenceType
0209         olRecursYearNth               =0x6        # from enum OlRecurrenceType
0210         olRecursYearly                =0x5        # from enum OlRecurrenceType
0211         olMarkedForCopy               =0x3        # from enum OlRemoteStatus
0212         olMarkedForDelete             =0x4        # from enum OlRemoteStatus
0213         olMarkedForDownload           =0x2        # from enum OlRemoteStatus
0214         olRemoteStatusNone            =0x0        # from enum OlRemoteStatus
0215         olUnMarked                    =0x1        # from enum OlRemoteStatus
0216         olResponseAccepted            =0x3        # from enum OlResponseStatus
0217         olResponseDeclined            =0x4        # from enum OlResponseStatus
0218         olResponseNone                =0x0        # from enum OlResponseStatus
0219         olResponseNotResponded        =0x5        # from enum OlResponseStatus
0220         olResponseOrganized           =0x1        # from enum OlResponseStatus
0221         olResponseTentative           =0x2        # from enum OlResponseStatus
0222         olDoc                         =0x4        # from enum OlSaveAsType
0223         olHTML                        =0x5        # from enum OlSaveAsType
0224         olMSG                         =0x3        # from enum OlSaveAsType
0225         olRTF                         =0x1        # from enum OlSaveAsType
0226         olTXT                         =0x0        # from enum OlSaveAsType
0227         olTemplate                    =0x2        # from enum OlSaveAsType
0228         olVCal                        =0x7        # from enum OlSaveAsType
0229         olVCard                       =0x6        # from enum OlSaveAsType
0230         olConfidential                =0x3        # from enum OlSensitivity
0231         olNormal                      =0x0        # from enum OlSensitivity
0232         olPersonal                    =0x1        # from enum OlSensitivity
0233         olPrivate                     =0x2        # from enum OlSensitivity
0234         olAscending                   =0x1        # from enum OlSortOrder
0235         olDescending                  =0x2        # from enum OlSortOrder
0236         olSortNone                    =0x0        # from enum OlSortOrder
0237         olSyncStarted                 =0x1        # from enum OlSyncState
0238         olSyncStopped                 =0x0        # from enum OlSyncState
0239         olTaskDelegationAccepted      =0x2        # from enum OlTaskDelegationState
0240         olTaskDelegationDeclined      =0x3        # from enum OlTaskDelegationState
0241         olTaskDelegationUnknown       =0x1        # from enum OlTaskDelegationState
0242         olTaskNotDelegated            =0x0        # from enum OlTaskDelegationState
0243         olDelegatedTask               =0x1        # from enum OlTaskOwnership
0244         olNewTask                     =0x0        # from enum OlTaskOwnership
0245         olOwnTask                     =0x2        # from enum OlTaskOwnership
0246         olFinalStatus                 =0x3        # from enum OlTaskRecipientType
0247         olUpdate                      =0x2        # from enum OlTaskRecipientType
0248         olTaskAccept                  =0x2        # from enum OlTaskResponse
0249         olTaskAssign                  =0x1        # from enum OlTaskResponse
0250         olTaskDecline                 =0x3        # from enum OlTaskResponse
0251         olTaskSimple                  =0x0        # from enum OlTaskResponse
0252         olTaskComplete                =0x2        # from enum OlTaskStatus
0253         olTaskDeferred                =0x4        # from enum OlTaskStatus
0254         olTaskInProgress              =0x1        # from enum OlTaskStatus
0255         olTaskNotStarted              =0x0        # from enum OlTaskStatus
0256         olTaskWaiting                 =0x3        # from enum OlTaskStatus
0257         olTrackingDelivered           =0x1        # from enum OlTrackingStatus
0258         olTrackingNone                =0x0        # from enum OlTrackingStatus
0259         olTrackingNotDelivered        =0x2        # from enum OlTrackingStatus
0260         olTrackingNotRead             =0x3        # from enum OlTrackingStatus
0261         olTrackingRead                =0x6        # from enum OlTrackingStatus
0262         olTrackingRecallFailure       =0x4        # from enum OlTrackingStatus
0263         olTrackingRecallSuccess       =0x5        # from enum OlTrackingStatus
0264         olTrackingReplied             =0x7        # from enum OlTrackingStatus
0265         olCombination                 =0x13       # from enum OlUserPropertyType
0266         olCurrency                    =0xe        # from enum OlUserPropertyType
0267         olDateTime                    =0x5        # from enum OlUserPropertyType
0268         olDuration                    =0x7        # from enum OlUserPropertyType
0269         olFormula                     =0x12       # from enum OlUserPropertyType
0270         olKeywords                    =0xb        # from enum OlUserPropertyType
0271         olNumber                      =0x3        # from enum OlUserPropertyType
0272         olPercent                     =0xc        # from enum OlUserPropertyType
0273         olText                        =0x1        # from enum OlUserPropertyType
0274         olYesNo                       =0x6        # from enum OlUserPropertyType
0275         olMaximized                   =0x0        # from enum OlWindowState
0276         olMinimized                   =0x1        # from enum OlWindowState
0277         olNormalWindow                =0x2        # from enum OlWindowState
0278 
0279 from win32com.client import DispatchBaseClass
0280 class Action(DispatchBaseClass):
0281         CLSID = IID('{00063043-0000-0000-C000-000000000046}')
0282         coclass_clsid = None
0283 
0284         def Delete(self):
0285                 return self._oleobj_.InvokeTypes(108, LCID, 1, (24, 0), (),)
0286 
0287         def Execute(self):
0288                 ret = self._oleobj_.InvokeTypes(106, LCID, 1, (9, 0), (),)
0289                 if ret is not None:
0290                         ret = Dispatch(ret, 'Execute', None, UnicodeToString=0)
0291                 return ret
0292 
0293         _prop_map_get_ = {
0294                 # Method 'Application' returns object of type '_Application'
0295                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
0296                 "Class": (61450, 2, (3, 0), (), "Class", None),
0297                 "CopyLike": (100, 2, (3, 0), (), "CopyLike", None),
0298                 "Enabled": (103, 2, (11, 0), (), "Enabled", None),
0299                 "MessageClass": (26, 2, (8, 0), (), "MessageClass", None),
0300                 "Name": (12289, 2, (8, 0), (), "Name", None),
0301                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
0302                 "Prefix": (61, 2, (8, 0), (), "Prefix", None),
0303                 "ReplyStyle": (101, 2, (3, 0), (), "ReplyStyle", None),
0304                 "ResponseStyle": (102, 2, (3, 0), (), "ResponseStyle", None),
0305                 # Method 'Session' returns object of type '_NameSpace'
0306                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
0307                 "ShowOn": (105, 2, (3, 0), (), "ShowOn", None),
0308         }
0309         _prop_map_put_ = {
0310                 "CopyLike": ((100, LCID, 4, 0),()),
0311                 "Enabled": ((103, LCID, 4, 0),()),
0312                 "MessageClass": ((26, LCID, 4, 0),()),
0313                 "Name": ((12289, LCID, 4, 0),()),
0314                 "Prefix": ((61, LCID, 4, 0),()),
0315                 "ReplyStyle": ((101, LCID, 4, 0),()),
0316                 "ResponseStyle": ((102, LCID, 4, 0),()),
0317                 "ShowOn": ((105, LCID, 4, 0),()),
0318         }
0319 
0320 class Actions(DispatchBaseClass):
0321         CLSID = IID('{0006303E-0000-0000-C000-000000000046}')
0322         coclass_clsid = None
0323 
0324         # Result is of type Action
0325         def Add(self):
0326                 ret = self._oleobj_.InvokeTypes(100, LCID, 1, (9, 0), (),)
0327                 if ret is not None:
0328                         ret = Dispatch(ret, 'Add', '{00063043-0000-0000-C000-000000000046}', UnicodeToString=0)
0329                 return ret
0330 
0331         # Result is of type Action
0332         def Item(self, Index=defaultNamedNotOptArg):
0333                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (9, 0), ((12, 1),),Index)
0334                 if ret is not None:
0335                         ret = Dispatch(ret, 'Item', '{00063043-0000-0000-C000-000000000046}', UnicodeToString=0)
0336                 return ret
0337 
0338         def Remove(self, Index=defaultNamedNotOptArg):
0339                 return self._oleobj_.InvokeTypes(82, LCID, 1, (24, 0), ((3, 1),),Index)
0340 
0341         _prop_map_get_ = {
0342                 # Method 'Application' returns object of type '_Application'
0343                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
0344                 "Class": (61450, 2, (3, 0), (), "Class", None),
0345                 "Count": (80, 2, (3, 0), (), "Count", None),
0346                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
0347                 # Method 'Session' returns object of type '_NameSpace'
0348                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
0349         }
0350         _prop_map_put_ = {
0351         }
0352         #This class has Item property/method which may take args - allow indexed access
0353         def __getitem__(self, item):
0354                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
0355         #This class has Count() property - allow len(ob) to provide this
0356         def __len__(self):
0357                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
0358         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
0359         def __nonzero__(self):
0360                 return True
0361 
0362 class AddressEntries(DispatchBaseClass):
0363         CLSID = IID('{0006304A-0000-0000-C000-000000000046}')
0364         coclass_clsid = None
0365 
0366         # Result is of type AddressEntry
0367         def Add(self, Type=defaultNamedNotOptArg, Name=defaultNamedOptArg, Address=defaultNamedOptArg):
0368                 ret = self._oleobj_.InvokeTypes(95, LCID, 1, (9, 0), ((8, 1), (12, 17), (12, 17)),Type, Name, Address)
0369                 if ret is not None:
0370                         ret = Dispatch(ret, 'Add', '{0006304B-0000-0000-C000-000000000046}', UnicodeToString=0)
0371                 return ret
0372 
0373         # Result is of type AddressEntry
0374         def GetFirst(self):
0375                 ret = self._oleobj_.InvokeTypes(86, LCID, 1, (9, 0), (),)
0376                 if ret is not None:
0377                         ret = Dispatch(ret, 'GetFirst', '{0006304B-0000-0000-C000-000000000046}', UnicodeToString=0)
0378                 return ret
0379 
0380         # Result is of type AddressEntry
0381         def GetLast(self):
0382                 ret = self._oleobj_.InvokeTypes(88, LCID, 1, (9, 0), (),)
0383                 if ret is not None:
0384                         ret = Dispatch(ret, 'GetLast', '{0006304B-0000-0000-C000-000000000046}', UnicodeToString=0)
0385                 return ret
0386 
0387         # Result is of type AddressEntry
0388         def GetNext(self):
0389                 ret = self._oleobj_.InvokeTypes(87, LCID, 1, (9, 0), (),)
0390                 if ret is not None:
0391                         ret = Dispatch(ret, 'GetNext', '{0006304B-0000-0000-C000-000000000046}', UnicodeToString=0)
0392                 return ret
0393 
0394         # Result is of type AddressEntry
0395         def GetPrevious(self):
0396                 ret = self._oleobj_.InvokeTypes(89, LCID, 1, (9, 0), (),)
0397                 if ret is not None:
0398                         ret = Dispatch(ret, 'GetPrevious', '{0006304B-0000-0000-C000-000000000046}', UnicodeToString=0)
0399                 return ret
0400 
0401         # Result is of type AddressEntry
0402         def Item(self, Index=defaultNamedNotOptArg):
0403                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (9, 0), ((12, 1),),Index)
0404                 if ret is not None:
0405                         ret = Dispatch(ret, 'Item', '{0006304B-0000-0000-C000-000000000046}', UnicodeToString=0)
0406                 return ret
0407 
0408         def Sort(self, Property=defaultNamedOptArg, Order=defaultNamedOptArg):
0409                 return self._oleobj_.InvokeTypes(97, LCID, 1, (24, 0), ((12, 17), (12, 17)),Property, Order)
0410 
0411         _prop_map_get_ = {
0412                 # Method 'Application' returns object of type '_Application'
0413                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
0414                 "Class": (61450, 2, (3, 0), (), "Class", None),
0415                 "Count": (80, 2, (3, 0), (), "Count", None),
0416                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
0417                 "RawTable": (90, 2, (13, 0), (), "RawTable", None),
0418                 # Method 'Session' returns object of type '_NameSpace'
0419                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
0420         }
0421         _prop_map_put_ = {
0422         }
0423         #This class has Item property/method which may take args - allow indexed access
0424         def __getitem__(self, item):
0425                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
0426         #This class has Count() property - allow len(ob) to provide this
0427         def __len__(self):
0428                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
0429         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
0430         def __nonzero__(self):
0431                 return True
0432 
0433 class AddressEntry(DispatchBaseClass):
0434         CLSID = IID('{0006304B-0000-0000-C000-000000000046}')
0435         coclass_clsid = None
0436 
0437         def Delete(self):
0438                 return self._oleobj_.InvokeTypes(770, LCID, 1, (24, 0), (),)
0439 
0440         def Details(self, HWnd=defaultNamedOptArg):
0441                 return self._oleobj_.InvokeTypes(769, LCID, 1, (24, 0), ((12, 17),),HWnd)
0442 
0443         def GetFreeBusy(self, Start=defaultNamedNotOptArg, MinPerChar=defaultNamedNotOptArg, CompleteFormat=defaultNamedOptArg):
0444                 # Result is a Unicode object - return as-is for this version of Python
0445                 return self._oleobj_.InvokeTypes(774, LCID, 1, (8, 0), ((7, 1), (3, 1), (12, 17)),Start, MinPerChar, CompleteFormat)
0446 
0447         def Update(self, MakePermanent=defaultNamedOptArg, Refresh=defaultNamedOptArg):
0448                 return self._oleobj_.InvokeTypes(768, LCID, 1, (24, 0), ((12, 17), (12, 17)),MakePermanent, Refresh)
0449 
0450         def UpdateFreeBusy(self):
0451                 return self._oleobj_.InvokeTypes(775, LCID, 1, (24, 0), (),)
0452 
0453         _prop_map_get_ = {
0454                 "Address": (12291, 2, (8, 0), (), "Address", None),
0455                 # Method 'Application' returns object of type '_Application'
0456                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
0457                 "Class": (61450, 2, (3, 0), (), "Class", None),
0458                 "DisplayType": (14592, 2, (3, 0), (), "DisplayType", None),
0459                 "ID": (61470, 2, (8, 0), (), "ID", None),
0460                 "MAPIOBJECT": (61696, 2, (13, 0), (), "MAPIOBJECT", None),
0461                 # Method 'Manager' returns object of type 'AddressEntry'
0462                 "Manager": (771, 2, (9, 0), (), "Manager", '{0006304B-0000-0000-C000-000000000046}'),
0463                 # Method 'Members' returns object of type 'AddressEntries'
0464                 "Members": (772, 2, (9, 0), (), "Members", '{0006304A-0000-0000-C000-000000000046}'),
0465                 "Name": (12289, 2, (8, 0), (), "Name", None),
0466                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
0467                 # Method 'Session' returns object of type '_NameSpace'
0468                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
0469                 "Type": (12290, 2, (8, 0), (), "Type", None),
0470         }
0471         _prop_map_put_ = {
0472                 "Address": ((12291, LCID, 4, 0),()),
0473                 "MAPIOBJECT": ((61696, LCID, 4, 0),()),
0474                 "Name": ((12289, LCID, 4, 0),()),
0475                 "Type": ((12290, LCID, 4, 0),()),
0476         }
0477 
0478 class AddressList(DispatchBaseClass):
0479         CLSID = IID('{00063049-0000-0000-C000-000000000046}')
0480         coclass_clsid = None
0481 
0482         _prop_map_get_ = {
0483                 # Method 'AddressEntries' returns object of type 'AddressEntries'
0484                 "AddressEntries": (256, 2, (9, 0), (), "AddressEntries", '{0006304A-0000-0000-C000-000000000046}'),
0485                 # Method 'Application' returns object of type '_Application'
0486                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
0487                 "Class": (61450, 2, (3, 0), (), "Class", None),
0488                 "ID": (61470, 2, (8, 0), (), "ID", None),
0489                 "Index": (91, 2, (3, 0), (), "Index", None),
0490                 "IsReadOnly": (61463, 2, (11, 0), (), "IsReadOnly", None),
0491                 "Name": (12289, 2, (8, 0), (), "Name", None),
0492                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
0493                 # Method 'Session' returns object of type '_NameSpace'
0494                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
0495         }
0496         _prop_map_put_ = {
0497         }
0498 
0499 class AddressLists(DispatchBaseClass):
0500         CLSID = IID('{00063048-0000-0000-C000-000000000046}')
0501         coclass_clsid = None
0502 
0503         # Result is of type AddressList
0504         def Item(self, Index=defaultNamedNotOptArg):
0505                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (9, 0), ((12, 1),),Index)
0506                 if ret is not None:
0507                         ret = Dispatch(ret, 'Item', '{00063049-0000-0000-C000-000000000046}', UnicodeToString=0)
0508                 return ret
0509 
0510         _prop_map_get_ = {
0511                 # Method 'Application' returns object of type '_Application'
0512                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
0513                 "Class": (61450, 2, (3, 0), (), "Class", None),
0514                 "Count": (80, 2, (3, 0), (), "Count", None),
0515                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
0516                 # Method 'Session' returns object of type '_NameSpace'
0517                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
0518         }
0519         _prop_map_put_ = {
0520         }
0521         #This class has Item property/method which may take args - allow indexed access
0522         def __getitem__(self, item):
0523                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
0524         #This class has Count() property - allow len(ob) to provide this
0525         def __len__(self):
0526                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
0527         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
0528         def __nonzero__(self):
0529                 return True
0530 
0531 class ApplicationEvents:
0532         CLSID = CLSID_Sink = IID('{0006304E-0000-0000-C000-000000000046}')
0533         coclass_clsid = IID('{0006F03A-0000-0000-C000-000000000046}')
0534         _public_methods_ = [] # For COM Server support
0535         _dispid_to_func_ = {
0536                     61447 : "OnQuit",
0537                     61442 : "OnItemSend",
0538                     61446 : "OnStartup",
0539                     61443 : "OnNewMail",
0540                     61444 : "OnReminder",
0541                     61445 : "OnOptionsPagesAdd",
0542                 }
0543 
0544         def __init__(self, oobj = None):
0545                 if oobj is None:
0546                         self._olecp = None
0547                 else:
0548                         import win32com.server.util
0549                         from win32com.server.policy import EventHandlerPolicy
0550                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
0551                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
0552                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
0553                         self._olecp,self._olecp_cookie = cp,cookie
0554         def __del__(self):
0555                 try:
0556                         self.close()
0557                 except pythoncom.com_error:
0558                         pass
0559         def close(self):
0560                 if self._olecp is not None:
0561                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
0562                         cp.Unadvise(cookie)
0563         def _query_interface_(self, iid):
0564                 import win32com.server.util
0565                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
0566 
0567         # Event Handlers
0568         # If you create handlers, they should have the following prototypes:
0569 # def OnQuit(self):
0570 # def OnItemSend(self, Item=defaultNamedNotOptArg, Cancel=defaultNamedNotOptArg):
0571 # def OnStartup(self):
0572 # def OnNewMail(self):
0573 # def OnReminder(self, Item=defaultNamedNotOptArg):
0574 # def OnOptionsPagesAdd(self, Pages=defaultNamedNotOptArg):
0575 
0576 
0577 class Attachment(DispatchBaseClass):
0578         CLSID = IID('{00063007-0000-0000-C000-000000000046}')
0579         coclass_clsid = None
0580 
0581         def Delete(self):
0582                 return self._oleobj_.InvokeTypes(105, LCID, 1, (24, 0), (),)
0583 
0584         def SaveAsFile(self, Path=defaultNamedNotOptArg):
0585                 return self._oleobj_.InvokeTypes(104, LCID, 1, (24, 0), ((8, 1),),Path)
0586 
0587         _prop_map_get_ = {
0588                 # Method 'Application' returns object of type '_Application'
0589                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
0590                 "Class": (61450, 2, (3, 0), (), "Class", None),
0591                 "DisplayName": (12289, 2, (8, 0), (), "DisplayName", None),
0592                 "FileName": (14084, 2, (8, 0), (), "FileName", None),
0593                 "Index": (91, 2, (3, 0), (), "Index", None),
0594                 "MAPIOBJECT": (61696, 2, (13, 0), (), "MAPIOBJECT", None),
0595                 "Parent": (113, 2, (9, 0), (), "Parent", None),
0596                 "PathName": (14088, 2, (8, 0), (), "PathName", None),
0597                 "Position": (114, 2, (3, 0), (), "Position", None),
0598                 # Method 'Session' returns object of type '_NameSpace'
0599                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
0600                 "Type": (14085, 2, (3, 0), (), "Type", None),
0601         }
0602         _prop_map_put_ = {
0603                 "DisplayName": ((12289, LCID, 4, 0),()),
0604                 "Position": ((114, LCID, 4, 0),()),
0605         }
0606 
0607 class Attachments(DispatchBaseClass):
0608         CLSID = IID('{0006303C-0000-0000-C000-000000000046}')
0609         coclass_clsid = None
0610 
0611         # Result is of type Attachment
0612         def Add(self, Source=defaultNamedNotOptArg, Type=defaultNamedOptArg, Position=defaultNamedOptArg, DisplayName=defaultNamedOptArg):
0613                 ret = self._oleobj_.InvokeTypes(101, LCID, 1, (9, 0), ((12, 1), (12, 17), (12, 17), (12, 17)),Source, Type, Position, DisplayName)
0614                 if ret is not None:
0615                         ret = Dispatch(ret, 'Add', '{00063007-0000-0000-C000-000000000046}', UnicodeToString=0)
0616                 return ret
0617 
0618         # Result is of type Attachment
0619         def Item(self, Index=defaultNamedNotOptArg):
0620                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (9, 0), ((12, 1),),Index)
0621                 if ret is not None:
0622                         ret = Dispatch(ret, 'Item', '{00063007-0000-0000-C000-000000000046}', UnicodeToString=0)
0623                 return ret
0624 
0625         def Remove(self, Index=defaultNamedNotOptArg):
0626                 return self._oleobj_.InvokeTypes(84, LCID, 1, (24, 0), ((3, 1),),Index)
0627 
0628         _prop_map_get_ = {
0629                 # Method 'Application' returns object of type '_Application'
0630                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
0631                 "Class": (61450, 2, (3, 0), (), "Class", None),
0632                 "Count": (80, 2, (3, 0), (), "Count", None),
0633                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
0634                 # Method 'Session' returns object of type '_NameSpace'
0635                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
0636         }
0637         _prop_map_put_ = {
0638         }
0639         #This class has Item property/method which may take args - allow indexed access
0640         def __getitem__(self, item):
0641                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
0642         #This class has Count() property - allow len(ob) to provide this
0643         def __len__(self):
0644                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
0645         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
0646         def __nonzero__(self):
0647                 return True
0648 
0649 class Exception(DispatchBaseClass):
0650         CLSID = IID('{0006304D-0000-0000-C000-000000000046}')
0651         coclass_clsid = None
0652 
0653         _prop_map_get_ = {
0654                 # Method 'Application' returns object of type '_Application'
0655                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
0656                 # Method 'AppointmentItem' returns object of type 'AppointmentItem'
0657                 "AppointmentItem": (8193, 2, (13, 0), (), "AppointmentItem", '{00061030-0000-0000-C000-000000000046}'),
0658                 "Class": (61450, 2, (3, 0), (), "Class", None),
0659                 "Deleted": (8194, 2, (11, 0), (), "Deleted", None),
0660                 "OriginalDate": (8192, 2, (7, 0), (), "OriginalDate", None),
0661                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
0662                 # Method 'Session' returns object of type '_NameSpace'
0663                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
0664         }
0665         _prop_map_put_ = {
0666         }
0667 
0668 class Exceptions(DispatchBaseClass):
0669         CLSID = IID('{0006304C-0000-0000-C000-000000000046}')
0670         coclass_clsid = None
0671 
0672         # Result is of type Exception
0673         def Item(self, Index=defaultNamedNotOptArg):
0674                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (9, 0), ((12, 1),),Index)
0675                 if ret is not None:
0676                         ret = Dispatch(ret, 'Item', '{0006304D-0000-0000-C000-000000000046}', UnicodeToString=0)
0677                 return ret
0678 
0679         _prop_map_get_ = {
0680                 # Method 'Application' returns object of type '_Application'
0681                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
0682                 "Class": (61450, 2, (3, 0), (), "Class", None),
0683                 "Count": (80, 2, (3, 0), (), "Count", None),
0684                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
0685                 # Method 'Session' returns object of type '_NameSpace'
0686                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
0687         }
0688         _prop_map_put_ = {
0689         }
0690         #This class has Item property/method which may take args - allow indexed access
0691         def __getitem__(self, item):
0692                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
0693         #This class has Count() property - allow len(ob) to provide this
0694         def __len__(self):
0695                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
0696         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
0697         def __nonzero__(self):
0698                 return True
0699 
0700 class ExplorerEvents:
0701         CLSID = CLSID_Sink = IID('{0006304F-0000-0000-C000-000000000046}')
0702         coclass_clsid = IID('{00063050-0000-0000-C000-000000000046}')
0703         _public_methods_ = [] # For COM Server support
0704         _dispid_to_func_ = {
0705                     61445 : "OnBeforeViewSwitch",
0706                     61441 : "OnActivate",
0707                     61444 : "OnViewSwitch",
0708                     61446 : "OnDeactivate",
0709                     61447 : "OnSelectionChange",
0710                     61443 : "OnBeforeFolderSwitch",
0711                     61448 : "OnClose",
0712                     61442 : "OnFolderSwitch",
0713                 }
0714 
0715         def __init__(self, oobj = None):
0716                 if oobj is None:
0717                         self._olecp = None
0718                 else:
0719                         import win32com.server.util
0720                         from win32com.server.policy import EventHandlerPolicy
0721                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
0722                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
0723                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
0724                         self._olecp,self._olecp_cookie = cp,cookie
0725         def __del__(self):
0726                 try:
0727                         self.close()
0728                 except pythoncom.com_error:
0729                         pass
0730         def close(self):
0731                 if self._olecp is not None:
0732                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
0733                         cp.Unadvise(cookie)
0734         def _query_interface_(self, iid):
0735                 import win32com.server.util
0736                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
0737 
0738         # Event Handlers
0739         # If you create handlers, they should have the following prototypes:
0740 # def OnBeforeViewSwitch(self, NewView=defaultNamedNotOptArg, Cancel=defaultNamedNotOptArg):
0741 # def OnActivate(self):
0742 # def OnViewSwitch(self):
0743 # def OnDeactivate(self):
0744 # def OnSelectionChange(self):
0745 # def OnBeforeFolderSwitch(self, NewFolder=defaultNamedNotOptArg, Cancel=defaultNamedNotOptArg):
0746 # def OnClose(self):
0747 # def OnFolderSwitch(self):
0748 
0749 
0750 class ExplorersEvents:
0751         CLSID = CLSID_Sink = IID('{00063078-0000-0000-C000-000000000046}')
0752         coclass_clsid = IID('{00063053-0000-0000-C000-000000000046}')
0753         _public_methods_ = [] # For COM Server support
0754         _dispid_to_func_ = {
0755                     61441 : "OnNewExplorer",
0756                 }
0757 
0758         def __init__(self, oobj = None):
0759                 if oobj is None:
0760                         self._olecp = None
0761                 else:
0762                         import win32com.server.util
0763                         from win32com.server.policy import EventHandlerPolicy
0764                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
0765                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
0766                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
0767                         self._olecp,self._olecp_cookie = cp,cookie
0768         def __del__(self):
0769                 try:
0770                         self.close()
0771                 except pythoncom.com_error:
0772                         pass
0773         def close(self):
0774                 if self._olecp is not None:
0775                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
0776                         cp.Unadvise(cookie)
0777         def _query_interface_(self, iid):
0778                 import win32com.server.util
0779                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
0780 
0781         # Event Handlers
0782         # If you create handlers, they should have the following prototypes:
0783 # def OnNewExplorer(self, Explorer=defaultNamedNotOptArg):
0784 
0785 
0786 class FoldersEvents:
0787         CLSID = CLSID_Sink = IID('{00063076-0000-0000-C000-000000000046}')
0788         coclass_clsid = IID('{00063051-0000-0000-C000-000000000046}')
0789         _public_methods_ = [] # For COM Server support
0790         _dispid_to_func_ = {
0791                     61442 : "OnFolderChange",
0792                     61443 : "OnFolderRemove",
0793                     61441 : "OnFolderAdd",
0794                 }
0795 
0796         def __init__(self, oobj = None):
0797                 if oobj is None:
0798                         self._olecp = None
0799                 else:
0800                         import win32com.server.util
0801                         from win32com.server.policy import EventHandlerPolicy
0802                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
0803                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
0804                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
0805                         self._olecp,self._olecp_cookie = cp,cookie
0806         def __del__(self):
0807                 try:
0808                         self.close()
0809                 except pythoncom.com_error:
0810                         pass
0811         def close(self):
0812                 if self._olecp is not None:
0813                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
0814                         cp.Unadvise(cookie)
0815         def _query_interface_(self, iid):
0816                 import win32com.server.util
0817                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
0818 
0819         # Event Handlers
0820         # If you create handlers, they should have the following prototypes:
0821 # def OnFolderChange(self, Folder=defaultNamedNotOptArg):
0822 # def OnFolderRemove(self):
0823 # def OnFolderAdd(self, Folder=defaultNamedNotOptArg):
0824 
0825 
0826 class FormDescription(DispatchBaseClass):
0827         CLSID = IID('{00063046-0000-0000-C000-000000000046}')
0828         coclass_clsid = None
0829 
0830         def PublishForm(self, Registry=defaultNamedNotOptArg, Folder=defaultNamedOptArg):
0831                 return self._oleobj_.InvokeTypes(107, LCID, 1, (24, 0), ((3, 1), (12, 17)),Registry, Folder)
0832 
0833         _prop_map_get_ = {
0834                 # Method 'Application' returns object of type '_Application'
0835                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
0836                 "Category": (13060, 2, (8, 0), (), "Category", None),
0837                 "CategorySub": (13061, 2, (8, 0), (), "CategorySub", None),
0838                 "Class": (61450, 2, (3, 0), (), "Class", None),
0839                 "Comment": (12292, 2, (8, 0), (), "Comment", None),
0840                 "ContactName": (13059, 2, (8, 0), (), "ContactName", None),
0841                 "DisplayName": (12289, 2, (8, 0), (), "DisplayName", None),
0842                 "Hidden": (13063, 2, (11, 0), (), "Hidden", None),
0843                 "Icon": (4093, 2, (8, 0), (), "Icon", None),
0844                 "Locked": (102, 2, (11, 0), (), "Locked", None),
0845                 "MessageClass": (26, 2, (8, 0), (), "MessageClass", None),
0846                 "MiniIcon": (4092, 2, (8, 0), (), "MiniIcon", None),
0847                 "Name": (61469, 2, (8, 0), (), "Name", None),
0848                 "Number": (104, 2, (8, 0), (), "Number", None),
0849                 "OneOff": (101, 2, (11, 0), (), "OneOff", None),
0850                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
0851                 "Password": (103, 2, (8, 0), (), "Password", None),
0852                 "ScriptText": (109, 2, (8, 0), (), "ScriptText", None),
0853                 # Method 'Session' returns object of type '_NameSpace'
0854                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
0855                 "Template": (106, 2, (8, 0), (), "Template", None),
0856                 "UseWordMail": (105, 2, (11, 0), (), "UseWordMail", None),
0857                 "Version": (13057, 2, (8, 0), (), "Version", None),
0858         }
0859         _prop_map_put_ = {
0860                 "Category": ((13060, LCID, 4, 0),()),
0861                 "CategorySub": ((13061, LCID, 4, 0),()),
0862                 "Comment": ((12292, LCID, 4, 0),()),
0863                 "ContactName": ((13059, LCID, 4, 0),()),
0864                 "DisplayName": ((12289, LCID, 4, 0),()),
0865                 "Hidden": ((13063, LCID, 4, 0),()),
0866                 "Icon": ((4093, LCID, 4, 0),()),
0867                 "Locked": ((102, LCID, 4, 0),()),
0868                 "MiniIcon": ((4092, LCID, 4, 0),()),
0869                 "Name": ((61469, LCID, 4, 0),()),
0870                 "Number": ((104, LCID, 4, 0),()),
0871                 "OneOff": ((101, LCID, 4, 0),()),
0872                 "Password": ((103, LCID, 4, 0),()),
0873                 "Template": ((106, LCID, 4, 0),()),
0874                 "UseWordMail": ((105, LCID, 4, 0),()),
0875                 "Version": ((13057, LCID, 4, 0),()),
0876         }
0877 
0878 class InspectorEvents:
0879         CLSID = CLSID_Sink = IID('{0006307D-0000-0000-C000-000000000046}')
0880         coclass_clsid = IID('{00063058-0000-0000-C000-000000000046}')
0881         _public_methods_ = [] # For COM Server support
0882         _dispid_to_func_ = {
0883                     61446 : "OnDeactivate",
0884                     61448 : "OnClose",
0885                     61441 : "OnActivate",
0886                 }
0887 
0888         def __init__(self, oobj = None):
0889                 if oobj is None:
0890                         self._olecp = None
0891                 else:
0892                         import win32com.server.util
0893                         from win32com.server.policy import EventHandlerPolicy
0894                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
0895                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
0896                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
0897                         self._olecp,self._olecp_cookie = cp,cookie
0898         def __del__(self):
0899                 try:
0900                         self.close()
0901                 except pythoncom.com_error:
0902                         pass
0903         def close(self):
0904                 if self._olecp is not None:
0905                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
0906                         cp.Unadvise(cookie)
0907         def _query_interface_(self, iid):
0908                 import win32com.server.util
0909                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
0910 
0911         # Event Handlers
0912         # If you create handlers, they should have the following prototypes:
0913 # def OnDeactivate(self):
0914 # def OnClose(self):
0915 # def OnActivate(self):
0916 
0917 
0918 class InspectorsEvents:
0919         CLSID = CLSID_Sink = IID('{00063079-0000-0000-C000-000000000046}')
0920         coclass_clsid = IID('{00063054-0000-0000-C000-000000000046}')
0921         _public_methods_ = [] # For COM Server support
0922         _dispid_to_func_ = {
0923                     61441 : "OnNewInspector",
0924                 }
0925 
0926         def __init__(self, oobj = None):
0927                 if oobj is None:
0928                         self._olecp = None
0929                 else:
0930                         import win32com.server.util
0931                         from win32com.server.policy import EventHandlerPolicy
0932                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
0933                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
0934                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
0935                         self._olecp,self._olecp_cookie = cp,cookie
0936         def __del__(self):
0937                 try:
0938                         self.close()
0939                 except pythoncom.com_error:
0940                         pass
0941         def close(self):
0942                 if self._olecp is not None:
0943                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
0944                         cp.Unadvise(cookie)
0945         def _query_interface_(self, iid):
0946                 import win32com.server.util
0947                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
0948 
0949         # Event Handlers
0950         # If you create handlers, they should have the following prototypes:
0951 # def OnNewInspector(self, Inspector=defaultNamedNotOptArg):
0952 
0953 
0954 class ItemEvents:
0955         CLSID = CLSID_Sink = IID('{0006303A-0000-0000-C000-000000000046}')
0956         coclass_clsid = IID('{00061051-0000-0000-C000-000000000046}')
0957         _public_methods_ = [] # For COM Server support
0958         _dispid_to_func_ = {
0959                     61452 : "OnAttachmentRead",
0960                     61451 : "OnAttachmentAdd",
0961                     61448 : "OnCustomPropertyChange",
0962                     61441 : "OnRead",
0963                     61449 : "OnPropertyChange",
0964                     61445 : "OnSend",
0965                     61450 : "OnBeforeCheckNames",
0966                     61442 : "OnWrite",
0967                     61453 : "OnBeforeAttachmentSave",
0968                     62566 : "OnReply",
0969                     62568 : "OnForward",
0970                     61444 : "OnClose",
0971                     61443 : "OnOpen",
0972                     62567 : "OnReplyAll",
0973                     61446 : "OnCustomAction",
0974                 }
0975 
0976         def __init__(self, oobj = None):
0977                 if oobj is None:
0978                         self._olecp = None
0979                 else:
0980                         import win32com.server.util
0981                         from win32com.server.policy import EventHandlerPolicy
0982                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
0983                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
0984                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
0985                         self._olecp,self._olecp_cookie = cp,cookie
0986         def __del__(self):
0987                 try:
0988                         self.close()
0989                 except pythoncom.com_error:
0990                         pass
0991         def close(self):
0992                 if self._olecp is not None:
0993                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
0994                         cp.Unadvise(cookie)
0995         def _query_interface_(self, iid):
0996                 import win32com.server.util
0997                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
0998 
0999         # Event Handlers
1000         # If you create handlers, they should have the following prototypes:
1001 # def OnAttachmentRead(self, Attachment=defaultNamedNotOptArg):
1002 # def OnAttachmentAdd(self, Attachment=defaultNamedNotOptArg):
1003 # def OnCustomPropertyChange(self, Name=defaultNamedNotOptArg):
1004 # def OnRead(self):
1005 # def OnPropertyChange(self, Name=defaultNamedNotOptArg):
1006 # def OnSend(self, Cancel=defaultNamedNotOptArg):
1007 # def OnBeforeCheckNames(self, Cancel=defaultNamedNotOptArg):
1008 # def OnWrite(self, Cancel=defaultNamedNotOptArg):
1009 # def OnBeforeAttachmentSave(self, Attachment=defaultNamedNotOptArg, Cancel=defaultNamedNotOptArg):
1010 # def OnReply(self, Response=defaultNamedNotOptArg, Cancel=defaultNamedNotOptArg):
1011 # def OnForward(self, Forward=defaultNamedNotOptArg, Cancel=defaultNamedNotOptArg):
1012 # def OnClose(self, Cancel=defaultNamedNotOptArg):
1013 # def OnOpen(self, Cancel=defaultNamedNotOptArg):
1014 # def OnReplyAll(self, Response=defaultNamedNotOptArg, Cancel=defaultNamedNotOptArg):
1015 # def OnCustomAction(self, Action=defaultNamedNotOptArg, Response=defaultNamedNotOptArg, Cancel=defaultNamedNotOptArg):
1016 
1017 
1018 class ItemsEvents:
1019         CLSID = CLSID_Sink = IID('{00063077-0000-0000-C000-000000000046}')
1020         coclass_clsid = IID('{00063052-0000-0000-C000-000000000046}')
1021         _public_methods_ = [] # For COM Server support
1022         _dispid_to_func_ = {
1023                     61441 : "OnItemAdd",
1024                     61442 : "OnItemChange",
1025                     61443 : "OnItemRemove",
1026                 }
1027 
1028         def __init__(self, oobj = None):
1029                 if oobj is None:
1030                         self._olecp = None
1031                 else:
1032                         import win32com.server.util
1033                         from win32com.server.policy import EventHandlerPolicy
1034                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
1035                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
1036                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
1037                         self._olecp,self._olecp_cookie = cp,cookie
1038         def __del__(self):
1039                 try:
1040                         self.close()
1041                 except pythoncom.com_error:
1042                         pass
1043         def close(self):
1044                 if self._olecp is not None:
1045                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
1046                         cp.Unadvise(cookie)
1047         def _query_interface_(self, iid):
1048                 import win32com.server.util
1049                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
1050 
1051         # Event Handlers
1052         # If you create handlers, they should have the following prototypes:
1053 # def OnItemAdd(self, Item=defaultNamedNotOptArg):
1054 # def OnItemChange(self, Item=defaultNamedNotOptArg):
1055 # def OnItemRemove(self):
1056 
1057 
1058 class Link(DispatchBaseClass):
1059         CLSID = IID('{00063089-0000-0000-C000-000000000046}')
1060         coclass_clsid = None
1061 
1062         _prop_map_get_ = {
1063                 # Method 'Application' returns object of type '_Application'
1064                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1065                 "Class": (61450, 2, (3, 0), (), "Class", None),
1066                 "Item": (8450, 2, (9, 0), (), "Item", None),
1067                 "Name": (12289, 2, (8, 0), (), "Name", None),
1068                 "Parent": (109, 2, (9, 0), (), "Parent", None),
1069                 # Method 'Session' returns object of type '_NameSpace'
1070                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1071                 "Type": (8449, 2, (3, 0), (), "Type", None),
1072         }
1073         _prop_map_put_ = {
1074         }
1075         #This class has Item property/method which may take args - allow indexed access
1076         def __getitem__(self, item):
1077                 return self._get_good_object_(self._oleobj_.Invoke(*(8450, LCID, 2, 1, item)), "Item")
1078 
1079 class Links(DispatchBaseClass):
1080         CLSID = IID('{0006308A-0000-0000-C000-000000000046}')
1081         coclass_clsid = None
1082 
1083         # Result is of type Link
1084         def Add(self, Item=defaultNamedNotOptArg):
1085                 ret = self._oleobj_.InvokeTypes(95, LCID, 1, (9, 0), ((9, 1),),Item)
1086                 if ret is not None:
1087                         ret = Dispatch(ret, 'Add', '{00063089-0000-0000-C000-000000000046}', UnicodeToString=0)
1088                 return ret
1089 
1090         # Result is of type Link
1091         def Item(self, Index=defaultNamedNotOptArg):
1092                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (9, 0), ((12, 1),),Index)
1093                 if ret is not None:
1094                         ret = Dispatch(ret, 'Item', '{00063089-0000-0000-C000-000000000046}', UnicodeToString=0)
1095                 return ret
1096 
1097         def Remove(self, Index=defaultNamedNotOptArg):
1098                 return self._oleobj_.InvokeTypes(84, LCID, 1, (24, 0), ((12, 1),),Index)
1099 
1100         _prop_map_get_ = {
1101                 # Method 'Application' returns object of type '_Application'
1102                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1103                 "Class": (61450, 2, (3, 0), (), "Class", None),
1104                 "Count": (80, 2, (3, 0), (), "Count", None),
1105                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1106                 # Method 'Session' returns object of type '_NameSpace'
1107                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1108         }
1109         _prop_map_put_ = {
1110         }
1111         #This class has Item property/method which may take args - allow indexed access
1112         def __getitem__(self, item):
1113                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
1114         #This class has Count() property - allow len(ob) to provide this
1115         def __len__(self):
1116                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
1117         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
1118         def __nonzero__(self):
1119                 return True
1120 
1121 class MAPIFolder(DispatchBaseClass):
1122         CLSID = IID('{00063006-0000-0000-C000-000000000046}')
1123         coclass_clsid = None
1124 
1125         def AddToPFFavorites(self):
1126                 return self._oleobj_.InvokeTypes(12565, LCID, 1, (24, 0), (),)
1127 
1128         # Result is of type MAPIFolder
1129         def CopyTo(self, DestinationFolder=defaultNamedNotOptArg):
1130                 ret = self._oleobj_.InvokeTypes(61490, LCID, 1, (9, 0), ((9, 1),),DestinationFolder)
1131                 if ret is not None:
1132                         ret = Dispatch(ret, 'CopyTo', '{00063006-0000-0000-C000-000000000046}', UnicodeToString=0)
1133                 return ret
1134 
1135         def Delete(self):
1136                 return self._oleobj_.InvokeTypes(61509, LCID, 1, (24, 0), (),)
1137 
1138         def Display(self):
1139                 return self._oleobj_.InvokeTypes(12548, LCID, 1, (24, 0), (),)
1140 
1141         # Result is of type _Explorer
1142         def GetExplorer(self, DisplayMode=defaultNamedOptArg):
1143                 ret = self._oleobj_.InvokeTypes(12545, LCID, 1, (9, 0), ((12, 17),),DisplayMode)
1144                 if ret is not None:
1145                         ret = Dispatch(ret, 'GetExplorer', '{00063003-0000-0000-C000-000000000046}', UnicodeToString=0)
1146                 return ret
1147 
1148         def MoveTo(self, DestinationFolder=defaultNamedNotOptArg):
1149                 return self._oleobj_.InvokeTypes(61492, LCID, 1, (24, 0), ((9, 1),),DestinationFolder)
1150 
1151         _prop_map_get_ = {
1152                 # Method 'Application' returns object of type '_Application'
1153                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1154                 "Class": (61450, 2, (3, 0), (), "Class", None),
1155                 "DefaultItemType": (12550, 2, (3, 0), (), "DefaultItemType", None),
1156                 "DefaultMessageClass": (12551, 2, (8, 0), (), "DefaultMessageClass", None),
1157                 "Description": (12292, 2, (8, 0), (), "Description", None),
1158                 "EntryID": (61470, 2, (8, 0), (), "EntryID", None),
1159                 # Method 'Folders' returns object of type '_Folders'
1160                 "Folders": (8451, 2, (9, 0), (), "Folders", '{00063040-0000-0000-C000-000000000046}'),
1161                 # Method 'Items' returns object of type '_Items'
1162                 "Items": (12544, 2, (9, 0), (), "Items", '{00063041-0000-0000-C000-000000000046}'),
1163                 "Name": (12289, 2, (8, 0), (), "Name", None),
1164                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1165                 # Method 'Session' returns object of type '_NameSpace'
1166                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1167                 "StoreID": (12552, 2, (8, 0), (), "StoreID", None),
1168                 "UnReadItemCount": (13827, 2, (3, 0), (), "UnReadItemCount", None),
1169                 "UserPermissions": (12561, 2, (9, 0), (), "UserPermissions", None),
1170                 "WebViewAllowNavigation": (12564, 2, (11, 0), (), "WebViewAllowNavigation", None),
1171                 "WebViewOn": (12562, 2, (11, 0), (), "WebViewOn", None),
1172                 "WebViewURL": (12563, 2, (8, 0), (), "WebViewURL", None),
1173         }
1174         _prop_map_put_ = {
1175                 "Description": ((12292, LCID, 4, 0),()),
1176                 "Name": ((12289, LCID, 4, 0),()),
1177                 "WebViewAllowNavigation": ((12564, LCID, 4, 0),()),
1178                 "WebViewOn": ((12562, LCID, 4, 0),()),
1179                 "WebViewURL": ((12563, LCID, 4, 0),()),
1180         }
1181 
1182 class NameSpaceEvents:
1183         CLSID = CLSID_Sink = IID('{0006308C-0000-0000-C000-000000000046}')
1184         coclass_clsid = IID('{0006308B-0000-0000-C000-000000000046}')
1185         _public_methods_ = [] # For COM Server support
1186         _dispid_to_func_ = {
1187                     61445 : "OnOptionsPagesAdd",
1188                 }
1189 
1190         def __init__(self, oobj = None):
1191                 if oobj is None:
1192                         self._olecp = None
1193                 else:
1194                         import win32com.server.util
1195                         from win32com.server.policy import EventHandlerPolicy
1196                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
1197                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
1198                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
1199                         self._olecp,self._olecp_cookie = cp,cookie
1200         def __del__(self):
1201                 try:
1202                         self.close()
1203                 except pythoncom.com_error:
1204                         pass
1205         def close(self):
1206                 if self._olecp is not None:
1207                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
1208                         cp.Unadvise(cookie)
1209         def _query_interface_(self, iid):
1210                 import win32com.server.util
1211                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
1212 
1213         # Event Handlers
1214         # If you create handlers, they should have the following prototypes:
1215 # def OnOptionsPagesAdd(self, Pages=defaultNamedNotOptArg, Folder=defaultNamedNotOptArg):
1216 
1217 
1218 class OutlookBarGroup(DispatchBaseClass):
1219         CLSID = IID('{00063073-0000-0000-C000-000000000046}')
1220         coclass_clsid = None
1221 
1222         _prop_map_get_ = {
1223                 # Method 'Application' returns object of type '_Application'
1224                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1225                 "Class": (61450, 2, (3, 0), (), "Class", None),
1226                 "Name": (0, 2, (8, 0), (), "Name", None),
1227                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1228                 # Method 'Session' returns object of type '_NameSpace'
1229                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1230                 # Method 'Shortcuts' returns object of type '_OutlookBarShortcuts'
1231                 "Shortcuts": (8450, 2, (9, 0), (), "Shortcuts", '{00063074-0000-0000-C000-000000000046}'),
1232                 "ViewType": (8451, 2, (3, 0), (), "ViewType", None),
1233         }
1234         _prop_map_put_ = {
1235                 "Name": ((0, LCID, 4, 0),()),
1236                 "ViewType": ((8451, LCID, 4, 0),()),
1237         }
1238         # Default property for this class is 'Name'
1239         def __call__(self):
1240                 return self._ApplyTypes_(*(0, 2, (8, 0), (), "Name", None))
1241         # str(ob) and int(ob) will use __call__
1242         def __unicode__(self, *args):
1243                 try:
1244                         return unicode(self.__call__(*args))
1245                 except pythoncom.com_error:
1246                         return repr(self)
1247         def __str__(self, *args):
1248                 return str(self.__unicode__(*args))
1249         def __int__(self, *args):
1250                 return int(self.__call__(*args))
1251 
1252 class OutlookBarGroupsEvents:
1253         CLSID = CLSID_Sink = IID('{0006307B-0000-0000-C000-000000000046}')
1254         coclass_clsid = IID('{00063056-0000-0000-C000-000000000046}')
1255         _public_methods_ = [] # For COM Server support
1256         _dispid_to_func_ = {
1257                     61441 : "OnGroupAdd",
1258                     61443 : "OnBeforeGroupRemove",
1259                     61442 : "OnBeforeGroupAdd",
1260                 }
1261 
1262         def __init__(self, oobj = None):
1263                 if oobj is None:
1264                         self._olecp = None
1265                 else:
1266                         import win32com.server.util
1267                         from win32com.server.policy import EventHandlerPolicy
1268                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
1269                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
1270                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
1271                         self._olecp,self._olecp_cookie = cp,cookie
1272         def __del__(self):
1273                 try:
1274                         self.close()
1275                 except pythoncom.com_error:
1276                         pass
1277         def close(self):
1278                 if self._olecp is not None:
1279                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
1280                         cp.Unadvise(cookie)
1281         def _query_interface_(self, iid):
1282                 import win32com.server.util
1283                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
1284 
1285         # Event Handlers
1286         # If you create handlers, they should have the following prototypes:
1287 # def OnGroupAdd(self, NewGroup=defaultNamedNotOptArg):
1288 # def OnBeforeGroupRemove(self, Group=defaultNamedNotOptArg, Cancel=defaultNamedNotOptArg):
1289 # def OnBeforeGroupAdd(self, Cancel=defaultNamedNotOptArg):
1290 
1291 
1292 class OutlookBarPaneEvents:
1293         CLSID = CLSID_Sink = IID('{0006307A-0000-0000-C000-000000000046}')
1294         coclass_clsid = IID('{00063055-0000-0000-C000-000000000046}')
1295         _public_methods_ = [] # For COM Server support
1296         _dispid_to_func_ = {
1297                     61441 : "OnBeforeNavigate",
1298                     61442 : "OnBeforeGroupSwitch",
1299                 }
1300 
1301         def __init__(self, oobj = None):
1302                 if oobj is None:
1303                         self._olecp = None
1304                 else:
1305                         import win32com.server.util
1306                         from win32com.server.policy import EventHandlerPolicy
1307                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
1308                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
1309                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
1310                         self._olecp,self._olecp_cookie = cp,cookie
1311         def __del__(self):
1312                 try:
1313                         self.close()
1314                 except pythoncom.com_error:
1315                         pass
1316         def close(self):
1317                 if self._olecp is not None:
1318                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
1319                         cp.Unadvise(cookie)
1320         def _query_interface_(self, iid):
1321                 import win32com.server.util
1322                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
1323 
1324         # Event Handlers
1325         # If you create handlers, they should have the following prototypes:
1326 # def OnBeforeNavigate(self, Shortcut=defaultNamedNotOptArg, Cancel=defaultNamedNotOptArg):
1327 # def OnBeforeGroupSwitch(self, ToGroup=defaultNamedNotOptArg, Cancel=defaultNamedNotOptArg):
1328 
1329 
1330 class OutlookBarShortcut(DispatchBaseClass):
1331         CLSID = IID('{00063075-0000-0000-C000-000000000046}')
1332         coclass_clsid = None
1333 
1334         _prop_map_get_ = {
1335                 # Method 'Application' returns object of type '_Application'
1336                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1337                 "Class": (61450, 2, (3, 0), (), "Class", None),
1338                 "Name": (0, 2, (8, 0), (), "Name", None),
1339                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1340                 # Method 'Session' returns object of type '_NameSpace'
1341                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1342                 "Target": (8448, 2, (12, 0), (), "Target", None),
1343         }
1344         _prop_map_put_ = {
1345                 "Name": ((0, LCID, 4, 0),()),
1346         }
1347         # Default property for this class is 'Name'
1348         def __call__(self):
1349                 return self._ApplyTypes_(*(0, 2, (8, 0), (), "Name", None))
1350         # str(ob) and int(ob) will use __call__
1351         def __unicode__(self, *args):
1352                 try:
1353                         return unicode(self.__call__(*args))
1354                 except pythoncom.com_error:
1355                         return repr(self)
1356         def __str__(self, *args):
1357                 return str(self.__unicode__(*args))
1358         def __int__(self, *args):
1359                 return int(self.__call__(*args))
1360 
1361 class OutlookBarShortcutsEvents:
1362         CLSID = CLSID_Sink = IID('{0006307C-0000-0000-C000-000000000046}')
1363         coclass_clsid = IID('{00063057-0000-0000-C000-000000000046}')
1364         _public_methods_ = [] # For COM Server support
1365         _dispid_to_func_ = {
1366                     61441 : "OnShortcutAdd",
1367                     61442 : "OnBeforeShortcutAdd",
1368                     61443 : "OnBeforeShortcutRemove",
1369                 }
1370 
1371         def __init__(self, oobj = None):
1372                 if oobj is None:
1373                         self._olecp = None
1374                 else:
1375                         import win32com.server.util
1376                         from win32com.server.policy import EventHandlerPolicy
1377                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
1378                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
1379                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
1380                         self._olecp,self._olecp_cookie = cp,cookie
1381         def __del__(self):
1382                 try:
1383                         self.close()
1384                 except pythoncom.com_error:
1385                         pass
1386         def close(self):
1387                 if self._olecp is not None:
1388                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
1389                         cp.Unadvise(cookie)
1390         def _query_interface_(self, iid):
1391                 import win32com.server.util
1392                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
1393 
1394         # Event Handlers
1395         # If you create handlers, they should have the following prototypes:
1396 # def OnShortcutAdd(self, NewShortcut=defaultNamedNotOptArg):
1397 # def OnBeforeShortcutAdd(self, Cancel=defaultNamedNotOptArg):
1398 # def OnBeforeShortcutRemove(self, Shortcut=defaultNamedNotOptArg, Cancel=defaultNamedNotOptArg):
1399 
1400 
1401 class OutlookBarStorage(DispatchBaseClass):
1402         CLSID = IID('{00063071-0000-0000-C000-000000000046}')
1403         coclass_clsid = None
1404 
1405         _prop_map_get_ = {
1406                 # Method 'Application' returns object of type '_Application'
1407                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1408                 "Class": (61450, 2, (3, 0), (), "Class", None),
1409                 # Method 'Groups' returns object of type '_OutlookBarGroups'
1410                 "Groups": (0, 2, (9, 0), (), "Groups", '{00063072-0000-0000-C000-000000000046}'),
1411                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1412                 # Method 'Session' returns object of type '_NameSpace'
1413                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1414         }
1415         _prop_map_put_ = {
1416         }
1417         # Default property for this class is 'Groups'
1418         def __call__(self):
1419                 return self._ApplyTypes_(*(0, 2, (9, 0), (), "Groups", '{00063072-0000-0000-C000-000000000046}'))
1420         # str(ob) and int(ob) will use __call__
1421         def __unicode__(self, *args):
1422                 try:
1423                         return unicode(self.__call__(*args))
1424                 except pythoncom.com_error:
1425                         return repr(self)
1426         def __str__(self, *args):
1427                 return str(self.__unicode__(*args))
1428         def __int__(self, *args):
1429                 return int(self.__call__(*args))
1430 
1431 class Pages(DispatchBaseClass):
1432         CLSID = IID('{0006303F-0000-0000-C000-000000000046}')
1433         coclass_clsid = None
1434 
1435         def Add(self, Name=defaultNamedOptArg):
1436                 ret = self._oleobj_.InvokeTypes(300, LCID, 1, (9, 0), ((12, 17),),Name)
1437                 if ret is not None:
1438                         ret = Dispatch(ret, 'Add', None, UnicodeToString=0)
1439                 return ret
1440 
1441         def Item(self, Index=defaultNamedNotOptArg):
1442                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (9, 0), ((12, 1),),Index)
1443                 if ret is not None:
1444                         ret = Dispatch(ret, 'Item', None, UnicodeToString=0)
1445                 return ret
1446 
1447         def Remove(self, Index=defaultNamedNotOptArg):
1448                 return self._oleobj_.InvokeTypes(301, LCID, 1, (24, 0), ((3, 1),),Index)
1449 
1450         _prop_map_get_ = {
1451                 # Method 'Application' returns object of type '_Application'
1452                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1453                 "Class": (61450, 2, (3, 0), (), "Class", None),
1454                 "Count": (80, 2, (3, 0), (), "Count", None),
1455                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1456                 # Method 'Session' returns object of type '_NameSpace'
1457                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1458         }
1459         _prop_map_put_ = {
1460         }
1461         #This class has Item property/method which may take args - allow indexed access
1462         def __getitem__(self, item):
1463                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
1464         #This class has Count() property - allow len(ob) to provide this
1465         def __len__(self):
1466                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
1467         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
1468         def __nonzero__(self):
1469                 return True
1470 
1471 class Panes(DispatchBaseClass):
1472         CLSID = IID('{00063009-0000-0000-C000-000000000046}')
1473         coclass_clsid = None
1474 
1475         def Item(self, Index=defaultNamedNotOptArg):
1476                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (9, 0), ((12, 1),),Index)
1477                 if ret is not None:
1478                         ret = Dispatch(ret, 'Item', None, UnicodeToString=0)
1479                 return ret
1480 
1481         _prop_map_get_ = {
1482                 # Method 'Application' returns object of type '_Application'
1483                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1484                 "Class": (61450, 2, (3, 0), (), "Class", None),
1485                 "Count": (80, 2, (3, 0), (), "Count", None),
1486                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1487                 # Method 'Session' returns object of type '_NameSpace'
1488                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1489         }
1490         _prop_map_put_ = {
1491         }
1492         #This class has Item property/method which may take args - allow indexed access
1493         def __getitem__(self, item):
1494                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
1495         #This class has Count() property - allow len(ob) to provide this
1496         def __len__(self):
1497                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
1498         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
1499         def __nonzero__(self):
1500                 return True
1501 
1502 class PropertyPageSite(DispatchBaseClass):
1503         CLSID = IID('{0006307F-0000-0000-C000-000000000046}')
1504         coclass_clsid = None
1505 
1506         def OnStatusChange(self):
1507                 return self._oleobj_.InvokeTypes(8448, LCID, 1, (24, 0), (),)
1508 
1509         _prop_map_get_ = {
1510                 # Method 'Application' returns object of type '_Application'
1511                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1512                 "Class": (61450, 2, (3, 0), (), "Class", None),
1513                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1514                 # Method 'Session' returns object of type '_NameSpace'
1515                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1516         }
1517         _prop_map_put_ = {
1518         }
1519 
1520 class PropertyPages(DispatchBaseClass):
1521         CLSID = IID('{00063080-0000-0000-C000-000000000046}')
1522         coclass_clsid = None
1523 
1524         def Add(self, Page=defaultNamedNotOptArg, Title=defaultNamedNotOptArg):
1525                 return self._oleobj_.InvokeTypes(95, LCID, 1, (24, 0), ((12, 1), (8, 17)),Page, Title)
1526 
1527         def Item(self, Index=defaultNamedNotOptArg):
1528                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (9, 0), ((12, 1),),Index)
1529                 if ret is not None:
1530                         ret = Dispatch(ret, 'Item', None, UnicodeToString=0)
1531                 return ret
1532 
1533         def Remove(self, Index=defaultNamedNotOptArg):
1534                 return self._oleobj_.InvokeTypes(84, LCID, 1, (24, 0), ((12, 1),),Index)
1535 
1536         _prop_map_get_ = {
1537                 # Method 'Application' returns object of type '_Application'
1538                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1539                 "Class": (61450, 2, (3, 0), (), "Class", None),
1540                 "Count": (80, 2, (3, 0), (), "Count", None),
1541                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1542                 # Method 'Session' returns object of type '_NameSpace'
1543                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1544         }
1545         _prop_map_put_ = {
1546         }
1547         #This class has Item property/method which may take args - allow indexed access
1548         def __getitem__(self, item):
1549                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
1550         #This class has Count() property - allow len(ob) to provide this
1551         def __len__(self):
1552                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
1553         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
1554         def __nonzero__(self):
1555                 return True
1556 
1557 class Recipient(DispatchBaseClass):
1558         CLSID = IID('{00063045-0000-0000-C000-000000000046}')
1559         coclass_clsid = None
1560 
1561         def Delete(self):
1562                 return self._oleobj_.InvokeTypes(110, LCID, 1, (24, 0), (),)
1563 
1564         def FreeBusy(self, Start=defaultNamedNotOptArg, MinPerChar=defaultNamedNotOptArg, CompleteFormat=defaultNamedOptArg):
1565                 # Result is a Unicode object - return as-is for this version of Python
1566                 return self._oleobj_.InvokeTypes(111, LCID, 1, (8, 0), ((7, 1), (3, 1), (12, 17)),Start, MinPerChar, CompleteFormat)
1567 
1568         def Resolve(self):
1569                 return self._oleobj_.InvokeTypes(113, LCID, 1, (11, 0), (),)
1570 
1571         _prop_map_get_ = {
1572                 "Address": (12291, 2, (8, 0), (), "Address", None),
1573                 # Method 'AddressEntry' returns object of type 'AddressEntry'
1574                 "AddressEntry": (121, 2, (9, 0), (), "AddressEntry", '{0006304B-0000-0000-C000-000000000046}'),
1575                 # Method 'Application' returns object of type '_Application'
1576                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1577                 "AutoResponse": (106, 2, (8, 0), (), "AutoResponse", None),
1578                 "Class": (61450, 2, (3, 0), (), "Class", None),
1579                 "DisplayType": (14592, 2, (3, 0), (), "DisplayType", None),
1580                 "EntryID": (61470, 2, (8, 0), (), "EntryID", None),
1581                 "Index": (91, 2, (3, 0), (), "Index", None),
1582                 "MeetingResponseStatus": (102, 2, (3, 0), (), "MeetingResponseStatus", None),
1583                 "Name": (12289, 2, (8, 0), (), "Name", None),
1584                 "Parent": (109, 2, (9, 0), (), "Parent", None),
1585                 "Resolved": (100, 2, (11, 0), (), "Resolved", None),
1586                 # Method 'Session' returns object of type '_NameSpace'
1587                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1588                 "TrackingStatus": (118, 2, (3, 0), (), "TrackingStatus", None),
1589                 "TrackingStatusTime": (119, 2, (7, 0), (), "TrackingStatusTime", None),
1590                 "Type": (3093, 2, (3, 0), (), "Type", None),
1591         }
1592         _prop_map_put_ = {
1593                 "AddressEntry": ((121, LCID, 8, 0),()),
1594                 "AutoResponse": ((106, LCID, 4, 0),()),
1595                 "TrackingStatus": ((118, LCID, 4, 0),()),
1596                 "TrackingStatusTime": ((119, LCID, 4, 0),()),
1597                 "Type": ((3093, LCID, 4, 0),()),
1598         }
1599 
1600 class Recipients(DispatchBaseClass):
1601         CLSID = IID('{0006303B-0000-0000-C000-000000000046}')
1602         coclass_clsid = None
1603 
1604         # Result is of type Recipient
1605         def Add(self, Name=defaultNamedNotOptArg):
1606                 ret = self._oleobj_.InvokeTypes(111, LCID, 1, (9, 0), ((8, 1),),Name)
1607                 if ret is not None:
1608                         ret = Dispatch(ret, 'Add', '{00063045-0000-0000-C000-000000000046}', UnicodeToString=0)
1609                 return ret
1610 
1611         # Result is of type Recipient
1612         def Item(self, Index=defaultNamedNotOptArg):
1613                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (9, 0), ((12, 1),),Index)
1614                 if ret is not None:
1615                         ret = Dispatch(ret, 'Item', '{00063045-0000-0000-C000-000000000046}', UnicodeToString=0)
1616                 return ret
1617 
1618         def Remove(self, Index=defaultNamedNotOptArg):
1619                 return self._oleobj_.InvokeTypes(84, LCID, 1, (24, 0), ((3, 1),),Index)
1620 
1621         def ResolveAll(self):
1622                 return self._oleobj_.InvokeTypes(126, LCID, 1, (11, 0), (),)
1623 
1624         _prop_map_get_ = {
1625                 # Method 'Application' returns object of type '_Application'
1626                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1627                 "Class": (61450, 2, (3, 0), (), "Class", None),
1628                 "Count": (80, 2, (3, 0), (), "Count", None),
1629                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1630                 # Method 'Session' returns object of type '_NameSpace'
1631                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1632         }
1633         _prop_map_put_ = {
1634         }
1635         #This class has Item property/method which may take args - allow indexed access
1636         def __getitem__(self, item):
1637                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
1638         #This class has Count() property - allow len(ob) to provide this
1639         def __len__(self):
1640                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
1641         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
1642         def __nonzero__(self):
1643                 return True
1644 
1645 class RecurrencePattern(DispatchBaseClass):
1646         CLSID = IID('{00063044-0000-0000-C000-000000000046}')
1647         coclass_clsid = None
1648 
1649         # Result is of type AppointmentItem
1650         def GetOccurrence(self, StartDate=defaultNamedNotOptArg):
1651                 ret = self._oleobj_.InvokeTypes(4111, LCID, 1, (13, 0), ((7, 1),),StartDate)
1652                 if ret is not None:
1653                         # See if this IUnknown is really an IDispatch
1654                         try:
1655                                 ret = ret.QueryInterface(pythoncom.IID_IDispatch)
1656                         except pythoncom.error:
1657                                 return ret
1658                         ret = Dispatch(ret, 'GetOccurrence', '{00061030-0000-0000-C000-000000000046}', UnicodeToString=0)
1659                 return ret
1660 
1661         _prop_map_get_ = {
1662                 # Method 'Application' returns object of type '_Application'
1663                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1664                 "Class": (61450, 2, (3, 0), (), "Class", None),
1665                 "DayOfMonth": (4096, 2, (3, 0), (), "DayOfMonth", None),
1666                 "DayOfWeekMask": (4097, 2, (3, 0), (), "DayOfWeekMask", None),
1667                 "Duration": (4109, 2, (3, 0), (), "Duration", None),
1668                 "EndTime": (4108, 2, (7, 0), (), "EndTime", None),
1669                 # Method 'Exceptions' returns object of type 'Exceptions'
1670                 "Exceptions": (4110, 2, (9, 0), (), "Exceptions", '{0006304C-0000-0000-C000-000000000046}'),
1671                 "Instance": (4099, 2, (3, 0), (), "Instance", None),
1672                 "Interval": (4100, 2, (3, 0), (), "Interval", None),
1673                 "MonthOfYear": (4102, 2, (3, 0), (), "MonthOfYear", None),
1674                 "NoEndDate": (4107, 2, (11, 0), (), "NoEndDate", None),
1675                 "Occurrences": (4101, 2, (3, 0), (), "Occurrences", None),
1676                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1677                 "PatternEndDate": (4098, 2, (7, 0), (), "PatternEndDate", None),
1678                 "PatternStartDate": (4104, 2, (7, 0), (), "PatternStartDate", None),
1679                 "RecurrenceType": (4103, 2, (3, 0), (), "RecurrenceType", None),
1680                 "Regenerate": (4106, 2, (11, 0), (), "Regenerate", None),
1681                 # Method 'Session' returns object of type '_NameSpace'
1682                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1683                 "StartTime": (4105, 2, (7, 0), (), "StartTime", None),
1684         }
1685         _prop_map_put_ = {
1686                 "DayOfMonth": ((4096, LCID, 4, 0),()),
1687                 "DayOfWeekMask": ((4097, LCID, 4, 0),()),
1688                 "Duration": ((4109, LCID, 4, 0),()),
1689                 "EndTime": ((4108, LCID, 4, 0),()),
1690                 "Instance": ((4099, LCID, 4, 0),()),
1691                 "Interval": ((4100, LCID, 4, 0),()),
1692                 "MonthOfYear": ((4102, LCID, 4, 0),()),
1693                 "NoEndDate": ((4107, LCID, 4, 0),()),
1694                 "Occurrences": ((4101, LCID, 4, 0),()),
1695                 "PatternEndDate": ((4098, LCID, 4, 0),()),
1696                 "PatternStartDate": ((4104, LCID, 4, 0),()),
1697                 "RecurrenceType": ((4103, LCID, 4, 0),()),
1698                 "Regenerate": ((4106, LCID, 4, 0),()),
1699                 "StartTime": ((4105, LCID, 4, 0),()),
1700         }
1701 
1702 class Selection(DispatchBaseClass):
1703         CLSID = IID('{00063087-0000-0000-C000-000000000046}')
1704         coclass_clsid = None
1705 
1706         def Item(self, Index=defaultNamedNotOptArg):
1707                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (9, 0), ((12, 1),),Index)
1708                 if ret is not None:
1709                         ret = Dispatch(ret, 'Item', None, UnicodeToString=0)
1710                 return ret
1711 
1712         _prop_map_get_ = {
1713                 # Method 'Application' returns object of type '_Application'
1714                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1715                 "Class": (61450, 2, (3, 0), (), "Class", None),
1716                 "Count": (80, 2, (3, 0), (), "Count", None),
1717                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1718                 # Method 'Session' returns object of type '_NameSpace'
1719                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1720         }
1721         _prop_map_put_ = {
1722         }
1723         #This class has Item property/method which may take args - allow indexed access
1724         def __getitem__(self, item):
1725                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
1726         #This class has Count() property - allow len(ob) to provide this
1727         def __len__(self):
1728                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
1729         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
1730         def __nonzero__(self):
1731                 return True
1732 
1733 class SyncObjectEvents:
1734         CLSID = CLSID_Sink = IID('{00063085-0000-0000-C000-000000000046}')
1735         coclass_clsid = IID('{00063084-0000-0000-C000-000000000046}')
1736         _public_methods_ = [] # For COM Server support
1737         _dispid_to_func_ = {
1738                     61443 : "OnError",
1739                     61442 : "OnProgress",
1740                     61441 : "OnSyncStart",
1741                     61444 : "OnSyncEnd",
1742                 }
1743 
1744         def __init__(self, oobj = None):
1745                 if oobj is None:
1746                         self._olecp = None
1747                 else:
1748                         import win32com.server.util
1749                         from win32com.server.policy import EventHandlerPolicy
1750                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
1751                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
1752                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
1753                         self._olecp,self._olecp_cookie = cp,cookie
1754         def __del__(self):
1755                 try:
1756                         self.close()
1757                 except pythoncom.com_error:
1758                         pass
1759         def close(self):
1760                 if self._olecp is not None:
1761                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
1762                         cp.Unadvise(cookie)
1763         def _query_interface_(self, iid):
1764                 import win32com.server.util
1765                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
1766 
1767         # Event Handlers
1768         # If you create handlers, they should have the following prototypes:
1769 # def OnError(self, Code=defaultNamedNotOptArg, Description=defaultNamedNotOptArg):
1770 # def OnProgress(self, State=defaultNamedNotOptArg, Description=defaultNamedNotOptArg, Value=defaultNamedNotOptArg, Max=defaultNamedNotOptArg):
1771 # def OnSyncStart(self):
1772 # def OnSyncEnd(self):
1773 
1774 
1775 class SyncObjects(DispatchBaseClass):
1776         CLSID = IID('{00063086-0000-0000-C000-000000000046}')
1777         coclass_clsid = None
1778 
1779         # Result is of type SyncObject
1780         def Item(self, Index=defaultNamedNotOptArg):
1781                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (13, 0), ((12, 1),),Index)
1782                 if ret is not None:
1783                         # See if this IUnknown is really an IDispatch
1784                         try:
1785                                 ret = ret.QueryInterface(pythoncom.IID_IDispatch)
1786                         except pythoncom.error:
1787                                 return ret
1788                         ret = Dispatch(ret, 'Item', '{00063084-0000-0000-C000-000000000046}', UnicodeToString=0)
1789                 return ret
1790 
1791         _prop_map_get_ = {
1792                 # Method 'Application' returns object of type '_Application'
1793                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1794                 "Class": (61450, 2, (3, 0), (), "Class", None),
1795                 "Count": (80, 2, (3, 0), (), "Count", None),
1796                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1797                 # Method 'Session' returns object of type '_NameSpace'
1798                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1799         }
1800         _prop_map_put_ = {
1801         }
1802         #This class has Item property/method which may take args - allow indexed access
1803         def __getitem__(self, item):
1804                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
1805         #This class has Count() property - allow len(ob) to provide this
1806         def __len__(self):
1807                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
1808         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
1809         def __nonzero__(self):
1810                 return True
1811 
1812 class UserProperties(DispatchBaseClass):
1813         CLSID = IID('{0006303D-0000-0000-C000-000000000046}')
1814         coclass_clsid = None
1815 
1816         # Result is of type UserProperty
1817         def Add(self, Name=defaultNamedNotOptArg, Type=defaultNamedNotOptArg, AddToFolderFields=defaultNamedOptArg, DisplayFormat=defaultNamedOptArg):
1818                 ret = self._oleobj_.InvokeTypes(102, LCID, 1, (9, 0), ((8, 1), (3, 1), (12, 17), (12, 17)),Name, Type, AddToFolderFields, DisplayFormat)
1819                 if ret is not None:
1820                         ret = Dispatch(ret, 'Add', '{00063042-0000-0000-C000-000000000046}', UnicodeToString=0)
1821                 return ret
1822 
1823         # Result is of type UserProperty
1824         def Find(self, Name=defaultNamedNotOptArg, Custom=defaultNamedOptArg):
1825                 ret = self._oleobj_.InvokeTypes(103, LCID, 1, (9, 0), ((8, 1), (12, 17)),Name, Custom)
1826                 if ret is not None:
1827                         ret = Dispatch(ret, 'Find', '{00063042-0000-0000-C000-000000000046}', UnicodeToString=0)
1828                 return ret
1829 
1830         # Result is of type UserProperty
1831         def Item(self, Index=defaultNamedNotOptArg):
1832                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (9, 0), ((12, 1),),Index)
1833                 if ret is not None:
1834                         ret = Dispatch(ret, 'Item', '{00063042-0000-0000-C000-000000000046}', UnicodeToString=0)
1835                 return ret
1836 
1837         def Remove(self, Index=defaultNamedNotOptArg):
1838                 return self._oleobj_.InvokeTypes(82, LCID, 1, (24, 0), ((3, 1),),Index)
1839 
1840         _prop_map_get_ = {
1841                 # Method 'Application' returns object of type '_Application'
1842                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1843                 "Class": (61450, 2, (3, 0), (), "Class", None),
1844                 "Count": (80, 2, (3, 0), (), "Count", None),
1845                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1846                 # Method 'Session' returns object of type '_NameSpace'
1847                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1848         }
1849         _prop_map_put_ = {
1850         }
1851         #This class has Item property/method which may take args - allow indexed access
1852         def __getitem__(self, item):
1853                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
1854         #This class has Count() property - allow len(ob) to provide this
1855         def __len__(self):
1856                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
1857         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
1858         def __nonzero__(self):
1859                 return True
1860 
1861 class UserProperty(DispatchBaseClass):
1862         CLSID = IID('{00063042-0000-0000-C000-000000000046}')
1863         coclass_clsid = None
1864 
1865         def Delete(self):
1866                 return self._oleobj_.InvokeTypes(108, LCID, 1, (24, 0), (),)
1867 
1868         _prop_map_get_ = {
1869                 # Method 'Application' returns object of type '_Application'
1870                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1871                 "Class": (61450, 2, (3, 0), (), "Class", None),
1872                 "Formula": (103, 2, (8, 0), (), "Formula", None),
1873                 "Name": (112, 2, (8, 0), (), "Name", None),
1874                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1875                 # Method 'Session' returns object of type '_NameSpace'
1876                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1877                 "Type": (109, 2, (3, 0), (), "Type", None),
1878                 "ValidationFormula": (104, 2, (8, 0), (), "ValidationFormula", None),
1879                 "ValidationText": (105, 2, (8, 0), (), "ValidationText", None),
1880                 "Value": (0, 2, (12, 0), (), "Value", None),
1881         }
1882         _prop_map_put_ = {
1883                 "Formula": ((103, LCID, 4, 0),()),
1884                 "ValidationFormula": ((104, LCID, 4, 0),()),
1885                 "ValidationText": ((105, LCID, 4, 0),()),
1886                 "Value": ((0, LCID, 4, 0),()),
1887         }
1888         # Default property for this class is 'Value'
1889         def __call__(self):
1890                 return self._ApplyTypes_(*(0, 2, (12, 0), (), "Value", None))
1891         # str(ob) and int(ob) will use __call__
1892         def __unicode__(self, *args):
1893                 try:
1894                         return unicode(self.__call__(*args))
1895                 except pythoncom.com_error:
1896                         return repr(self)
1897         def __str__(self, *args):
1898                 return str(self.__unicode__(*args))
1899         def __int__(self, *args):
1900                 return int(self.__call__(*args))
1901 
1902 class _Application(DispatchBaseClass):
1903         CLSID = IID('{00063001-0000-0000-C000-000000000046}')
1904         coclass_clsid = IID('{0006F03A-0000-0000-C000-000000000046}')
1905 
1906         # Result is of type _Explorer
1907         def ActiveExplorer(self):
1908                 ret = self._oleobj_.InvokeTypes(273, LCID, 1, (9, 0), (),)
1909                 if ret is not None:
1910                         ret = Dispatch(ret, 'ActiveExplorer', '{00063003-0000-0000-C000-000000000046}', UnicodeToString=0)
1911                 return ret
1912 
1913         # Result is of type _Inspector
1914         def ActiveInspector(self):
1915                 ret = self._oleobj_.InvokeTypes(274, LCID, 1, (9, 0), (),)
1916                 if ret is not None:
1917                         ret = Dispatch(ret, 'ActiveInspector', '{00063005-0000-0000-C000-000000000046}', UnicodeToString=0)
1918                 return ret
1919 
1920         def ActiveWindow(self):
1921                 ret = self._oleobj_.InvokeTypes(287, LCID, 1, (9, 0), (),)
1922                 if ret is not None:
1923                         ret = Dispatch(ret, 'ActiveWindow', None, UnicodeToString=0)
1924                 return ret
1925 
1926         def CreateItem(self, ItemType=defaultNamedNotOptArg):
1927                 ret = self._oleobj_.InvokeTypes(266, LCID, 1, (9, 0), ((3, 1),),ItemType)
1928                 if ret is not None:
1929                         ret = Dispatch(ret, 'CreateItem', None, UnicodeToString=0)
1930                 return ret
1931 
1932         def CreateItemFromTemplate(self, TemplatePath=defaultNamedNotOptArg, InFolder=defaultNamedOptArg):
1933                 ret = self._oleobj_.InvokeTypes(267, LCID, 1, (9, 0), ((8, 1), (12, 17)),TemplatePath, InFolder)
1934                 if ret is not None:
1935                         ret = Dispatch(ret, 'CreateItemFromTemplate', None, UnicodeToString=0)
1936                 return ret
1937 
1938         def CreateObject(self, ObjectName=defaultNamedNotOptArg):
1939                 ret = self._oleobj_.InvokeTypes(277, LCID, 1, (9, 0), ((8, 1),),ObjectName)
1940                 if ret is not None:
1941                         ret = Dispatch(ret, 'CreateObject', None, UnicodeToString=0)
1942                 return ret
1943 
1944         # Result is of type _NameSpace
1945         def GetNamespace(self, Type=defaultNamedNotOptArg):
1946                 ret = self._oleobj_.InvokeTypes(272, LCID, 1, (9, 0), ((8, 1),),Type)
1947                 if ret is not None:
1948                         ret = Dispatch(ret, 'GetNamespace', '{00063002-0000-0000-C000-000000000046}', UnicodeToString=0)
1949                 return ret
1950 
1951         def Quit(self):
1952                 return self._oleobj_.InvokeTypes(275, LCID, 1, (24, 0), (),)
1953 
1954         _prop_map_get_ = {
1955                 # Method 'AnswerWizard' returns object of type 'AnswerWizard'
1956                 "AnswerWizard": (285, 2, (9, 0), (), "AnswerWizard", '{000C0360-0000-0000-C000-000000000046}'),
1957                 # Method 'Application' returns object of type '_Application'
1958                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
1959                 # Method 'Assistant' returns object of type 'Assistant'
1960                 "Assistant": (276, 2, (9, 0), (), "Assistant", '{000C0322-0000-0000-C000-000000000046}'),
1961                 # Method 'COMAddIns' returns object of type 'COMAddIns'
1962                 "COMAddIns": (280, 2, (9, 0), (), "COMAddIns", '{000C0339-0000-0000-C000-000000000046}'),
1963                 "Class": (61450, 2, (3, 0), (), "Class", None),
1964                 # Method 'Explorers' returns object of type '_Explorers'
1965                 "Explorers": (281, 2, (9, 0), (), "Explorers", '{0006300A-0000-0000-C000-000000000046}'),
1966                 "FeatureInstall": (286, 2, (3, 0), (), "FeatureInstall", None),
1967                 # Method 'Inspectors' returns object of type '_Inspectors'
1968                 "Inspectors": (282, 2, (9, 0), (), "Inspectors", '{00063008-0000-0000-C000-000000000046}'),
1969                 # Method 'LanguageSettings' returns object of type 'LanguageSettings'
1970                 "LanguageSettings": (283, 2, (9, 0), (), "LanguageSettings", '{000C0353-0000-0000-C000-000000000046}'),
1971                 "Name": (12289, 2, (8, 0), (), "Name", None),
1972                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
1973                 "ProductCode": (284, 2, (8, 0), (), "ProductCode", None),
1974                 # Method 'Session' returns object of type '_NameSpace'
1975                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
1976                 "Version": (278, 2, (8, 0), (), "Version", None),
1977         }
1978         _prop_map_put_ = {
1979                 "FeatureInstall": ((286, LCID, 4, 0),()),
1980         }
1981 
1982 class _AppointmentItem(DispatchBaseClass):
1983         CLSID = IID('{00063033-0000-0000-C000-000000000046}')
1984         coclass_clsid = IID('{00061030-0000-0000-C000-000000000046}')
1985 
1986         def ClearRecurrencePattern(self):
1987                 return self._oleobj_.InvokeTypes(61605, LCID, 1, (24, 0), (),)
1988 
1989         def Close(self, SaveMode=defaultNamedNotOptArg):
1990                 return self._oleobj_.InvokeTypes(61475, LCID, 1, (24, 0), ((3, 1),),SaveMode)
1991 
1992         def Copy(self):
1993                 ret = self._oleobj_.InvokeTypes(61490, LCID, 1, (9, 0), (),)
1994                 if ret is not None:
1995                         ret = Dispatch(ret, 'Copy', None, UnicodeToString=0)
1996                 return ret
1997 
1998         def Delete(self):
1999                 return self._oleobj_.InvokeTypes(61514, LCID, 1, (24, 0), (),)
2000 
2001         def Display(self, Modal=defaultNamedOptArg):
2002                 return self._oleobj_.InvokeTypes(61606, LCID, 1, (24, 0), ((12, 17),),Modal)
2003 
2004         # Result is of type MailItem
2005         def ForwardAsVcal(self):
2006                 ret = self._oleobj_.InvokeTypes(62791, LCID, 1, (13, 0), (),)
2007                 if ret is not None:
2008                         # See if this IUnknown is really an IDispatch
2009                         try:
2010                                 ret = ret.QueryInterface(pythoncom.IID_IDispatch)
2011                         except pythoncom.error:
2012                                 return ret
2013                         ret = Dispatch(ret, 'ForwardAsVcal', '{00061033-0000-0000-C000-000000000046}', UnicodeToString=0)
2014                 return ret
2015 
2016         # Result is of type RecurrencePattern
2017         def GetRecurrencePattern(self):
2018                 ret = self._oleobj_.InvokeTypes(61604, LCID, 1, (9, 0), (),)
2019                 if ret is not None:
2020                         ret = Dispatch(ret, 'GetRecurrencePattern', '{00063044-0000-0000-C000-000000000046}', UnicodeToString=0)
2021                 return ret
2022 
2023         def Move(self, DestFldr=defaultNamedNotOptArg):
2024                 ret = self._oleobj_.InvokeTypes(61492, LCID, 1, (9, 0), ((9, 1),),DestFldr)
2025                 if ret is not None:
2026                         ret = Dispatch(ret, 'Move', None, UnicodeToString=0)
2027                 return ret
2028 
2029         def PrintOut(self):
2030                 return self._oleobj_.InvokeTypes(61491, LCID, 1, (24, 0), (),)
2031 
2032         # Result is of type MeetingItem
2033         def Respond(self, Response=defaultNamedNotOptArg, fNoUI=defaultNamedOptArg, fAdditionalTextDialog=defaultNamedOptArg):
2034                 ret = self._oleobj_.InvokeTypes(62722, LCID, 1, (13, 0), ((3, 1), (12, 17), (12, 17)),Response, fNoUI, fAdditionalTextDialog)
2035                 if ret is not None:
2036                         # See if this IUnknown is really an IDispatch
2037                         try:
2038                                 ret = ret.QueryInterface(pythoncom.IID_IDispatch)
2039                         except pythoncom.error:
2040                                 return ret
2041                         ret = Dispatch(ret, 'Respond', '{00061036-0000-0000-C000-000000000046}', UnicodeToString=0)
2042                 return ret
2043 
2044         def Save(self):
2045                 return self._oleobj_.InvokeTypes(61512, LCID, 1, (24, 0), (),)
2046 
2047         def SaveAs(self, Path=defaultNamedNotOptArg, Type=defaultNamedOptArg):
2048                 return self._oleobj_.InvokeTypes(61521, LCID, 1, (24, 0), ((8, 1), (12, 17)),Path, Type)
2049 
2050         def Send(self):
2051                 return self._oleobj_.InvokeTypes(61557, LCID, 1, (24, 0), (),)
2052 
2053         _prop_map_get_ = {
2054                 # Method 'Actions' returns object of type 'Actions'
2055                 "Actions": (63511, 2, (9, 0), (), "Actions", '{0006303E-0000-0000-C000-000000000046}'),
2056                 "AllDayEvent": (33301, 2, (11, 0), (), "AllDayEvent", None),
2057                 # Method 'Application' returns object of type '_Application'
2058                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
2059                 # Method 'Attachments' returns object of type 'Attachments'
2060                 "Attachments": (63509, 2, (9, 0), (), "Attachments", '{0006303C-0000-0000-C000-000000000046}'),
2061                 "BillingInformation": (34101, 2, (8, 0), (), "BillingInformation", None),
2062                 "Body": (37120, 2, (8, 0), (), "Body", None),
2063                 "BusyStatus": (33285, 2, (3, 0), (), "BusyStatus", None),
2064                 "Categories": (36865, 2, (8, 0), (), "Categories", None),
2065                 "Class": (61450, 2, (3, 0), (), "Class", None),
2066                 "Companies": (34107, 2, (8, 0), (), "Companies", None),
2067                 "ConferenceServerAllowExternal": (33350, 2, (11, 0), (), "ConferenceServerAllowExternal", None),
2068                 "ConferenceServerPassword": (33353, 2, (8, 0), (), "ConferenceServerPassword", None),
2069                 "ConversationIndex": (113, 2, (8, 0), (), "ConversationIndex", None),
2070                 "ConversationTopic": (112, 2, (8, 0), (), "ConversationTopic", None),
2071                 "CreationTime": (12295, 2, (7, 0), (), "CreationTime", None),
2072                 "Duration": (33299, 2, (3, 0), (), "Duration", None),
2073                 "End": (33294, 2, (7, 0), (), "End", None),
2074                 "EntryID": (61470, 2, (8, 0), (), "EntryID", None),
2075                 # Method 'FormDescription' returns object of type 'FormDescription'
2076                 "FormDescription": (61589, 2, (9, 0), (), "FormDescription", '{00063046-0000-0000-C000-000000000046}'),
2077                 # Method 'GetInspector' returns object of type '_Inspector'
2078                 "GetInspector": (61502, 2, (9, 0), (), "GetInspector", '{00063005-0000-0000-C000-000000000046}'),
2079                 "Importance": (23, 2, (3, 0), (), "Importance", None),
2080                 "IsOnlineMeeting": (33344, 2, (11, 0), (), "IsOnlineMeeting", None),
2081                 "IsRecurring": (33315, 2, (11, 0), (), "IsRecurring", None),
2082                 "LastModificationTime": (12296, 2, (7, 0), (), "LastModificationTime", None),
2083                 # Method 'Links' returns object of type 'Links'
2084                 "Links": (62469, 2, (9, 0), (), "Links", '{0006308A-0000-0000-C000-000000000046}'),
2085                 "Location": (33288, 2, (8, 0), (), "Location", None),
2086                 "MAPIOBJECT": (61696, 2, (13, 0), (), "MAPIOBJECT", None),
2087                 "MeetingStatus": (33303, 2, (3, 0), (), "MeetingStatus", None),
2088                 "MessageClass": (26, 2, (8, 0), (), "MessageClass", None),
2089                 "Mileage": (34100, 2, (8, 0), (), "Mileage", None),
2090                 "NetMeetingAutoStart": (33348, 2, (11, 0), (), "NetMeetingAutoStart", None),
2091                 "NetMeetingDocPathName": (33351, 2, (8, 0), (), "NetMeetingDocPathName", None),
2092                 "NetMeetingOrganizerAlias": (33347, 2, (8, 0), (), "NetMeetingOrganizerAlias", None),
2093                 "NetMeetingServer": (33346, 2, (8, 0), (), "NetMeetingServer", None),
2094                 "NetMeetingType": (33345, 2, (3, 0), (), "NetMeetingType", None),
2095                 "NetShowURL": (33352, 2, (8, 0), (), "NetShowURL", None),
2096                 "NoAging": (34062, 2, (11, 0), (), "NoAging", None),
2097                 "OptionalAttendees": (3587, 2, (8, 0), (), "OptionalAttendees", None),
2098                 "Organizer": (66, 2, (8, 0), (), "Organizer", None),
2099                 "OutlookInternalVersion": (34130, 2, (3, 0), (), "OutlookInternalVersion", None),
2100                 "OutlookVersion": (34132, 2, (8, 0), (), "OutlookVersion", None),
2101                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
2102                 # Method 'Recipients' returns object of type 'Recipients'
2103                 "Recipients": (63508, 2, (9, 0), (), "Recipients", '{0006303B-0000-0000-C000-000000000046}'),
2104                 "RecurrenceState": (62789, 2, (3, 0), (), "RecurrenceState", None),
2105                 "ReminderMinutesBeforeStart": (34049, 2, (3, 0), (), "ReminderMinutesBeforeStart", None),
2106                 "ReminderOverrideDefault": (34076, 2, (11, 0), (), "ReminderOverrideDefault", None),
2107                 "ReminderPlaySound": (34078, 2, (11, 0), (), "ReminderPlaySound", None),
2108                 "ReminderSet": (34051, 2, (11, 0), (), "ReminderSet", None),
2109                 "ReminderSoundFile": (34079, 2, (8, 0), (), "ReminderSoundFile", None),
2110                 "ReplyTime": (33312, 2, (7, 0), (), "ReplyTime", None),
2111                 "RequiredAttendees": (3588, 2, (8, 0), (), "RequiredAttendees", None),
2112                 "Resources": (3586, 2, (8, 0), (), "Resources", None),
2113                 "ResponseRequested": (99, 2, (11, 0), (), "ResponseRequested", None),
2114                 "ResponseStatus": (33304, 2, (3, 0), (), "ResponseStatus", None),
2115                 "Saved": (61603, 2, (11, 0), (), "Saved", None),
2116                 "Sensitivity": (54, 2, (3, 0), (), "Sensitivity", None),
2117                 # Method 'Session' returns object of type '_NameSpace'
2118                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
2119                 "Size": (3592, 2, (3, 0), (), "Size", None),
2120                 "Start": (33293, 2, (7, 0), (), "Start", None),
2121                 "Subject": (55, 2, (8, 0), (), "Subject", None),
2122                 "UnRead": (61468, 2, (11, 0), (), "UnRead", None),
2123                 # Method 'UserProperties' returns object of type 'UserProperties'
2124                 "UserProperties": (63510, 2, (9, 0), (), "UserProperties", '{0006303D-0000-0000-C000-000000000046}'),
2125         }
2126         _prop_map_put_ = {
2127                 "AllDayEvent": ((33301, LCID, 4, 0),()),
2128                 "BillingInformation": ((34101, LCID, 4, 0),()),
2129                 "Body": ((37120, LCID, 4, 0),()),
2130                 "BusyStatus": ((33285, LCID, 4, 0),()),
2131                 "Categories": ((36865, LCID, 4, 0),()),
2132                 "Companies": ((34107, LCID, 4, 0),()),
2133                 "ConferenceServerAllowExternal": ((33350, LCID, 4, 0),()),
2134                 "ConferenceServerPassword": ((33353, LCID, 4, 0),()),
2135                 "Duration": ((33299, LCID, 4, 0),()),
2136                 "End": ((33294, LCID, 4, 0),()),
2137                 "Importance": ((23, LCID, 4, 0),()),
2138                 "IsOnlineMeeting": ((33344, LCID, 4, 0),()),
2139                 "Location": ((33288, LCID, 4, 0),()),
2140                 "MeetingStatus": ((33303, LCID, 4, 0),()),
2141                 "MessageClass": ((26, LCID, 4, 0),()),
2142                 "Mileage": ((34100, LCID, 4, 0),()),
2143                 "NetMeetingAutoStart": ((33348, LCID, 4, 0),()),
2144                 "NetMeetingDocPathName": ((33351, LCID, 4, 0),()),
2145                 "NetMeetingOrganizerAlias": ((33347, LCID, 4, 0),()),
2146                 "NetMeetingServer": ((33346, LCID, 4, 0),()),
2147                 "NetMeetingType": ((33345, LCID, 4, 0),()),
2148                 "NetShowURL": ((33352, LCID, 4, 0),()),
2149                 "NoAging": ((34062, LCID, 4, 0),()),
2150                 "OptionalAttendees": ((3587, LCID, 4, 0),()),
2151                 "ReminderMinutesBeforeStart": ((34049, LCID, 4, 0),()),
2152                 "ReminderOverrideDefault": ((34076, LCID, 4, 0),()),
2153                 "ReminderPlaySound": ((34078, LCID, 4, 0),()),
2154                 "ReminderSet": ((34051, LCID, 4, 0),()),
2155                 "ReminderSoundFile": ((34079, LCID, 4, 0),()),
2156                 "ReplyTime": ((33312, LCID, 4, 0),()),
2157                 "RequiredAttendees": ((3588, LCID, 4, 0),()),
2158                 "Resources": ((3586, LCID, 4, 0),()),
2159                 "ResponseRequested": ((99, LCID, 4, 0),()),
2160                 "Sensitivity": ((54, LCID, 4, 0),()),
2161                 "Start": ((33293, LCID, 4, 0),()),
2162                 "Subject": ((55, LCID, 4, 0),()),
2163                 "UnRead": ((61468, LCID, 4, 0),()),
2164         }
2165 
2166 class _ContactItem(DispatchBaseClass):
2167         CLSID = IID('{00063021-0000-0000-C000-000000000046}')
2168         coclass_clsid = IID('{00061031-0000-0000-C000-000000000046}')
2169 
2170         def Close(self, SaveMode=defaultNamedNotOptArg):
2171                 return self._oleobj_.InvokeTypes(61475, LCID, 1, (24, 0), ((3, 1),),SaveMode)
2172 
2173         def Copy(self):
2174                 ret = self._oleobj_.InvokeTypes(61490, LCID, 1, (9, 0), (),)
2175                 if ret is not None:
2176                         ret = Dispatch(ret, 'Copy', None, UnicodeToString=0)
2177                 return ret
2178 
2179         def Delete(self):
2180                 return self._oleobj_.InvokeTypes(61514, LCID, 1, (24, 0), (),)
2181 
2182         def Display(self, Modal=defaultNamedOptArg):
2183                 return self._oleobj_.InvokeTypes(61606, LCID, 1, (24, 0), ((12, 17),),Modal)
2184 
2185         # Result is of type MailItem
2186         def ForwardAsVcard(self):
2187                 ret = self._oleobj_.InvokeTypes(63649, LCID, 1, (13, 0), (),)
2188                 if ret is not None:
2189                         # See if this IUnknown is really an IDispatch
2190                         try:
2191                                 ret = ret.QueryInterface(pythoncom.IID_IDispatch)
2192                         except pythoncom.error:
2193                                 return ret
2194                         ret = Dispatch(ret, 'ForwardAsVcard', '{00061033-0000-0000-C000-000000000046}', UnicodeToString=0)
2195                 return ret
2196 
2197         def Move(self, DestFldr=defaultNamedNotOptArg):
2198                 ret = self._oleobj_.InvokeTypes(61492, LCID, 1, (9, 0), ((9, 1),),DestFldr)
2199                 if ret is not None:
2200                         ret = Dispatch(ret, 'Move', None, UnicodeToString=0)
2201                 return ret
2202 
2203         def PrintOut(self):
2204                 return self._oleobj_.InvokeTypes(61491, LCID, 1, (24, 0), (),)
2205 
2206         def Save(self):
2207                 return self._oleobj_.InvokeTypes(61512, LCID, 1, (24, 0), (),)
2208 
2209         def SaveAs(self, Path=defaultNamedNotOptArg, Type=defaultNamedOptArg):
2210                 return self._oleobj_.InvokeTypes(61521, LCID, 1, (24, 0), ((8, 1), (12, 17)),Path, Type)
2211 
2212         _prop_map_get_ = {
2213                 "Account": (14848, 2, (8, 0), (), "Account", None),
2214                 # Method 'Actions' returns object of type 'Actions'
2215                 "Actions": (63511, 2, (9, 0), (), "Actions", '{0006303E-0000-0000-C000-000000000046}'),
2216                 "Anniversary": (14913, 2, (7, 0), (), "Anniversary", None),
2217                 # Method 'Application' returns object of type '_Application'
2218                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
2219                 "AssistantName": (14896, 2, (8, 0), (), "AssistantName", None),
2220                 "AssistantTelephoneNumber": (14894, 2, (8, 0), (), "AssistantTelephoneNumber", None),
2221                 # Method 'Attachments' returns object of type 'Attachments'
2222                 "Attachments": (63509, 2, (9, 0), (), "Attachments", '{0006303C-0000-0000-C000-000000000046}'),
2223                 "BillingInformation": (34101, 2, (8, 0), (), "BillingInformation", None),
2224                 "Birthday": (14914, 2, (7, 0), (), "Birthday", None),
2225                 "Body": (37120, 2, (8, 0), (), "Body", None),
2226                 "Business2TelephoneNumber": (14875, 2, (8, 0), (), "Business2TelephoneNumber", None),
2227                 "BusinessAddress": (32795, 2, (8, 0), (), "BusinessAddress", None),
2228                 "BusinessAddressCity": (32838, 2, (8, 0), (), "BusinessAddressCity", None),
2229                 "BusinessAddressCountry": (32841, 2, (8, 0), (), "BusinessAddressCountry", None),
2230                 "BusinessAddressPostOfficeBox": (32842, 2, (8, 0), (), "BusinessAddressPostOfficeBox", None),
2231                 "BusinessAddressPostalCode": (32840, 2, (8, 0), (), "BusinessAddressPostalCode", None),
2232                 "BusinessAddressState": (32839, 2, (8, 0), (), "BusinessAddressState", None),
2233                 "BusinessAddressStreet": (32837, 2, (8, 0), (), "BusinessAddressStreet", None),
2234                 "BusinessFaxNumber": (14884, 2, (8, 0), (), "BusinessFaxNumber", None),
2235                 "BusinessHomePage": (14929, 2, (8, 0), (), "BusinessHomePage", None),
2236                 "BusinessTelephoneNumber": (14856, 2, (8, 0), (), "BusinessTelephoneNumber", None),
2237                 "CallbackTelephoneNumber": (14850, 2, (8, 0), (), "CallbackTelephoneNumber", None),
2238                 "CarTelephoneNumber": (14878, 2, (8, 0), (), "CarTelephoneNumber", None),
2239                 "Categories": (36865, 2, (8, 0), (), "Categories", None),
2240                 "Children": (32780, 2, (8, 0), (), "Children", None),
2241                 "Class": (61450, 2, (3, 0), (), "Class", None),
2242                 "Companies": (34107, 2, (8, 0), (), "Companies", None),
2243                 "CompanyAndFullName": (32792, 2, (8, 0), (), "CompanyAndFullName", None),
2244                 "CompanyLastFirstNoSpace": (32818, 2, (8, 0), (), "CompanyLastFirstNoSpace", None),
2245                 "CompanyLastFirstSpaceOnly": (32819, 2, (8, 0), (), "CompanyLastFirstSpaceOnly", None),
2246                 "CompanyMainTelephoneNumber": (14935, 2, (8, 0), (), "CompanyMainTelephoneNumber", None),
2247                 "CompanyName": (14870, 2, (8, 0), (), "CompanyName", None),
2248                 "ComputerNetworkName": (14921, 2, (8, 0), (), "ComputerNetworkName", None),
2249                 "ConversationIndex": (113, 2, (8, 0), (), "ConversationIndex", None),
2250                 "ConversationTopic": (112, 2, (8, 0), (), "ConversationTopic", None),
2251                 "CreationTime": (12295, 2, (7, 0), (), "CreationTime", None),
2252                 "CustomerID": (14922, 2, (8, 0), (), "CustomerID", None),
2253                 "Department": (14872, 2, (8, 0), (), "Department", None),
2254                 "Email1Address": (32899, 2, (8, 0), (), "Email1Address", None),
2255                 "Email1AddressType": (32898, 2, (8, 0), (), "Email1AddressType", None),
2256                 "Email1DisplayName": (32896, 2, (8, 0), (), "Email1DisplayName", None),
2257                 "Email1EntryID": (32901, 2, (8, 0), (), "Email1EntryID", None),
2258                 "Email2Address": (32915, 2, (8, 0), (), "Email2Address", None),
2259                 "Email2AddressType": (32914, 2, (8, 0), (), "Email2AddressType", None),
2260                 "Email2DisplayName": (32912, 2, (8, 0), (), "Email2DisplayName", None),
2261                 "Email2EntryID": (32917, 2, (8, 0), (), "Email2EntryID", None),
2262                 "Email3Address": (32931, 2, (8, 0), (), "Email3Address", None),
2263                 "Email3AddressType": (32930, 2, (8, 0), (), "Email3AddressType", None),
2264                 "Email3DisplayName": (32928, 2, (8, 0), (), "Email3DisplayName", None),
2265                 "Email3EntryID": (32933, 2, (8, 0), (), "Email3EntryID", None),
2266                 "EntryID": (61470, 2, (8, 0), (), "EntryID", None),
2267                 "FTPSite": (14924, 2, (8, 0), (), "FTPSite", None),
2268                 "FileAs": (32773, 2, (8, 0), (), "FileAs", None),
2269                 "FirstName": (14854, 2, (8, 0), (), "FirstName", None),
2270                 # Method 'FormDescription' returns object of type 'FormDescription'
2271                 "FormDescription": (61589, 2, (9, 0), (), "FormDescription", '{00063046-0000-0000-C000-000000000046}'),
2272                 "FullName": (12289, 2, (8, 0), (), "FullName", None),
2273                 "FullNameAndCompany": (32793, 2, (8, 0), (), "FullNameAndCompany", None),
2274                 "Gender": (14925, 2, (3, 0), (), "Gender", None),
2275                 # Method 'GetInspector' returns object of type '_Inspector'
2276                 "GetInspector": (61502, 2, (9, 0), (), "GetInspector", '{00063005-0000-0000-C000-000000000046}'),
2277                 "GovernmentIDNumber": (14855, 2, (8, 0), (), "GovernmentIDNumber", None),
2278                 "Hobby": (14915, 2, (8, 0), (), "Hobby", None),
2279                 "Home2TelephoneNumber": (14895, 2, (8, 0), (), "Home2TelephoneNumber", None),
2280                 "HomeAddress": (32794, 2, (8, 0), (), "HomeAddress", None),
2281                 "HomeAddressCity": (14937, 2, (8, 0), (), "HomeAddressCity", None),
2282                 "HomeAddressCountry": (14938, 2, (8, 0), (), "HomeAddressCountry", None),
2283                 "HomeAddressPostOfficeBox": (14942, 2, (8, 0), (), "HomeAddressPostOfficeBox", None),
2284                 "HomeAddressPostalCode": (14939, 2, (8, 0), (), "HomeAddressPostalCode", None),
2285                 "HomeAddressState": (14940, 2, (8, 0), (), "HomeAddressState", None),
2286                 "HomeAddressStreet": (14941, 2, (8, 0), (), "HomeAddressStreet", None),
2287                 "HomeFaxNumber": (14885, 2, (8, 0), (), "HomeFaxNumber", None),
2288                 "HomeTelephoneNumber": (14857, 2, (8, 0), (), "HomeTelephoneNumber", None),
2289                 "ISDNNumber": (14893, 2, (8, 0), (), "ISDNNumber", None),
2290                 "Importance": (23, 2, (3, 0), (), "Importance", None),
2291                 "Initials": (14858, 2, (8, 0), (), "Initials", None),
2292                 "InternetFreeBusyAddress": (32984, 2, (8, 0), (), "InternetFreeBusyAddress", None),
2293                 "JobTitle": (14871, 2, (8, 0), (), "JobTitle", None),
2294                 "Journal": (32805, 2, (11, 0), (), "Journal", None),
2295                 "Language": (14860, 2, (8, 0), (), "Language", None),
2296                 "LastFirstAndSuffix": (32822, 2, (8, 0), (), "LastFirstAndSuffix", None),
2297                 "LastFirstNoSpace": (32816, 2, (8, 0), (), "LastFirstNoSpace", None),
2298                 "LastFirstNoSpaceCompany": (32820, 2, (8, 0), (), "LastFirstNoSpaceCompany", None),
2299                 "LastFirstSpaceOnly": (32817, 2, (8, 0), (), "LastFirstSpaceOnly", None),
2300                 "LastFirstSpaceOnlyCompany": (32821, 2, (8, 0), (), "LastFirstSpaceOnlyCompany", None),
2301                 "LastModificationTime": (12296, 2, (7, 0), (), "LastModificationTime", None),
2302                 "LastName": (14865, 2, (8, 0), (), "LastName", None),
2303                 "LastNameAndFirstName": (32791, 2, (8, 0), (), "LastNameAndFirstName", None),
2304                 # Method 'Links' returns object of type 'Links'
2305                 "Links": (62469, 2, (9, 0), (), "Links", '{0006308A-0000-0000-C000-000000000046}'),
2306                 "MAPIOBJECT": (61696, 2, (13, 0), (), "MAPIOBJECT", None),
2307                 "MailingAddress": (14869, 2, (8, 0), (), "MailingAddress", None),
2308                 "MailingAddressCity": (14887, 2, (8, 0), (), "MailingAddressCity", None),
2309                 "MailingAddressCountry": (14886, 2, (8, 0), (), "MailingAddressCountry", None),
2310                 "MailingAddressPostOfficeBox": (14891, 2, (8, 0), (), "MailingAddressPostOfficeBox", None),
2311                 "MailingAddressPostalCode": (14890, 2, (8, 0), (), "MailingAddressPostalCode", None),
2312                 "MailingAddressState": (14888, 2, (8, 0), (), "MailingAddressState", None),
2313                 "MailingAddressStreet": (14889, 2, (8, 0), (), "MailingAddressStreet", None),
2314                 "ManagerName": (14926, 2, (8, 0), (), "ManagerName", None),
2315                 "MessageClass": (26, 2, (8, 0), (), "MessageClass", None),
2316                 "MiddleName": (14916, 2, (8, 0), (), "MiddleName", None),
2317                 "Mileage": (34100, 2, (8, 0), (), "Mileage", None),
2318                 "MobileTelephoneNumber": (14876, 2, (8, 0), (), "MobileTelephoneNumber", None),
2319                 "NetMeetingAlias": (32863, 2, (8, 0), (), "NetMeetingAlias", None),
2320                 "NetMeetingServer": (32864, 2, (8, 0), (), "NetMeetingServer", None),
2321                 "NickName": (14927, 2, (8, 0), (), "NickName", None),
2322                 "NoAging": (34062, 2, (11, 0), (), "NoAging", None),
2323                 "OfficeLocation": (14873, 2, (8, 0), (), "OfficeLocation", None),
2324                 "OrganizationalIDNumber": (14864, 2, (8, 0), (), "OrganizationalIDNumber", None),
2325                 "OtherAddress": (32796, 2, (8, 0), (), "OtherAddress", None),
2326                 "OtherAddressCity": (14943, 2, (8, 0), (), "OtherAddressCity", None),
2327                 "OtherAddressCountry": (14944, 2, (8, 0), (), "OtherAddressCountry", None),
2328                 "OtherAddressPostOfficeBox": (14948, 2, (8, 0), (), "OtherAddressPostOfficeBox", None),
2329                 "OtherAddressPostalCode": (14945, 2, (8, 0), (), "OtherAddressPostalCode", None),
2330                 "OtherAddressState": (14946, 2, (8, 0), (), "OtherAddressState", None),
2331                 "OtherAddressStreet": (14947, 2, (8, 0), (), "OtherAddressStreet", None),
2332                 "OtherFaxNumber": (14883, 2, (8, 0), (), "OtherFaxNumber", None),
2333                 "OtherTelephoneNumber": (14879, 2, (8, 0), (), "OtherTelephoneNumber", None),
2334                 "OutlookInternalVersion": (34130, 2, (3, 0), (), "OutlookInternalVersion", None),
2335                 "OutlookVersion": (34132, 2, (8, 0), (), "OutlookVersion", None),
2336                 "PagerNumber": (14881, 2, (8, 0), (), "PagerNumber", None),
2337                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
2338                 "PersonalHomePage": (14928, 2, (8, 0), (), "PersonalHomePage", None),
2339                 "PrimaryTelephoneNumber": (14874, 2, (8, 0), (), "PrimaryTelephoneNumber", None),
2340                 "Profession": (14918, 2, (8, 0), (), "Profession", None),
2341                 "RadioTelephoneNumber": (14877, 2, (8, 0), (), "RadioTelephoneNumber", None),
2342                 "ReferredBy": (14919, 2, (8, 0), (), "ReferredBy", None),
2343                 "Saved": (61603, 2, (11, 0), (), "Saved", None),
2344                 "SelectedMailingAddress": (32802, 2, (3, 0), (), "SelectedMailingAddress", None),
2345                 "Sensitivity": (54, 2, (3, 0), (), "Sensitivity", None),
2346                 # Method 'Session' returns object of type '_NameSpace'
2347                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
2348                 "Size": (3592, 2, (3, 0), (), "Size", None),
2349                 "Spouse": (14920, 2, (8, 0), (), "Spouse", None),
2350                 "Subject": (55, 2, (8, 0), (), "Subject", None),
2351                 "Suffix": (14853, 2, (8, 0), (), "Suffix", None),
2352                 "TTYTDDTelephoneNumber": (14923, 2, (8, 0), (), "TTYTDDTelephoneNumber", None),
2353                 "TelexNumber": (14892, 2, (8, 0), (), "TelexNumber", None),
2354                 "Title": (14917, 2, (8, 0), (), "Title", None),
2355                 "UnRead": (61468, 2, (11, 0), (), "UnRead", None),
2356                 "User1": (32847, 2, (8, 0), (), "User1", None),
2357                 "User2": (32848, 2, (8, 0), (), "User2", None),
2358                 "User3": (32849, 2, (8, 0), (), "User3", None),
2359                 "User4": (32850, 2, (8, 0), (), "User4", None),
2360                 "UserCertificate": (32790, 2, (8, 0), (), "UserCertificate", None),
2361                 # Method 'UserProperties' returns object of type 'UserProperties'
2362                 "UserProperties": (63510, 2, (9, 0), (), "UserProperties", '{0006303D-0000-0000-C000-000000000046}'),
2363                 "WebPage": (32811, 2, (8, 0), (), "WebPage", None),
2364                 "YomiCompanyName": (32814, 2, (8, 0), (), "YomiCompanyName", None),
2365                 "YomiFirstName": (32812, 2, (8, 0), (), "YomiFirstName", None),
2366                 "YomiLastName": (32813, 2, (8, 0), (), "YomiLastName", None),
2367         }
2368         _prop_map_put_ = {
2369                 "Account": ((14848, LCID, 4, 0),()),
2370                 "Anniversary": ((14913, LCID, 4, 0),()),
2371                 "AssistantName": ((14896, LCID, 4, 0),()),
2372                 "AssistantTelephoneNumber": ((14894, LCID, 4, 0),()),
2373                 "BillingInformation": ((34101, LCID, 4, 0),()),
2374                 "Birthday": ((14914, LCID, 4, 0),()),
2375                 "Body": ((37120, LCID, 4, 0),()),
2376                 "Business2TelephoneNumber": ((14875, LCID, 4, 0),()),
2377                 "BusinessAddress": ((32795, LCID, 4, 0),()),
2378                 "BusinessAddressCity": ((32838, LCID, 4, 0),()),
2379                 "BusinessAddressCountry": ((32841, LCID, 4, 0),()),
2380                 "BusinessAddressPostOfficeBox": ((32842, LCID, 4, 0),()),
2381                 "BusinessAddressPostalCode": ((32840, LCID, 4, 0),()),
2382                 "BusinessAddressState": ((32839, LCID, 4, 0),()),
2383                 "BusinessAddressStreet": ((32837, LCID, 4, 0),()),
2384                 "BusinessFaxNumber": ((14884, LCID, 4, 0),()),
2385                 "BusinessHomePage": ((14929, LCID, 4, 0),()),
2386                 "BusinessTelephoneNumber": ((14856, LCID, 4, 0),()),
2387                 "CallbackTelephoneNumber": ((14850, LCID, 4, 0),()),
2388                 "CarTelephoneNumber": ((14878, LCID, 4, 0),()),
2389                 "Categories": ((36865, LCID, 4, 0),()),
2390                 "Children": ((32780, LCID, 4, 0),()),
2391                 "Companies": ((34107, LCID, 4, 0),()),
2392                 "CompanyMainTelephoneNumber": ((14935, LCID, 4, 0),()),
2393                 "CompanyName": ((14870, LCID, 4, 0),()),
2394                 "ComputerNetworkName": ((14921, LCID, 4, 0),()),
2395                 "CustomerID": ((14922, LCID, 4, 0),()),
2396                 "Department": ((14872, LCID, 4, 0),()),
2397                 "Email1Address": ((32899, LCID, 4, 0),()),
2398                 "Email1AddressType": ((32898, LCID, 4, 0),()),
2399                 "Email2Address": ((32915, LCID, 4, 0),()),
2400                 "Email2AddressType": ((32914, LCID, 4, 0),()),
2401                 "Email3Address": ((32931, LCID, 4, 0),()),
2402                 "Email3AddressType": ((32930, LCID, 4, 0),()),
2403                 "FTPSite": ((14924, LCID, 4, 0),()),
2404                 "FileAs": ((32773, LCID, 4, 0),()),
2405                 "FirstName": ((14854, LCID, 4, 0),()),
2406                 "FullName": ((12289, LCID, 4, 0),()),
2407                 "Gender": ((14925, LCID, 4, 0),()),
2408                 "GovernmentIDNumber": ((14855, LCID, 4, 0),()),
2409                 "Hobby": ((14915, LCID, 4, 0),()),
2410                 "Home2TelephoneNumber": ((14895, LCID, 4, 0),()),
2411                 "HomeAddress": ((32794, LCID, 4, 0),()),
2412                 "HomeAddressCity": ((14937, LCID, 4, 0),()),
2413                 "HomeAddressCountry": ((14938, LCID, 4, 0),()),
2414                 "HomeAddressPostOfficeBox": ((14942, LCID, 4, 0),()),
2415                 "HomeAddressPostalCode": ((14939, LCID, 4, 0),()),
2416                 "HomeAddressState": ((14940, LCID, 4, 0),()),
2417                 "HomeAddressStreet": ((14941, LCID, 4, 0),()),
2418                 "HomeFaxNumber": ((14885, LCID, 4, 0),()),
2419                 "HomeTelephoneNumber": ((14857, LCID, 4, 0),()),
2420                 "ISDNNumber": ((14893, LCID, 4, 0),()),
2421                 "Importance": ((23, LCID, 4, 0),()),
2422                 "Initials": ((14858, LCID, 4, 0),()),
2423                 "InternetFreeBusyAddress": ((32984, LCID, 4, 0),()),
2424                 "JobTitle": ((14871, LCID, 4, 0),()),
2425                 "Journal": ((32805, LCID, 4, 0),()),
2426                 "Language": ((14860, LCID, 4, 0),()),
2427                 "LastName": ((14865, LCID, 4, 0),()),
2428                 "MailingAddress": ((14869, LCID, 4, 0),()),
2429                 "MailingAddressCity": ((14887, LCID, 4, 0),()),
2430                 "MailingAddressCountry": ((14886, LCID, 4, 0),()),
2431                 "MailingAddressPostOfficeBox": ((14891, LCID, 4, 0),()),
2432                 "MailingAddressPostalCode": ((14890, LCID, 4, 0),()),
2433                 "MailingAddressState": ((14888, LCID, 4, 0),()),
2434                 "MailingAddressStreet": ((14889, LCID, 4, 0),()),
2435                 "ManagerName": ((14926, LCID, 4, 0),()),
2436                 "MessageClass": ((26, LCID, 4, 0),()),
2437                 "MiddleName": ((14916, LCID, 4, 0),()),
2438                 "Mileage": ((34100, LCID, 4, 0),()),
2439                 "MobileTelephoneNumber": ((14876, LCID, 4, 0),()),
2440                 "NetMeetingAlias": ((32863, LCID, 4, 0),()),
2441                 "NetMeetingServer": ((32864, LCID, 4, 0),()),
2442                 "NickName": ((14927, LCID, 4, 0),()),
2443                 "NoAging": ((34062, LCID, 4, 0),()),
2444                 "OfficeLocation": ((14873, LCID, 4, 0),()),
2445                 "OrganizationalIDNumber": ((14864, LCID, 4, 0),()),
2446                 "OtherAddress": ((32796, LCID, 4, 0),()),
2447                 "OtherAddressCity": ((14943, LCID, 4, 0),()),
2448                 "OtherAddressCountry": ((14944, LCID, 4, 0),()),
2449                 "OtherAddressPostOfficeBox": ((14948, LCID, 4, 0),()),
2450                 "OtherAddressPostalCode": ((14945, LCID, 4, 0),()),
2451                 "OtherAddressState": ((14946, LCID, 4, 0),()),
2452                 "OtherAddressStreet": ((14947, LCID, 4, 0),()),
2453                 "OtherFaxNumber": ((14883, LCID, 4, 0),()),
2454                 "OtherTelephoneNumber": ((14879, LCID, 4, 0),()),
2455                 "PagerNumber": ((14881, LCID, 4, 0),()),
2456                 "PersonalHomePage": ((14928, LCID, 4, 0),()),
2457                 "PrimaryTelephoneNumber": ((14874, LCID, 4, 0),()),
2458                 "Profession": ((14918, LCID, 4, 0),()),
2459                 "RadioTelephoneNumber": ((14877, LCID, 4, 0),()),
2460                 "ReferredBy": ((14919, LCID, 4, 0),()),
2461                 "SelectedMailingAddress": ((32802, LCID, 4, 0),()),
2462                 "Sensitivity": ((54, LCID, 4, 0),()),
2463                 "Spouse": ((14920, LCID, 4, 0),()),
2464                 "Subject": ((55, LCID, 4, 0),()),
2465                 "Suffix": ((14853, LCID, 4, 0),()),
2466                 "TTYTDDTelephoneNumber": ((14923, LCID, 4, 0),()),
2467                 "TelexNumber": ((14892, LCID, 4, 0),()),
2468                 "Title": ((14917, LCID, 4, 0),()),
2469                 "UnRead": ((61468, LCID, 4, 0),()),
2470                 "User1": ((32847, LCID, 4, 0),()),
2471                 "User2": ((32848, LCID, 4, 0),()),
2472                 "User3": ((32849, LCID, 4, 0),()),
2473                 "User4": ((32850, LCID, 4, 0),()),
2474                 "UserCertificate": ((32790, LCID, 4, 0),()),
2475                 "WebPage": ((32811, LCID, 4, 0),()),
2476                 "YomiCompanyName": ((32814, LCID, 4, 0),()),
2477                 "YomiFirstName": ((32812, LCID, 4, 0),()),
2478                 "YomiLastName": ((32813, LCID, 4, 0),()),
2479         }
2480 
2481 class _DDocSiteControl(DispatchBaseClass):
2482         CLSID = IID('{0006F026-0000-0000-C000-000000000046}')
2483         coclass_clsid = IID('{0006F024-0000-0000-C000-000000000046}')
2484 
2485         _prop_map_get_ = {
2486                 "ReadOnly": (-2147356664, 2, (11, 0), (), "ReadOnly", None),
2487         }
2488         _prop_map_put_ = {
2489                 "ReadOnly": ((-2147356664, LCID, 4, 0),()),
2490         }
2491 
2492 class _DDocSiteControlEvents:
2493         CLSID = CLSID_Sink = IID('{50BB9B50-811D-11CE-B565-00AA00608FAA}')
2494         coclass_clsid = IID('{0006F024-0000-0000-C000-000000000046}')
2495         _public_methods_ = [] # For COM Server support
2496         _dispid_to_func_ = {
2497                 }
2498 
2499         def __init__(self, oobj = None):
2500                 if oobj is None:
2501                         self._olecp = None
2502                 else:
2503                         import win32com.server.util
2504                         from win32com.server.policy import EventHandlerPolicy
2505                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
2506                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
2507                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
2508                         self._olecp,self._olecp_cookie = cp,cookie
2509         def __del__(self):
2510                 try:
2511                         self.close()
2512                 except pythoncom.com_error:
2513                         pass
2514         def close(self):
2515                 if self._olecp is not None:
2516                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
2517                         cp.Unadvise(cookie)
2518         def _query_interface_(self, iid):
2519                 import win32com.server.util
2520                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
2521 
2522         # Event Handlers
2523         # If you create handlers, they should have the following prototypes:
2524 
2525 
2526 class _DRecipientControl(DispatchBaseClass):
2527         CLSID = IID('{0006F025-0000-0000-C000-000000000046}')
2528         coclass_clsid = IID('{0006F023-0000-0000-C000-000000000046}')
2529 
2530         _prop_map_get_ = {
2531                 "BackColor": (-501, 2, (3, 0), (), "BackColor", None),
2532                 "Enabled": (-514, 2, (11, 0), (), "Enabled", None),
2533                 "Font": (-512, 2, (9, 0), (), "Font", None),
2534                 "ForeColor": (-513, 2, (3, 0), (), "ForeColor", None),
2535                 "ReadOnly": (-2147356664, 2, (11, 0), (), "ReadOnly", None),
2536                 "SpecialEffect": (12, 2, (3, 0), (), "SpecialEffect", None),
2537         }
2538         _prop_map_put_ = {
2539                 "BackColor": ((-501, LCID, 4, 0),()),
2540                 "Enabled": ((-514, LCID, 4, 0),()),
2541                 "Font": ((-512, LCID, 4, 0),()),
2542                 "ForeColor": ((-513, LCID, 4, 0),()),
2543                 "ReadOnly": ((-2147356664, LCID, 4, 0),()),
2544                 "SpecialEffect": ((12, LCID, 4, 0),()),
2545         }
2546 
2547 class _DRecipientControlEvents:
2548         CLSID = CLSID_Sink = IID('{D87E7E17-6897-11CE-A6C0-00AA00608FAA}')
2549         coclass_clsid = IID('{0006F023-0000-0000-C000-000000000046}')
2550         _public_methods_ = [] # For COM Server support
2551         _dispid_to_func_ = {
2552                 }
2553 
2554         def __init__(self, oobj = None):
2555                 if oobj is None:
2556                         self._olecp = None
2557                 else:
2558                         import win32com.server.util
2559                         from win32com.server.policy import EventHandlerPolicy
2560                         cpc=oobj._oleobj_.QueryInterface(pythoncom.IID_IConnectionPointContainer)
2561                         cp=cpc.FindConnectionPoint(self.CLSID_Sink)
2562                         cookie=cp.Advise(win32com.server.util.wrap(self, usePolicy=EventHandlerPolicy))
2563                         self._olecp,self._olecp_cookie = cp,cookie
2564         def __del__(self):
2565                 try:
2566                         self.close()
2567                 except pythoncom.com_error:
2568                         pass
2569         def close(self):
2570                 if self._olecp is not None:
2571                         cp,cookie,self._olecp,self._olecp_cookie = self._olecp,self._olecp_cookie,None,None
2572                         cp.Unadvise(cookie)
2573         def _query_interface_(self, iid):
2574                 import win32com.server.util
2575                 if iid==self.CLSID_Sink: return win32com.server.util.wrap(self)
2576 
2577         # Event Handlers
2578         # If you create handlers, they should have the following prototypes:
2579 
2580 
2581 class _DistListItem(DispatchBaseClass):
2582         CLSID = IID('{00063081-0000-0000-C000-000000000046}')
2583         coclass_clsid = IID('{0006103C-0000-0000-C000-000000000046}')
2584 
2585         def AddMembers(self, Recipients=defaultNamedNotOptArg):
2586                 return self._oleobj_.InvokeTypes(63744, LCID, 1, (24, 0), ((9, 1),),Recipients)
2587 
2588         def Close(self, SaveMode=defaultNamedNotOptArg):
2589                 return self._oleobj_.InvokeTypes(61475, LCID, 1, (24, 0), ((3, 1),),SaveMode)
2590 
2591         def Copy(self):
2592                 ret = self._oleobj_.InvokeTypes(61490, LCID, 1, (9, 0), (),)
2593                 if ret is not None:
2594                         ret = Dispatch(ret, 'Copy', None, UnicodeToString=0)
2595                 return ret
2596 
2597         def Delete(self):
2598                 return self._oleobj_.InvokeTypes(61514, LCID, 1, (24, 0), (),)
2599 
2600         def Display(self, Modal=defaultNamedOptArg):
2601                 return self._oleobj_.InvokeTypes(61606, LCID, 1, (24, 0), ((12, 17),),Modal)
2602 
2603         # Result is of type Recipient
2604         def GetMember(self, Index=defaultNamedNotOptArg):
2605                 ret = self._oleobj_.InvokeTypes(63749, LCID, 1, (9, 0), ((3, 1),),Index)
2606                 if ret is not None:
2607                         ret = Dispatch(ret, 'GetMember', '{00063045-0000-0000-C000-000000000046}', UnicodeToString=0)
2608                 return ret
2609 
2610         def Move(self, DestFldr=defaultNamedNotOptArg):
2611                 ret = self._oleobj_.InvokeTypes(61492, LCID, 1, (9, 0), ((9, 1),),DestFldr)
2612                 if ret is not None:
2613                         ret = Dispatch(ret, 'Move', None, UnicodeToString=0)
2614                 return ret
2615 
2616         def PrintOut(self):
2617                 return self._oleobj_.InvokeTypes(61491, LCID, 1, (24, 0), (),)
2618 
2619         def RemoveMembers(self, Recipients=defaultNamedNotOptArg):
2620                 return self._oleobj_.InvokeTypes(63745, LCID, 1, (24, 0), ((9, 1),),Recipients)
2621 
2622         def Save(self):
2623                 return self._oleobj_.InvokeTypes(61512, LCID, 1, (24, 0), (),)
2624 
2625         def SaveAs(self, Path=defaultNamedNotOptArg, Type=defaultNamedOptArg):
2626                 return self._oleobj_.InvokeTypes(61521, LCID, 1, (24, 0), ((8, 1), (12, 17)),Path, Type)
2627 
2628         _prop_map_get_ = {
2629                 # Method 'Actions' returns object of type 'Actions'
2630                 "Actions": (63511, 2, (9, 0), (), "Actions", '{0006303E-0000-0000-C000-000000000046}'),
2631                 # Method 'Application' returns object of type '_Application'
2632                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
2633                 # Method 'Attachments' returns object of type 'Attachments'
2634                 "Attachments": (63509, 2, (9, 0), (), "Attachments", '{0006303C-0000-0000-C000-000000000046}'),
2635                 "BillingInformation": (34101, 2, (8, 0), (), "BillingInformation", None),
2636                 "Body": (37120, 2, (8, 0), (), "Body", None),
2637                 "Categories": (36865, 2, (8, 0), (), "Categories", None),
2638                 "CheckSum": (32844, 2, (3, 0), (), "CheckSum", None),
2639                 "Class": (61450, 2, (3, 0), (), "Class", None),
2640                 "Companies": (34107, 2, (8, 0), (), "Companies", None),
2641                 "ConversationIndex": (113, 2, (8, 0), (), "ConversationIndex", None),
2642                 "ConversationTopic": (112, 2, (8, 0), (), "ConversationTopic", None),
2643                 "CreationTime": (12295, 2, (7, 0), (), "CreationTime", None),
2644                 "DLName": (32851, 2, (8, 0), (), "DLName", None),
2645                 "EntryID": (61470, 2, (8, 0), (), "EntryID", None),
2646                 # Method 'FormDescription' returns object of type 'FormDescription'
2647                 "FormDescription": (61589, 2, (9, 0), (), "FormDescription", '{00063046-0000-0000-C000-000000000046}'),
2648                 # Method 'GetInspector' returns object of type '_Inspector'
2649                 "GetInspector": (61502, 2, (9, 0), (), "GetInspector", '{00063005-0000-0000-C000-000000000046}'),
2650                 "Importance": (23, 2, (3, 0), (), "Importance", None),
2651                 "LastModificationTime": (12296, 2, (7, 0), (), "LastModificationTime", None),
2652                 # Method 'Links' returns object of type 'Links'
2653                 "Links": (62469, 2, (9, 0), (), "Links", '{0006308A-0000-0000-C000-000000000046}'),
2654                 "MAPIOBJECT": (61696, 2, (13, 0), (), "MAPIOBJECT", None),
2655                 "MemberCount": (32843, 2, (3, 0), (), "MemberCount", None),
2656                 "Members": (32853, 2, (12, 0), (), "Members", None),
2657                 "MessageClass": (26, 2, (8, 0), (), "MessageClass", None),
2658                 "Mileage": (34100, 2, (8, 0), (), "Mileage", None),
2659                 "NoAging": (34062, 2, (11, 0), (), "NoAging", None),
2660                 "OneOffMembers": (32852, 2, (12, 0), (), "OneOffMembers", None),
2661                 "OutlookInternalVersion": (34130, 2, (3, 0), (), "OutlookInternalVersion", None),
2662                 "OutlookVersion": (34132, 2, (8, 0), (), "OutlookVersion", None),
2663                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
2664                 "Saved": (61603, 2, (11, 0), (), "Saved", None),
2665                 "Sensitivity": (54, 2, (3, 0), (), "Sensitivity", None),
2666                 # Method 'Session' returns object of type '_NameSpace'
2667                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
2668                 "Size": (3592, 2, (3, 0), (), "Size", None),
2669                 "Subject": (55, 2, (8, 0), (), "Subject", None),
2670                 "UnRead": (61468, 2, (11, 0), (), "UnRead", None),
2671                 # Method 'UserProperties' returns object of type 'UserProperties'
2672                 "UserProperties": (63510, 2, (9, 0), (), "UserProperties", '{0006303D-0000-0000-C000-000000000046}'),
2673         }
2674         _prop_map_put_ = {
2675                 "BillingInformation": ((34101, LCID, 4, 0),()),
2676                 "Body": ((37120, LCID, 4, 0),()),
2677                 "Categories": ((36865, LCID, 4, 0),()),
2678                 "Companies": ((34107, LCID, 4, 0),()),
2679                 "DLName": ((32851, LCID, 4, 0),()),
2680                 "Importance": ((23, LCID, 4, 0),()),
2681                 "Members": ((32853, LCID, 4, 0),()),
2682                 "MessageClass": ((26, LCID, 4, 0),()),
2683                 "Mileage": ((34100, LCID, 4, 0),()),
2684                 "NoAging": ((34062, LCID, 4, 0),()),
2685                 "OneOffMembers": ((32852, LCID, 4, 0),()),
2686                 "Sensitivity": ((54, LCID, 4, 0),()),
2687                 "Subject": ((55, LCID, 4, 0),()),
2688                 "UnRead": ((61468, LCID, 4, 0),()),
2689         }
2690 
2691 class _DocumentItem(DispatchBaseClass):
2692         CLSID = IID('{00063020-0000-0000-C000-000000000046}')
2693         coclass_clsid = IID('{00061061-0000-0000-C000-000000000046}')
2694 
2695         def Close(self, SaveMode=defaultNamedNotOptArg):
2696                 return self._oleobj_.InvokeTypes(61475, LCID, 1, (24, 0), ((3, 1),),SaveMode)
2697 
2698         def Copy(self):
2699                 ret = self._oleobj_.InvokeTypes(61490, LCID, 1, (9, 0), (),)
2700                 if ret is not None:
2701                         ret = Dispatch(ret, 'Copy', None, UnicodeToString=0)
2702                 return ret
2703 
2704         def Delete(self):
2705                 return self._oleobj_.InvokeTypes(61514, LCID, 1, (24, 0), (),)
2706 
2707         def Display(self, Modal=defaultNamedOptArg):
2708                 return self._oleobj_.InvokeTypes(61606, LCID, 1, (24, 0), ((12, 17),),Modal)
2709 
2710         def Move(self, DestFldr=defaultNamedNotOptArg):
2711                 ret = self._oleobj_.InvokeTypes(61492, LCID, 1, (9, 0), ((9, 1),),DestFldr)
2712                 if ret is not None:
2713                         ret = Dispatch(ret, 'Move', None, UnicodeToString=0)
2714                 return ret
2715 
2716         def PrintOut(self):
2717                 return self._oleobj_.InvokeTypes(61491, LCID, 1, (24, 0), (),)
2718 
2719         def Save(self):
2720                 return self._oleobj_.InvokeTypes(61512, LCID, 1, (24, 0), (),)
2721 
2722         def SaveAs(self, Path=defaultNamedNotOptArg, Type=defaultNamedOptArg):
2723                 return self._oleobj_.InvokeTypes(61521, LCID, 1, (24, 0), ((8, 1), (12, 17)),Path, Type)
2724 
2725         _prop_map_get_ = {
2726                 # Method 'Actions' returns object of type 'Actions'
2727                 "Actions": (63511, 2, (9, 0), (), "Actions", '{0006303E-0000-0000-C000-000000000046}'),
2728                 # Method 'Application' returns object of type '_Application'
2729                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
2730                 # Method 'Attachments' returns object of type 'Attachments'
2731                 "Attachments": (63509, 2, (9, 0), (), "Attachments", '{0006303C-0000-0000-C000-000000000046}'),
2732                 "BillingInformation": (34101, 2, (8, 0), (), "BillingInformation", None),
2733                 "Body": (37120, 2, (8, 0), (), "Body", None),
2734                 "Categories": (36865, 2, (8, 0), (), "Categories", None),
2735                 "Class": (61450, 2, (3, 0), (), "Class", None),
2736                 "Companies": (34107, 2, (8, 0), (), "Companies", None),
2737                 "ConversationIndex": (113, 2, (8, 0), (), "ConversationIndex", None),
2738                 "ConversationTopic": (112, 2, (8, 0), (), "ConversationTopic", None),
2739                 "CreationTime": (12295, 2, (7, 0), (), "CreationTime", None),
2740                 "EntryID": (61470, 2, (8, 0), (), "EntryID", None),
2741                 # Method 'FormDescription' returns object of type 'FormDescription'
2742                 "FormDescription": (61589, 2, (9, 0), (), "FormDescription", '{00063046-0000-0000-C000-000000000046}'),
2743                 # Method 'GetInspector' returns object of type '_Inspector'
2744                 "GetInspector": (61502, 2, (9, 0), (), "GetInspector", '{00063005-0000-0000-C000-000000000046}'),
2745                 "Importance": (23, 2, (3, 0), (), "Importance", None),
2746                 "LastModificationTime": (12296, 2, (7, 0), (), "LastModificationTime", None),
2747                 # Method 'Links' returns object of type 'Links'
2748                 "Links": (62469, 2, (9, 0), (), "Links", '{0006308A-0000-0000-C000-000000000046}'),
2749                 "MAPIOBJECT": (61696, 2, (13, 0), (), "MAPIOBJECT", None),
2750                 "MessageClass": (26, 2, (8, 0), (), "MessageClass", None),
2751                 "Mileage": (34100, 2, (8, 0), (), "Mileage", None),
2752                 "NoAging": (34062, 2, (11, 0), (), "NoAging", None),
2753                 "OutlookInternalVersion": (34130, 2, (3, 0), (), "OutlookInternalVersion", None),
2754                 "OutlookVersion": (34132, 2, (8, 0), (), "OutlookVersion", None),
2755                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
2756                 "Saved": (61603, 2, (11, 0), (), "Saved", None),
2757                 "Sensitivity": (54, 2, (3, 0), (), "Sensitivity", None),
2758                 # Method 'Session' returns object of type '_NameSpace'
2759                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
2760                 "Size": (3592, 2, (3, 0), (), "Size", None),
2761                 "Subject": (55, 2, (8, 0), (), "Subject", None),
2762                 "UnRead": (61468, 2, (11, 0), (), "UnRead", None),
2763                 # Method 'UserProperties' returns object of type 'UserProperties'
2764                 "UserProperties": (63510, 2, (9, 0), (), "UserProperties", '{0006303D-0000-0000-C000-000000000046}'),
2765         }
2766         _prop_map_put_ = {
2767                 "BillingInformation": ((34101, LCID, 4, 0),()),
2768                 "Body": ((37120, LCID, 4, 0),()),
2769                 "Categories": ((36865, LCID, 4, 0),()),
2770                 "Companies": ((34107, LCID, 4, 0),()),
2771                 "Importance": ((23, LCID, 4, 0),()),
2772                 "MessageClass": ((26, LCID, 4, 0),()),
2773                 "Mileage": ((34100, LCID, 4, 0),()),
2774                 "NoAging": ((34062, LCID, 4, 0),()),
2775                 "Sensitivity": ((54, LCID, 4, 0),()),
2776                 "Subject": ((55, LCID, 4, 0),()),
2777                 "UnRead": ((61468, LCID, 4, 0),()),
2778         }
2779 
2780 class _Explorer(DispatchBaseClass):
2781         CLSID = IID('{00063003-0000-0000-C000-000000000046}')
2782         coclass_clsid = IID('{00063050-0000-0000-C000-000000000046}')
2783 
2784         def Activate(self):
2785                 return self._oleobj_.InvokeTypes(8467, LCID, 1, (24, 0), (),)
2786 
2787         def Close(self):
2788                 return self._oleobj_.InvokeTypes(8451, LCID, 1, (24, 0), (),)
2789 
2790         def Display(self):
2791                 return self._oleobj_.InvokeTypes(8452, LCID, 1, (24, 0), (),)
2792 
2793         def IsPaneVisible(self, Pane=defaultNamedNotOptArg):
2794                 return self._oleobj_.InvokeTypes(8707, LCID, 1, (11, 0), ((3, 1),),Pane)
2795 
2796         def ShowPane(self, Pane=defaultNamedNotOptArg, Visible=defaultNamedNotOptArg):
2797                 return self._oleobj_.InvokeTypes(8708, LCID, 1, (24, 0), ((3, 1), (11, 1)),Pane, Visible)
2798 
2799         _prop_map_get_ = {
2800                 # Method 'Application' returns object of type '_Application'
2801                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
2802                 "Caption": (8465, 2, (8, 0), (), "Caption", None),
2803                 "Class": (61450, 2, (3, 0), (), "Class", None),
2804                 # Method 'CommandBars' returns object of type 'CommandBars'
2805                 "CommandBars": (8448, 2, (13, 0), (), "CommandBars", '{55F88893-7708-11D1-ACEB-006008961DA5}'),
2806                 # Method 'CurrentFolder' returns object of type 'MAPIFolder'
2807                 "CurrentFolder": (8449, 2, (9, 0), (), "CurrentFolder", '{00063006-0000-0000-C000-000000000046}'),
2808                 "CurrentView": (8704, 2, (12, 0), (), "CurrentView", None),
2809                 "Height": (8468, 2, (3, 0), (), "Height", None),
2810                 "Left": (8469, 2, (3, 0), (), "Left", None),
2811                 # Method 'Panes' returns object of type 'Panes'
2812                 "Panes": (8705, 2, (9, 0), (), "Panes", '{00063009-0000-0000-C000-000000000046}'),
2813                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
2814                 # Method 'Selection' returns object of type 'Selection'
2815                 "Selection": (8706, 2, (9, 0), (), "Selection", '{00063087-0000-0000-C000-000000000046}'),
2816                 # Method 'Session' returns object of type '_NameSpace'
2817                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
2818                 "Top": (8470, 2, (3, 0), (), "Top", None),
2819                 "Views": (12553, 2, (9, 0), (), "Views", None),
2820                 "Width": (8471, 2, (3, 0), (), "Width", None),
2821                 "WindowState": (8466, 2, (3, 0), (), "WindowState", None),
2822         }
2823         _prop_map_put_ = {
2824                 "CurrentFolder": ((8449, LCID, 8, 0),()),
2825                 "CurrentView": ((8704, LCID, 4, 0),()),
2826                 "Height": ((8468, LCID, 4, 0),()),
2827                 "Left": ((8469, LCID, 4, 0),()),
2828                 "Top": ((8470, LCID, 4, 0),()),
2829                 "Width": ((8471, LCID, 4, 0),()),
2830                 "WindowState": ((8466, LCID, 4, 0),()),
2831         }
2832 
2833 class _Explorers(DispatchBaseClass):
2834         CLSID = IID('{0006300A-0000-0000-C000-000000000046}')
2835         coclass_clsid = IID('{00063053-0000-0000-C000-000000000046}')
2836 
2837         # Result is of type _Explorer
2838         def Add(self, Folder=defaultNamedNotOptArg, DisplayMode=defaultNamedNotOptArg):
2839                 ret = self._oleobj_.InvokeTypes(95, LCID, 1, (9, 0), ((12, 1), (3, 17)),Folder, DisplayMode)
2840                 if ret is not None:
2841                         ret = Dispatch(ret, 'Add', '{00063003-0000-0000-C000-000000000046}', UnicodeToString=0)
2842                 return ret
2843 
2844         # Result is of type Explorer
2845         def Item(self, Index=defaultNamedNotOptArg):
2846                 ret = self._oleobj_.InvokeTypes(81, LCID, 1, (13, 0), ((12, 1),),Index)
2847                 if ret is not None:
2848                         # See if this IUnknown is really an IDispatch
2849                         try:
2850                                 ret = ret.QueryInterface(pythoncom.IID_IDispatch)
2851                         except pythoncom.error:
2852                                 return ret
2853                         ret = Dispatch(ret, 'Item', '{00063050-0000-0000-C000-000000000046}', UnicodeToString=0)
2854                 return ret
2855 
2856         _prop_map_get_ = {
2857                 # Method 'Application' returns object of type '_Application'
2858                 "Application": (61440, 2, (9, 0), (), "Application", '{00063001-0000-0000-C000-000000000046}'),
2859                 "Class": (61450, 2, (3, 0), (), "Class", None),
2860                 "Count": (80, 2, (3, 0), (), "Count", None),
2861                 "Parent": (61441, 2, (9, 0), (), "Parent", None),
2862                 # Method 'Session' returns object of type '_NameSpace'
2863                 "Session": (61451, 2, (9, 0), (), "Session", '{00063002-0000-0000-C000-000000000046}'),
2864         }
2865         _prop_map_put_ = {
2866         }
2867         #This class has Item property/method which may take args - allow indexed access
2868         def __getitem__(self, item):
2869                 return self._get_good_object_(self._oleobj_.Invoke(*(81, LCID, 1, 1, item)), "Item")
2870         #This class has Count() property - allow len(ob) to provide this
2871         def __len__(self):
2872                 return self._ApplyTypes_(*(80, 2, (3, 0), (), "Count", None))
2873         #This class has a __len__ - this is needed so 'if object:' always returns TRUE.
2874         def __nonzero__(self):
2875                 return True
2876 
2877 class _Folders(DispatchBaseClass):
2878         CLSID = IID('{00063040-0000-0000-C000-000000000046}')
2879         coclass_clsid = IID('{00063051-0000-0000-C000-000000000046}')
2880 
2881         # Result is of type MAPIFolder
2882         def Add(self, Name=defaultNamedNotOptArg, Type=defaultNamedOptArg):
2883                 ret = self._oleobj_.InvokeTypes(95, LCID, 1, (9, 0), ((8, 1), (12, 17)),Name, Type)
2884                 if ret is not None:
2885                         ret = Dispatch(ret, 'Add', '{00063006-0000-0000-C000-000000000046}', UnicodeToString=0)
2886                 return ret
2887 
2888         # Result is of type MAPIFolder
2889         def GetFirst(self):
2890                 ret = self._oleobj_.InvokeTypes(86, LCID, 1, (9, 0), (),)
2891                 if ret is not None:
2892                         ret = Dispatch(ret, 'GetFirst', '{00063006-0000-0000-C000-000000000046}', UnicodeToString=0)
2893                 return ret
2894 
2895         # Result is of type MAPIFolder
2896         def GetLast(self):
2897                 ret = self._oleobj_.InvokeTypes(88, LCID, 1, (9, 0), (),)
2898                 if ret is not None:
2899                         ret = Dispatch(ret, 'GetLast', '{00063006-0000-0000-C000-000000000046}', UnicodeToString=0)
2900                 return ret
2901 
2902         # Result is of type MAPIFolder
2903         def GetNext(self):
2904                 ret = self._oleobj_.InvokeTypes(87, LCID, 1, (9, 0), (),)
2905                 if ret is not None:
2906                         ret = Dispatch(ret, 'GetNext', '{00063006-0000-0000-C000-000000000046}', UnicodeToString=0)
2907                 return ret
2908 
2909         # Result is of type MAPIFolder
2910         def GetPrevious(self):
2911                 ret = self._oleobj_.InvokeTypes(89, LCID, 1, (9, 0), (),)
2912                 if