Platform SDK: Logon Authentication

FreeContextBuffer

The FreeContextBuffer function enables callers of security package functions to free a memory buffer allocated by the security package. For example, the InitializeSecurityContext function may allocate a buffer for returning the outbound context token.

SECURITY_STATUS FreeContextBuffer(
  PVOID pvContextBuffer  // buffer to free
);

Parameters

pvContextBuffer
[in] Pointer to memory allocated by the security package.

Return Values

If the function succeeds, the return value is SEC_E_OK.

If the function fails, the return value is a nonzero error code.

Remarks

The FreeContextBuffer function can free any memory allocated by a security package.

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.

See Also

InitializeSecurityContext