Share via


DeleteSecurityContext (Compact 2013)

3/28/2014

This function deletes local data structures associated with the specified security context.

Syntax

SECURITY_STATUS SEC_ENTRY DeleteSecurityContext( 
  PCtxtHandle phContext 
);

Parameters

  • phContext
    [in] Pointer to a CtxtHandle structure identifying the handle to the context to delete. For information on CtxtHandle, see SSPI Handles.

Return Value

Returns SEC_E_OK to indicate success. Upon failure, the function returns SEC_E_INVALID_HANDLE to indicate that the handle passed to the function is invalid.

Remarks

This function terminates a security context. No further use of the context is accepted.

Requirements

Header

security.h,
sspi.h

Library

secur32.lib

See Also

Reference

Authentication Services Functions
InitializeSecurityContext