Returns the user primary token.
This method takes no parameters.
A HANDLE that represents the primary token for the user; otherwise, NULL.
IHttpUser implementers are responsible for resource management with this data; therefore, IHttpUser clients must not call CloseHandle on the returned handle when this data is no longer needed. Furthermore, clients must not change the state of the memory referenced by this handle, because an access violation will be thrown or the data will become invalid.
The following code example demonstrates how to create an HTTP module that clears the response headers and body and then returns user information to the client as an XML document.