2
0

WWCOMUtil.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /******************************************************************************
  19. *
  20. * NAME
  21. * $Archive: /Commando/Code/wwlib/WWCOMUtil.h $
  22. *
  23. * DESCRIPTION
  24. * COM utility functions and macros
  25. *
  26. * PROGRAMMER
  27. * Denzil E. Long, Jr.
  28. * $Author: Denzil_l $
  29. *
  30. * VERSION INFO
  31. * $Revision: 3 $
  32. * $Modtime: 8/02/01 3:00p $
  33. *
  34. ******************************************************************************/
  35. #ifndef __WWCOMUTIL_H__
  36. #define __WWCOMUTIL_H__
  37. #include <oaidl.h>
  38. //! Invoke PropertyGet on IDispatch interface.
  39. HRESULT STDMETHODCALLTYPE Dispatch_GetProperty(IDispatch* object,
  40. const OLECHAR* propName, VARIANT* result);
  41. //! Invoke PropertyPut on IDispatch interface.
  42. HRESULT STDMETHODCALLTYPE Dispatch_PutProperty(IDispatch* object,
  43. const OLECHAR* propName, VARIANT* propValue);
  44. //! Invoke Method on IDispatch interface.
  45. HRESULT STDMETHODCALLTYPE Dispatch_InvokeMethod(IDispatch* object,
  46. const OLECHAR* methodName, DISPPARAMS* params, VARIANT* result);
  47. //! Register COM in-process DLL server
  48. bool RegisterCOMServer(const char* dllName);
  49. //! Unregister COM in-process DLL server
  50. bool UnregisterCOMServer(const char* dllName);
  51. #endif // __WWCOMUTIL_H__