IComThreadEvents::OnThreadAssignApartment method (comsvcs.h)

Generated when an activity is assigned to an apartment thread.

Syntax

HRESULT OnThreadAssignApartment(
  COMSVCSEVENTINFO *pInfo,
  REFGUID          guidActivity,
  ULONG64          AptID
);

Parameters

pInfo

A pointer to a COMSVCSEVENTINFO structure.

guidActivity

The activity identifier for which the object is created.

AptID

The apartment identifier.

Return value

The user verifies the return values from this method.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

IComThreadEvents