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