Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CComObjectNoLock Class
Collapse the table of content
Expand the table of content

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

Base

Your class, derived from CComObjectRoot or CComObjectRootEx, as well as from any other interface you want to support on the object.

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.

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.

Base

CComObjectNoLock

Header: atlcom.h

Show:
© 2015 Microsoft