共用方式為


DeleteSecurityContext

A version of this page is also available for

Windows Embedded CE 6.0 R3

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

See Also

Reference

InitializeSecurityContext