CComApartment Class
TOC
Collapse the table of content
Expand the table of content

CComApartment Class

 

This class provides support for managing an appartment in a thread-pooled EXE module.

System_CAPS_importantImportant

This class and its members cannot be used in applications that execute in the Windows Runtime.


class CComApartment

Name

Description

CComApartment::Apartment

Marks the thread's starting address.

CComApartment::GetLockCount

Returns the thread's current lock count.

CComApartment::Lock

Increments the thread's lock count.

CComApartment::Unlock

Decrements the thread's lock count.

Name

Description

CComApartment::m_dwThreadID

Contains the thread's identifier.

CComApartment::m_hThread

Contains the thread's handle.

CComApartment::m_nLockCnt

Contains the thread's current lock count.

CComApartment is used by CComAutoThreadModule to manage an apartment in a thread-pooled EXE module. CComApartment provides methods for incrementing and decrementing the lock count on a thread.

Requirements

Header: atlbase.h

Show:
© 2016 Microsoft