Navigating the Create New Appointment Sample Application Source Code

Navigating the Create New Appointment Sample Application Source Code

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

CreateAppointment.cpp contains the source code for the Create New Appointment sample application and is installed with the Exchange Server 2003 Software Development Kit (SDK) in the following directory: \Program Files\Exchange SDK\SDK\Samples\CreateAppointment\. The following table lists the functions relevant to creating a new appointment.

Create New Appointment sample application (CreateAppointment.cpp)

Function Description
main(int argc, char* argv[]) Functions as the main entry point for the application. This application creates a new appointment within the user's calendar.
ConnectToMailbox(bstr_t mailTo) Connects to the user's mailbox.
CreateAppointment(DATE startTime, DATE endTime,bstr_t subject,bstr_t location,bstr_t textbody, const IMailboxPtr& iMailbox) Creates an appointment in the user's mailbox Calendar folder.

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.