0 out of 1 rated this helpful - Rate this topic

GetSidSubAuthorityCount function

Applies to: desktop apps only

The GetSidSubAuthorityCount function returns a pointer to the member in a security identifier (SID) structure that contains the subauthority count.

Syntax

PUCHAR WINAPI GetSidSubAuthorityCount(
  __in  PSID pSid
);

Parameters

pSid [in]

A pointer to the SID structure from which a pointer to the subauthority count is returned.

This function does not handle SID structures that are not valid. Call the IsValidSid function to verify that the SID structure is valid before you call this function.

Return value

If the function succeeds, the return value is a pointer to the subauthority count for the specified SID structure.

If the function fails, the return value is undefined. The function fails if the specified SID structure is not valid. To get extended error information, call GetLastError.

Remarks

The SID structure specified in pSid uses a 32-bit value. For applications that require longer RID values, use CreateWellKnownSid and related functions.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Winbase.h (include Windows.h)

Library

Advapi32.lib

DLL

Advapi32.dll

See also

Access Control Overview
Basic Access Control Functions
CreateWellKnownSid
GetLengthSid
GetSidIdentifierAuthority
GetSidLengthRequired
GetSidSubAuthority
IsValidSid
SID

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ