1 Star 0 Fork 4.9K

taoguan / docs

forked from OpenHarmony / docs 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
IUnknown.md 3.23 KB
Copy Edit Raw Blame History
wenjun authored 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/taoguan/docs.git
git@gitee.com:taoguan/docs.git
taoguan
docs
docs
master

Search