The FreeSid function frees a security identifier (SID) previously allocated by using the AllocateAndInitializeSid function.
PVOID FreeSid(
PSID pSid // pointer to SID to free
);
This function does not return a value.
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in winbase.h.
Import Library: Use advapi32.lib.
Access Control Overview, Access Control Functions, AllocateAndInitializeSid, SID