IWbemProviderInitSink::AddRef

[This is preliminary documentation and subject to change.]

The IWbemProviderInitSink::AddRef method increases the object's reference count by 1.

ULONG AddRef( );
 

Parameters

None.

Return Values

Returns the new reference count.

Remarks

When the object is created, its reference count is set to 1. Every time an application obtains an interface to the object or calls the AddRef method, the object's reference count is increased by 1. Use the Release method to decrease the object's reference count by 1.

This method is part of the IUnknown interface inherited by the object. For a complete discussion of IUnknown methods, see Using the IUnknown Interface.

For more information about this method, see the COM documentation in the Microsoft Platform SDK.

See Also

Using the IUnknown Interface