Compartir a través de


CCscSearchApiInterface::AddRef method

Increments the reference count for a CCscSearchApiInterface object.

Syntax

LONG AddRef();

Parameters

This method has no parameters.

Return value

Type: LONG

An integer that specifies the new reference count; must be greater than 1. This value is intended to be used for diagnostic or testing purposes only.

Remarks

The purpose of this method is similar to that of IUnknown::AddRef. This method should be called once for every new copy of a pointer to the CCscSearchApiInterface object that is created.

Requirements

Minimum supported client

Windows Vista, Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Cscsearchapiif.hxx

See also

CCscSearchApiInterface

CscSearchApiGetInterface

CCscSearchApiInterface::DelRef