00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef INCL_OUTLOOKDEFS
00037 #define INCL_OUTLOOKDEFS
00038
00044
00045 #define OL_APPLICATION L"Outlook.Application"
00046 #define OL_PROFILE L""
00047 #define OL_PASSWORD L""
00048 #define OL_SHOW_DIALOG true
00049 #define OL_NEW_SESSION false
00050 #define MAPI L"MAPI"
00051
00052
00053 #define USE_UTC TRUE
00054 #define USE_CHANGE_DAY TRUE
00055 #define REFERRED_MAX_DATE 949998.000000
00056 #define LIMIT_MAX_DATE 767011.000000
00059 // Redemption parameters
00060
00061 #define RED_SAFEMAIL "Redemption.SafeMailItem"
00062 #define RED_SAFEAPPOINTMENT "Redemption.SafeAppointmentItem"
00063 #define RED_SAFECONTACT "Redemption.SafeContactItem"
00064 #define RED_SAFETASK "Redemption.SafeTaskItem"
00065 #define RED_SAFENOTE "Redemption.SafeNoteItem"
00066
00067 #define OUTLOOK_2010 L"Outlook 2010"
00068 #define OUTLOOK_2007 L"Outlook 2007"
00069 #define OUTLOOK_2003 L"Outlook 2003"
00070 #define OUTLOOK_XP L"Outlook XP (2002)"
00071 #define OUTLOOK_2000 L"Outlook 2000"
00072 #define OUTLOOK_98 L"Outlook 98"
00073 #define OUTLOOK_97 L"Outlook 97"
00074
00075
00076
00077 #define ERR_OUTLOOK "Outlook Error."
00078 #define ERR_OUTLOOK_OPEN "Unable to instantiate Microsoft Outlook.\nPlease check if Outlook is installed and correctly configured."
00079 #define ERR_OUTLOOK_LOGOFF "Outlook Error: unable to log off."
00080 #define ERR_OUTLOOK_CLEANUP "Outlook Error cleaning up."
00081 #define ERR_OUTLOOK_RELEASE_COMOBJECTS "Error releasing COM pointers."
00082 #define ERR_OUTLOOK_FOLDER_ASSIGN "Unable to initialize Outlook Folder."
00083 #define ERR_OUTLOOK_ITEM_ASSIGN "Unable to initialize Outlook Item."
00084 #define ERR_OUTLOOK_SAFEITEM "Unable to initialize Redemption safe item."
00085 #define ERR_OUTLOOK_MAPIUTILS "Error accessing Redemption.MAPIUtils object"
00086 #define ERR_OUTLOOK_MAPIUTILS_BODY "Could not get 'body' value from Redemption.MAPIUtils"
00087 #define ERR_OUTLOOK_RDOSESSION "Error accessing Redemption.RDOSession object"
00088 #define ERR_OUTLOOK_RDOSESSION_ADDRESS "Error retrieving address from Redemption.RDOSession AddressList"
00089 #define ERR_OUTLOOK_CONTACT_NOT_SET "ClientContact not correctly initialized"
00090 #define ERR_OUTLOOK_APPOINTMENT_NOT_SET "ClientAppointment not correctly initialized"
00091 #define ERR_OUTLOOK_TASK_NOT_SET "ClientTask not correctly initialized"
00092 #define ERR_OUTLOOK_NOTE_NOT_SET "ClientNote not correctly initialized"
00093 #define ERR_OUTLOOK_MAIL_NOT_SET "ClientMail not correctly initialized"
00094 #define ERR_OUTLOOK_NOT_LOGGED "Not yet logged on Outlook application."
00095 #define ERR_OUTLOOK_GET_PROFILENAME "Could not retrieve name associated to current Outlook profile."
00096 #define ERR_OUTLOOK_BAD_ITEM "Item #%d in folder \"%ls\" is not a %ls item. Please check if Outlook is working properly!"
00097 #define ERR_OUTLOOK_BAD_ITEM_MSG "Outlook is not responding correctly. Please reboot your machine and retry."
00098
00099
00100 #define ERR_OUTLOOK_DEFFOLDER_NOT_FOUND "Could not find default %ls folder."
00101 #define ERR_OUTLOOK_IDFOLDER_NOT_FOUND "Could not find folder: ID = %ls."
00102 #define ERR_OUTLOOK_SUBFOLDER_NOT_FOUND "Subfolder not found (index %d) inside folder %ls."
00103 #define ERR_OUTLOOK_SUBFOLDER_NAME "Subfolder not found: %ls inside folder %ls."
00104 #define ERR_OUTLOOK_SUBFOLDER_CREATE "Could not create subfolder %ls of type %ls inside folder %ls: type mismatch."
00105 #define ERR_OUTLOOK_SUBFOLDER_COUNT "Error retrieving the number of Subfolders from folder %ls."
00106 #define ERR_OUTLOOK_NO_ROOTFOLDER "Could not find any root folder: please create at least one Outlook data file."
00107 #define ERR_OUTLOOK_ROOTFOLDER_NAME "Folder not found: '%ls' under root folder."
00108 #define ERR_OUTLOOK_ROOTFOLDER_NOT_FOUND "Folder not found (index %d) under root folder."
00109
00110 #define ERR_OUTLOOK_ITEM_NOT_FOUND "Item not found (index %d) inside folder %ls."
00111 #define ERR_OUTLOOK_ITEM_CREATE "Could not create item (index %d) inside folder %ls."
00112 #define ERR_OUTLOOK_ITEM_SAVE "Could not save %ls item."
00113 #define ERR_OUTLOOK_ITEM_DELETE "Could not delete %ls item: %ls."
00114 #define ERR_OUTLOOK_IDITEM_NOT_FOUND "Could not find item: ID = %ls."
00115 #define ERR_OUTLOOK_ITEMS_COUNT "Error retrieving the number of Items from folder %ls."
00116
00117 #define ERR_OUTLOOK_INVALID_VERSION "Warning: Outlook version not supported: %ls"
00118 #define ERR_OUTLOOK_BAD_FOLDER_TYPE "Selected folder is not a %ls folder."
00119 #define ERR_OUTLOOK_BAD_ITEMTYPE "Invalid item type: %ls."
00120 #define ERR_OUTLOOK_BAD_OLTYPE "Invalid Outlook item type: %d."
00121 #define ERR_OUTLOOK_BAD_PATH "Invalid Folder path: %ls."
00122 #define ERR_OUTLOOK_PATH_TYPE_MISMATCH "Folder %ls is not a %ls folder: type mismatch."
00123
00124 #define ERR_OUTLOOK_PROP_MAP "Error creating %ls propertyMap - stopped at property #%d."
00125 #define ERR_OUTLOOK_PROP_VALUE "Error retrieving %ls item property: %ls."
00126 #define ERR_OUTLOOK_PROP_VALUE_SET "Error setting property %ls = %ls for item %ls."
00127 #define ERR_OUTLOOK_PROP_NOT_FOUND "Property '%ls' not found for item %ls."
00128 #define ERR_OUTLOOK_PROP_VALUE_REQUIRED "Property '%ls' cannot be empty for %ls."
00129 #define ERR_OUTLOOK_REC_PROP_NOT_FOUND "Recurrence property '%ls' not found."
00130
00131 #define ERR_OUTLOOK_REC_SAVE "Could not save recurrence property '%ls': wrong format."
00132 #define ERR_OUTLOOK_REC_NOT_SET "Could not %ls recurrence pattern: recurrence not yet set."
00133 #define ERR_OUTLOOK_EXC_PROP_VALUE "Error retrieving appointment exception property: %ls."
00134 #define ERR_OUTLOOK_CLEAR_REC "Clould not clear the recurrence pattern of %ls item \"%ls\""
00135
00136 #define ERR_OUTLOOK_EXAPP_INIT "Error getting appointment item pointer from appointment exception."
00137 #define ERR_OUTLOOK_EXAPP_SAVE "Error saving the occurrence of appointment exception."
00138 #define ERR_OUTLOOK_EXAPP_DELETE "Error deleting the occurrence of appointment exception."
00139 #define ERR_OUTLOOK_EXAPP_PROP_SET "Error setting appointment exception property \"%ls\"."
00140
00141 #define ERR_OUTLOOK_EXCEPTION "Outlook Exception. - %s"
00142 #define ERR_OUTLOOK_FATAL_EXCEPTION "Outlook Fatal Exception! - %s"
00143 #define ERR_COM_POINTER "COM Pointer Error. Code = %08lx: %ls"
00144
00145
00146 #define INFO_OUTLOOK_OPENED "Outlook session opened successfully! Using: %ls."
00147 #define INFO_OUTLOOK_CLOSED "Outlook session closed successfully."
00148 #define INFO_OUTLOOK_REMINDER_RESET "Cannot save reminder time for task NOT in the default folder! Reminder has been reset on item '%ls'."
00149 #define DBG_OUTLOOK_FOLDER_NOT_SELECTED "Folder not correctly selected."
00150 #define DBG_OUTLOOK_DLIST_ITEM "Found a Distribution_list item in %ls folder \"%ls\" (index #%d) -> Item ignored."
00151 #define DBG_OUTLOOK_BAD_NOTE_ITEM "Found an item in notes folder \"%ls\" which is not a text note (index #%d) -> Item ignored."
00152 #define DBG_OUTLOOK_NOT_LOGGED "No Logoff: %ls (COM error %08lx)"
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168 #define outlookNamespace no_namespace
00169 #define redemptionNamespace rename_namespace("Redemption")
00170
00171
00173 #import "libid:2DF8D04C-5BFA-101B-BDE5-00AA0044DE52" outlookNamespace \
00174 rename("DocumentProperties", "OlDocumentProperties") \
00175 rename("RGB", "OlRGB")
00176
00177
00178 #import "libid:00062FFF-0000-0000-C000-000000000046" outlookNamespace \
00179 rename("CopyFile", "OlCopyFile") \
00180 rename("Folder", "FunambolFolder")
00181
00183 #import "libid:2D5E2D34-BED5-4B9F-9793-A31E26E6806E" redemptionNamespace
00184
00185
00188 #endif