UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:azroles.IAzApplication2.InitializeClientContextFromToken2 |
IAzApplication2::InitializeClientContextFromToken2 (azroles.h) |
Retrieves an IAzClientContext2 object pointer from the specified client token. |
|
security\iazapplication2_initializeclientcontextfromtoken2.htm |
security |
f77b5eb1-c121-4392-a317-7021059268ed |
12/05/2018 |
IAzApplication2 interface [Security],InitializeClientContextFromToken2 method, IAzApplication2.InitializeClientContextFromToken2, IAzApplication2::InitializeClientContextFromToken2, InitializeClientContextFromToken2, InitializeClientContextFromToken2 method [Security], InitializeClientContextFromToken2 method [Security],IAzApplication2 interface, azroles/IAzApplication2::InitializeClientContextFromToken2, security.iazapplication2_initializeclientcontextfromtoken2 |
azroles.h |
Windows |
Windows Vista [desktop apps only] |
Windows Server 2008, Windows Server 2003 with SP1 [desktop apps only] |
Azroles.lib |
Azroles.dll |
Windows |
Windows Server 2003 Administration Tools Pack on Windows XP |
19H1 |
|
|
|
|
|
|
The InitializeClientContextFromToken2 method retrieves an IAzClientContext2 object pointer from the specified client token.
Low byte of a handle to a token that specifies the client. If the values of both this parameter and the ulTokenHandleHighPart parameter are zero, the impersonation token of the caller's thread is used. If the thread does not have an impersonation token, the process token is used. The token must have been opened for TOKEN_QUERY, TOKEN_IMPERSONATE, or TOKEN_DUPLICATE access.
High byte of a handle to a token that specifies the client. If the values of both this parameter and the ulTokenHandleHighPart parameter are zero, the impersonation token of the caller's thread is used. If the thread does not have an impersonation token, the process token is used. The token must have been opened for TOKEN_QUERY, TOKEN_IMPERSONATE, or TOKEN_DUPLICATE access.
Reserved for future use.
A pointer to a pointer to the returned IAzClientContext2 object.
If the method succeeds, the method returns S_OK.
If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.