Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.2 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: comutil.h
  6. * Content: Defines COM helper functions for DPLAY8 project.
  7. *@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 06/07/00 rmt Created
  12. * 06/27/00 rmt Added abstraction for COM_Co(Un)Initialize
  13. *@@END_MSINTERNAL
  14. *
  15. ***************************************************************************/
  16. #ifndef DPNBUILD_NOCOMEMULATION
  17. HRESULT COM_Init();
  18. HRESULT COM_CoInitialize( void * pvParam );
  19. void COM_CoUninitialize();
  20. void COM_Free();
  21. STDAPI COM_CoCreateInstance( REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID riid, LPVOID *ppv, BOOL fWarnUser );
  22. #else
  23. #define COM_Init() S_OK
  24. #define COM_CoInitialize(x) CoInitializeEx(NULL, COINIT_MULTITHREADED)
  25. #define COM_CoUninitialize() CoUninitialize();
  26. #define COM_Free()
  27. #define COM_CoCreateInstance(rclsid, pUnkOuter, dwClsContext, riid, ppv, warnuser ) CoCreateInstance(rclsid, pUnkOuter, dwClsContext, riid, ppv)
  28. #endif // DPNBUILD_NOCOMEMULATION