Fetches the IObjectContext interface for the current thread.
function GetObjectContext: IObjectContext;
IObjectContext GetObjectContext();
When a COM object is created as part of the MTS environment or of a COM+ package (that is, a transactional object), a corresponding context object is also created. This context object exists for the entire lifetime of its transactional object, across one or more reactivation cycles. The object context keeps track of the object during deactivation. Call GetObjectContext to obtain an IObjectContext interface pointer for the context object associated with the current thread.
Pass a pointer that receives the IObjectContext interface pointer as ppInstanceContext.
GetObjectContext returns S_OK if it returns a pointer to the context object. Otherwise, it returns an error code.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|