Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deletes a security context.
Syntax
KspDeleteContextFn Kspdeletecontextfn;
NTSTATUS Kspdeletecontextfn(
  [in] LSA_SEC_HANDLE ContextId,
       PLSA_SEC_HANDLE LsaContextId
)
{...}
Parameters
[in] ContextId
A handle to the security context to delete.
LsaContextId
Return value
If the function succeeds, return STATUS_SUCCESS.
If the function fails, return an NTSTATUS code that indicates the reason it failed. The following table lists a common reason for failure and the error code that the function should return.
| Return code | Description | 
|---|---|
| 
 | The handle is not valid. | 
Remarks
SSP/APs must implement the SpDeleteContext function; however, the actual name given to the implementation is up to the developer.
A pointer to the SpDeleteContext function is available in the SECPKG_FUNCTION_TABLE structure received from the SpLsaModeInitialize function.
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows XP [desktop apps only] | 
| Minimum supported server | Windows Server 2003 [desktop apps only] | 
| Target Platform | Windows | 
| Header | ntsecpkg.h |