Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

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 CtxtHandlestructure 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
Windows Embedded CE Windows CE 2.10 and later
Windows Mobile Smartphone 2002 and later

See Also