协能can协议
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.

IUnknown.h 556B

123456789101112131415161718192021222324
  1. /**
  2. * @content:IUnknown接口定义头文件
  3. * @time:2016-8-23
  4. * @author:Mr_zhu
  5. * @version: V1.0
  6. * @describe:
  7. * 1#2016-8-23#V1.0#首次生成
  8. */
  9. #ifndef INCLUDE_IUNKNOWN_H_
  10. #define INCLUDE_IUNKNOWN_H_
  11. #include "Type.h"
  12. interface IUnknown{
  13. virtual HRESULT queryInterface(const IID& iid, void** ppv) = 0; //----查询接口
  14. virtual ULONG addRef() = 0; //----增加引用计数
  15. virtual ULONG release() = 0; //----释放接口
  16. virtual ULONG getVersion() = 0; //----获取组件版本
  17. virtual ~IUnknown(){};
  18. };
  19. #endif /* INCLUDE_IUNKNOWN_H_ */