/Visual Studio 2008/CppAutomatePowerPoint/Solution2.h
C Header | 37 lines | 2 code | 3 blank | 32 comment | 0 complexity | a833316d37d41713c10bf4e3a1ec08e3 MD5 | raw file
- /****************************** Module Header ******************************\
- * Module Name: Solution2.h
- * Project: CppAutomatePowerPoint
- * Copyright (c) Microsoft Corporation.
- *
- * The code in Solution2.h/cpp demontrates the use of C/C++ and the COM APIs
- * to automate PowerPoint. The raw automation is much more difficult, but it
- * is sometimes necessary to avoid the overhead with MFC, or problems with
- * #import. Basically, you work with such APIs as CoCreateInstance(), and COM
- * interfaces such as IDispatch and IUnknown.
- *
- * This source is subject to the Microsoft Public License.
- * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
- * All other rights reserved.
- *
- * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
- * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
- \***************************************************************************/
-
- #pragma once
-
-
- //
- // FUNCTION: AutomatePowerPointByCOMAPI(LPVOID)
- //
- // PURPOSE: Automate Microsoft PowerPoint using C++ and the COM APIs.
- //
- // PARAMETERS:
- // * lpParam - The thread data passed to the function using the
- // lpParameter parameter when creating a thread.
- // (http://msdn.microsoft.com/en-us/library/ms686736.aspx)
- //
- // RETURN VALUE: The return value indicates the success or failure of the
- // function.
- //
- DWORD WINAPI AutomatePowerPointByCOMAPI(LPVOID lpParam);