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 FALSE
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_ATTACH "Unable to attach to Microsoft Outlook.\nPlease check if Outlook is installed, open, and correctly configured."
00080 #define ERR_OUTLOOK_LOGOFF "Outlook Error: unable to log off."
00081 #define ERR_OUTLOOK_CLEANUP "Outlook Error cleaning up."
00082 #define ERR_OUTLOOK_RELEASE_COMOBJECTS "Error releasing COM pointers."
00083 #define ERR_OUTLOOK_FOLDER_ASSIGN "Unable to initialize Outlook Folder."
00084 #define ERR_OUTLOOK_ITEM_ASSIGN "Unable to initialize Outlook Item."
00085 #define ERR_OUTLOOK_SAFEITEM "Unable to initialize Redemption safe item."
00086 #define ERR_OUTLOOK_MAPIUTILS "Error accessing Redemption.MAPIUtils object"
00087 #define ERR_OUTLOOK_MAPIUTILS_BODY "Could not get 'body' value from Redemption.MAPIUtils"
00088 #define ERR_OUTLOOK_RDOSESSION "Error accessing Redemption.RDOSession object"
00089 #define ERR_OUTLOOK_RDOSESSION_ADDRESS "Error retrieving address from Redemption.RDOSession AddressList"
00090 #define ERR_OUTLOOK_CONTACT_NOT_SET "ClientContact not correctly initialized"
00091 #define ERR_OUTLOOK_APPOINTMENT_NOT_SET "ClientAppointment not correctly initialized"
00092 #define ERR_OUTLOOK_TASK_NOT_SET "ClientTask not correctly initialized"
00093 #define ERR_OUTLOOK_NOTE_NOT_SET "ClientNote not correctly initialized"
00094 #define ERR_OUTLOOK_MAIL_NOT_SET "ClientMail not correctly initialized"
00095 #define ERR_OUTLOOK_NOT_LOGGED "Not yet logged on Outlook application."
00096 #define ERR_OUTLOOK_GET_PROFILENAME "Could not retrieve name associated to current Outlook profile."
00097 #define ERR_OUTLOOK_BAD_ITEM "Item #%d in folder \"%ls\" is not a %ls item. Please check if Outlook is working properly!"
00098 #define ERR_OUTLOOK_BAD_ITEM_MSG "Outlook is not responding correctly. Please reboot your machine and retry."
00099
00100
00101 #define ERR_OUTLOOK_DEFFOLDER_NOT_FOUND "Could not find default %ls folder."
00102 #define ERR_OUTLOOK_IDFOLDER_NOT_FOUND "Could not find folder: ID = %ls."
00103 #define ERR_OUTLOOK_SUBFOLDER_NOT_FOUND "Subfolder not found (index %d) inside folder %ls."
00104 #define ERR_OUTLOOK_SUBFOLDER_NAME "Subfolder not found: %ls inside folder %ls."
00105 #define ERR_OUTLOOK_SUBFOLDER_CREATE "Could not create subfolder %ls of type %ls inside folder %ls: type mismatch."
00106 #define ERR_OUTLOOK_SUBFOLDER_COUNT "Error retrieving the number of Subfolders from folder %ls."
00107 #define ERR_OUTLOOK_NO_ROOTFOLDER "Could not find any root folder: please create at least one Outlook data file."
00108 #define ERR_OUTLOOK_ROOTFOLDER_NAME "Folder not found: '%ls' under root folder."
00109 #define ERR_OUTLOOK_ROOTFOLDER_NOT_FOUND "Folder not found (index %d) under root folder."
00110
00111 #define ERR_OUTLOOK_ITEM_NOT_FOUND "Item not found (index %d) inside folder %ls."
00112 #define ERR_OUTLOOK_ITEM_CREATE "Could not create item (index %d) inside folder %ls."
00113 #define ERR_OUTLOOK_ITEM_SAVE "Could not save %ls item."
00114 #define ERR_OUTLOOK_ITEM_DELETE "Could not delete %ls item: %ls."
00115 #define ERR_OUTLOOK_IDITEM_NOT_FOUND "Could not find item: ID = %ls."
00116 #define ERR_OUTLOOK_ITEMS_COUNT "Error retrieving the number of Items from folder %ls."
00117
00118 #define ERR_OUTLOOK_INVALID_VERSION "Warning: Outlook version not supported: %ls"
00119 #define ERR_OUTLOOK_BAD_FOLDER_TYPE "Selected folder is not a %ls folder."
00120 #define ERR_OUTLOOK_BAD_ITEMTYPE "Invalid item type: %ls."
00121 #define ERR_OUTLOOK_BAD_OLTYPE "Invalid Outlook item type: %d."
00122 #define ERR_OUTLOOK_BAD_PATH "Invalid Folder path: %ls."
00123 #define ERR_OUTLOOK_PATH_TYPE_MISMATCH "Folder %ls is not a %ls folder: type mismatch."
00124
00125 #define ERR_OUTLOOK_PROP_MAP "Error creating %ls propertyMap - stopped at property #%d."
00126 #define ERR_OUTLOOK_PROP_VALUE "Error retrieving %ls item property: %ls."
00127 #define ERR_OUTLOOK_PROP_VALUE_SET "Error setting property %ls = %ls for item %ls."
00128 #define ERR_OUTLOOK_PROP_NOT_FOUND "Property '%ls' not found for item %ls."
00129 #define ERR_OUTLOOK_PROP_VALUE_REQUIRED "Property '%ls' cannot be empty for %ls."
00130 #define ERR_OUTLOOK_REC_PROP_NOT_FOUND "Recurrence property '%ls' not found."
00131
00132 #define ERR_OUTLOOK_REC_SAVE "Error inserting recurrence property '%ls' into Outlook."
00133 #define ERR_OUTLOOK_REC_NOT_SET "Could not %ls recurrence pattern: recurrence not yet set."
00134 #define ERR_OUTLOOK_EXC_PROP_VALUE "Error retrieving appointment exception property: %ls."
00135 #define ERR_OUTLOOK_CLEAR_REC "Clould not clear the recurrence pattern of %ls item \"%ls\""
00136
00137 #define ERR_OUTLOOK_EXAPP_INIT "Error getting appointment item pointer from appointment exception."
00138 #define ERR_OUTLOOK_EXAPP_SAVE "Error saving the occurrence of appointment exception."
00139 #define ERR_OUTLOOK_EXAPP_DELETE "Error deleting the occurrence of appointment exception."
00140 #define ERR_OUTLOOK_EXAPP_PROP_SET "Error setting appointment exception property \"%ls\"."
00141
00142 #define ERR_OUTLOOK_EXCEPTION "Outlook Exception. - %s"
00143 #define ERR_OUTLOOK_FATAL_EXCEPTION "Outlook Fatal Exception! - %s"
00144 #define ERR_COM_POINTER "COM Pointer Error. Code = %08lx: %ls"
00145
00146
00147 #define INFO_OUTLOOK_OPENED "Outlook session opened successfully! Using: %ls."
00148 #define INFO_OUTLOOK_CLOSED "Outlook session closed successfully."
00149 #define INFO_OUTLOOK_REMINDER_RESET "Cannot save reminder time for task NOT in the default folder! Reminder has been reset on item '%ls'."
00150 #define DBG_OUTLOOK_FOLDER_NOT_SELECTED "Folder not correctly selected."
00151 #define DBG_OUTLOOK_DLIST_ITEM "Found a Distribution_list item in %ls folder \"%ls\" (index #%d) -> Item ignored."
00152 #define DBG_OUTLOOK_BAD_NOTE_ITEM "Found an item in notes folder \"%ls\" which is not a text note (index #%d) -> Item ignored."
00153 #define DBG_OUTLOOK_NOT_LOGGED "No Logoff: %ls (COM error %08lx)"
00154
00155
00156 #define WMSG_BOX_NO_DATA_ITEM L"Warning: " WPROGRAM_NAME L" detected a lot of deleted %ls data.\nIf this is not correct, please press no, shutdown outlook, and try again. If this message appears incorrectly again, contact support.\nIf you press yes, a large portion of your %ls data will be deleted on the server.\n\nContinue Sync?"
00157 #define ERR_NO_DATA_ITEM PROGRAM_NAME" detected mass delete of %ls data. Verifying with user."
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170 #define outlookNamespace no_namespace
00171 #define redemptionNamespace rename_namespace("Redemption")
00172
00173
00175 #import "libid:2DF8D04C-5BFA-101B-BDE5-00AA0044DE52" outlookNamespace \
00176 rename("DocumentProperties", "OlDocumentProperties") \
00177 rename("RGB", "OlRGB")
00178
00179
00180 #import "libid:00062FFF-0000-0000-C000-000000000046" outlookNamespace \
00181 rename("CopyFile", "OlCopyFile") \
00182 rename("Folder", "FunambolFolder")
00183
00185 #import "libid:2D5E2D34-BED5-4B9F-9793-A31E26E6806E" redemptionNamespace
00186
00187
00190 #endif