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

  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.