Share via


CComObjectNoLock Class

This class implements IUnknown for a nonaggregated object, but does not increment the module lock count in the constructor.

template< 
   class Base  
> 
class CComObjectNoLock : 
   public Base

Parameters

Members

Public Constructors

Name

Description

CComObjectNoLock::CComObjectNoLock

Constructor.

CComObjectNoLock::~CComObjectNoLock

The destructor.

Public Methods

Name

Description

CComObjectNoLock::AddRef

Increments the reference count on the object.

CComObjectNoLock::QueryInterface

Returns a pointer to the requested interface.

CComObjectNoLock::Release

Decrements the reference count on the object.

Remarks

CComObjectNoLock is similar to CComObject in that it implements IUnknown for a nonaggregated object; however, CComObjectNoLock does not increment the module lock count in the constructor.

ATL uses CComObjectNoLock internally for class factories. In general, you will not use this class directly.

Inheritance Hierarchy

Base

CComObjectNoLock

Requirements

Header: atlcom.h

See Also

Other Resources

ATL Class Overview