PageRenderTime 46ms CodeModel.GetById 17ms RepoModel.GetById 1ms 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. #pragma once
  21. //
  22. // FUNCTION: AutomatePowerPointByCOMAPI(LPVOID)
  23. //
  24. // PURPOSE: Automate Microsoft PowerPoint using C++ and the COM APIs.
  25. //
  26. // PARAMETERS:
  27. // * lpParam - The thread data passed to the function using the
  28. // lpParameter parameter when creating a thread.
  29. // (http://msdn.microsoft.com/en-us/library/ms686736.aspx)
  30. //
  31. // RETURN VALUE: The return value indicates the success or failure of the
  32. // function.
  33. //
  34. DWORD WINAPI AutomatePowerPointByCOMAPI(LPVOID lpParam);