FreeSid function (securitybaseapi.h)

The FreeSid function frees a security identifier (SID) previously allocated by using the AllocateAndInitializeSid function.

Syntax

PVOID FreeSid(
  [in] PSID pSid
);

Parameters

[in] pSid

A pointer to the SID structure to free.

Return value

If the function succeeds, the function returns NULL.

If the function fails, it returns a pointer to the SID structure represented by the pSid parameter.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header securitybaseapi.h (include Windows.h)
Library Advapi32.lib
DLL Advapi32.dll

See also

Access Control Overview

AllocateAndInitializeSid

Basic Access Control Functions

SID