1 Star 0 Fork 4.9K

罗小黑 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
IUnknown.md 3.23 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

IUnknown

Overview

Related Modules:

Samgr

Description:

Defines the IUnknown class.

You need to inherit this structure when developing a subclass of the IUnknown interface.

Summary

Data Fields

Variable Name

Description

QueryInterface )(IUnknown *iUnknown, int version, void **target)

int(* 

AddRef )(IUnknown *iUnknown)

int(* 

Release )(IUnknown *iUnknown)

int(* 

Details

Field Documentation

AddRef

int(* IUnknown::AddRef) ([IUnknown](IUnknown.md) *iUnknown)

Description:

Adds the reference count.

QueryInterface

int(* IUnknown::QueryInterface) ([IUnknown](IUnknown.md) *iUnknown, int version, void **target)

Description:

Queries the subclass object of the IUnknown interface of a specified version (downcasting).

Release

int(* IUnknown::Release) ([IUnknown](IUnknown.md) *iUnknown)

Description:

Release the reference to an IUnknown interface.

1
https://gitee.com/lawguiren/docs.git
git@gitee.com:lawguiren/docs.git
lawguiren
docs
docs
master

搜索帮助