Click to Rate and Give Feedback
MSDN
MSDN Library
Security
Authorization
 FreeSid Function

  Switch on low bandwidth view
FreeSid Function

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

Syntax

C++
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 clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll

See Also

Access Control Overview
Basic Access Control Functions
AllocateAndInitializeSid
SID

Send comments about this topic to Microsoft

Build date: 6/26/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker