Platform SDK: Logon Authentication

DeleteSecurityContext

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

SECURITY_STATUS DeleteSecurityContext(
  PCtxtHandle phContext  // handle of the context to delete
);

Parameters

phContext
[in] Handle of the security context to delete.

Return Values

If the function succeeds, the return value is SEC_E_OK.

If the function fails, the return value can be the following error code.

Value Meaning
SEC_E_INVALID_HANDLE The handle passed to the function is invalid.

Remarks

The DeleteSecurityContext function terminates a security context. No further use of the context is permitted once it is terminated.

The prototype for this function can be found in Sspi.h.

Requirements

  Windows NT/2000: Requires Windows NT 3.51 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Sspi.h; include Security.h.
  Library: Use Secur32.lib.