INSSUserAuthentication::GetAuthenticationResult

The INSSAuthenticationContext::GetAuthenticationResult method is called to retrieve the results of the authentication.

Syntax

HRESULT GetAuthenticationResult (
NS_AUTH_RESULT  *pResult
);

Parameters

[out] pResult

Specifies a pointer to the results of the authentication. Valid results include:

Results Description
NS_AUTH_SUCCESS Authentication is complete and the client was authenticated.
NS_AUTH_DENIED Authentication is complete and the client could not be authenticated.
NS_AUTH_CONTINUE More data is needed to complete authentication.
NS_AUTH_ERROR An error occurred during authentication.
NS_AUTH_PENDING Authentication is in progress.

Return Values

This method should return S_OK upon successful completion, or an HRESULT error value.

Remarks

The following sample code demonstrates a skeletal implementation of this method:

HRESULT CUserAuthentication::GetAuthenticationResult(
            NS_AUTH_RESULT *pResult )
{
  //
  // Set the results of the authentication.
  //
  return( S_OK ); 
}

See Also

INSSUserAuthentication::GetUserId

© 1996-1998 Microsoft Corporation. All rights reserved.