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 )(IUnknowniUnknown, int version, void **target)

int( 

AddRef )(IUnknowniUnknown)

int( 

Release )(IUnknowniUnknown)

int( 

Details

Field Documentation

AddRef

  1. int(*IUnknown::AddRef)([IUnknown]($api-api-LinkIoT-IUnknown.md)*iUnknown)

Description:

Adds the reference count.

QueryInterface

  1. int(*IUnknown::QueryInterface)([IUnknown]($api-api-LinkIoT-IUnknown.md)*iUnknown,int version,void**target)

Description:

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

Release

  1. int(*IUnknown::Release)([IUnknown]($api-api-LinkIoT-IUnknown.md)*iUnknown)

Description:

Release the reference to an IUnknown interface.