Returns the trace activity identifier for the trace context.
This method takes no parameters.
A pointer to a constant GUID; otherwise, NULL.
The behavior of this method depends on implementation. Some implementations always return NULL, while others call the IHttpRequest::GetRawHttpRequest method on an internal IHttpRequest pointer and convert the returned HTTP_REQUEST pointer to a const GUID pointer.
Because some implementers return NULL, always verify that the returned LPCGUID is not NULL before you perform any operations on this data.
IHttpTraceContext implementers are responsible for memory management with this data; therefore, IHttpTraceContext implementers that use dynamic memory allocation must release or call delete on the LPCGUID pointer when it is no longer needed.
IHttpTraceContext implementers are responsible for memory management with this data; therefore, IHttpTraceContext clients must not release or call delete on the returned LPCGUID pointer when this data is no longer needed. Furthermore, clients must not cast this data to a pointer that is not a const or change the state of the memory referenced by this LPCGUID; otherwise, an access violation will be thrown or the data will become invalid.
For more information about how to create and deploy a native DLL module, see Walkthrough: Creating a Request-Level HTTP Module By Using Native Code.