Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Generated when an activity is assigned to an apartment thread.
Syntax
HRESULT OnThreadAssignApartment(
[in] COMSVCSEVENTINFO *pInfo,
[in] REFGUID guidActivity,
[in] ULONG64 AptID
);
Parameters
[in] pInfo
A pointer to a COMSVCSEVENTINFO structure.
[in] guidActivity
The activity identifier for which the object is created.
[in] AptID
The apartment identifier.
Return value
The user verifies the return values from this method.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | comsvcs.h |