AddSIDToBoundaryDescriptor function

Adds a security identifier (SID) to the specified boundary descriptor.

Syntax

BOOL AddSIDToBoundaryDescriptor(
  HANDLE *BoundaryDescriptor,
  PSID   RequiredSid
);

Parameters

BoundaryDescriptor

A handle to the boundary descriptor. The CreateBoundaryDescriptor function returns this handle.

RequiredSid

A pointer to a SID structure.

Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The AddSIDToBoundaryDescriptor function must be called once for each SID to be added to the boundary descriptor.

To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or later.

Requirements

   
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header namespaceapi.h (include Windows 7, Windows Server 2008 Windows Server 2008 R2, Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See Also

CreateBoundaryDescriptor

Object Namespaces