Skip to content

Latest commit

 

History

History
117 lines (87 loc) · 2.85 KB

nf-ntifs-rtlinitializesid.md

File metadata and controls

117 lines (87 loc) · 2.85 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:ntifs.RtlInitializeSid
RtlInitializeSid function (ntifs.h)
The RtlInitializeSid routine initializes a security identifier (SID) structure.
ifsk\rtlinitializesid.htm
ifsk
04/16/2018
RtlInitializeSid function
RtlInitializeSid, RtlInitializeSid routine [Installable File System Drivers], ifsk.rtlinitializesid, ntifs/RtlInitializeSid, rtlref_fbcc1ed7-4929-415f-9644-b8d9521a5c1a.xml
ntifs.h
Ntifs.h
Universal
Windows 2000
NtosKrnl.lib
NtosKrnl.exe (kernel mode); Ntdll.dll (user mode)
< DISPATCH_LEVEL
Windows
RtlInitializeSid
ntifs/RtlInitializeSid
APIRef
kbSyntax
DllExport
NtosKrnl.exe
Ntdll.dll
RtlInitializeSid

RtlInitializeSid function

-description

The RtlInitializeSid routine initializes a security identifier (SID) structure.

-parameters

-param Sid [out]

Pointer to a caller-allocated SID structure to be initialized.

-param IdentifierAuthority [in]

Pointer to an SID_IDENTIFIER_AUTHORITY structure to set in the SID structure.

-param SubAuthorityCount [in]

Number of subauthorities to set in the SID. Subauthority values must be set separately, as described in the following Remarks section.

-returns

RtlInitializeSid returns one of the following:

Return code Description
STATUS_SUCCESS
The SID was successfully initialized.
STATUS_INVALID_PARAMETER
The specified SubAuthorityCount value is invalid.

-remarks

Although RtlInitializeSid sets the number of subauthorities for the SID, it does not set the subauthority values. This must be done separately by calling RtlSubAuthoritySid.

For more information about security and access control, see Windows security model for driver developers and the documentation on these topics in the Windows SDK.

-see-also

RtlSubAuthoritySid

SID

SID_IDENTIFIER_AUTHORITY