Platform SDK: Logon Authentication

Using DeleteSecurityContext

The DeleteSecurityContext function deletes security contexts.

When performing a handshake, if the first call to AcceptSecurityContext or InitializeSecurityContext fails, no context handle is created and the application does not call DeleteSecurityContext. If a subsequent call to one of these functions fails, the application owns a context handle and must release it by calling DeleteSecurityContext.