FreeSid function

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

Syntax

PVOID FreeSid(
  PSID pSid
);

Parameters

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

   
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