CComObjectRootEx::InternalRelease

 

Decrements the reference count of a nonaggregated object by 1.

Syntax

ULONG InternalRelease( );

Return Value

In both non-debug and debug builds, this function returns a value which may be useful for diagnostics or testing. The exact value returned depends on many factors such as the operating system used, and may, or may not, be the reference count.

Remarks

If the thread model is multithreaded, InterlockedDecrement is used to prevent more than one thread from changing the reference count at the same time.

Requirements

Header: atlcom.h

See Also

CComObjectRootEx Class
CComObjectRootEx::InternalAddRef
InterlockedDecrement