Microsoft Internet Security and Acceleration Server 2004 SDK

GetUserToken

The GetUserToken callback function is used to get an impersonation token of the authenticated user.

The GetUserToken callback function is declared as:

BOOL WINAPI * GetUserToken(
  struct _HTTP_FILTER_CONTEXT* pfc,
  HANDLE* phToken
);

Parameters

pfc
Pointer to the HTTP_FILTER_CONTEXT data structure that is associated with the current, active HTTP session. Pass the filter context in this parameter.
phToken
Pointer to the token handle.

Return Values

Returns TRUE if the function succeeded, or FALSE if the function failed.

Remarks

When you invoke GetUserToken you must call the CloseHandle function to prevent handle leaks.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Wpxhttpfilt.h.

See Also

Callback Functions