Source code of Windows XP (NT5)
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.

32 lines
807 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: comptr.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef COMPTR_H
  11. #define COMPTR_H
  12. #pragma warning(disable:4800)
  13. #include <comdef.h>
  14. #define CIP_RETYPEDEF(I) typedef I##Ptr I##CIP;
  15. #define CIP_TYPEDEF(I) _COM_SMARTPTR_TYPEDEF(I, IID_##I); CIP_RETYPEDEF(I);
  16. #define DEFINE_CIP(x)\
  17. CIP_TYPEDEF(x)
  18. #define DECLARE_CIP(x) DEFINE_CIP(x) x##CIP
  19. CIP_RETYPEDEF(IUnknown);
  20. CIP_RETYPEDEF(IDataObject);
  21. CIP_RETYPEDEF(IStorage);
  22. CIP_RETYPEDEF(IStream);
  23. CIP_RETYPEDEF(IPersistStorage);
  24. CIP_RETYPEDEF(IPersistStream);
  25. CIP_RETYPEDEF(IPersistStreamInit);
  26. CIP_RETYPEDEF(IDispatch);
  27. #endif // COMPTR_H