PageRenderTime 9ms CodeModel.GetById 3ms app.highlight 1ms RepoModel.GetById 4ms app.codeStats 0ms

/Visual Studio 2008/CppAutomatePowerPoint/Solution2.h

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