Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

FreeSid function

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

Syntax


PVOID WINAPI FreeSid(
  _In_ PSID pSid
);

Parameters

pSid [in]

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.

Examples

For an example that uses this function, see Creating a Security Descriptor for a New Object.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Advapi32.lib

DLL

Advapi32.dll

See also

Access Control Overview
Basic Access Control Functions
AllocateAndInitializeSid
SID

 

 

Community Additions

ADD
Show:
© 2015 Microsoft