|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| No
| Win32s
| No
| Import Library
| advapi32.lib
| Header File
| winbase.h
| Unicode
| No
| Platform Notes
| None
|
|
|
InitializeSid
The InitializeSid function initializes a SID structure. An SID is a security identifier.
BOOL InitializeSid(
PSID Sid,
| // address of SID to initialize
| PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
| // address of identifier authority
| BYTE nSubAuthorityCount
| // count of subauthorities
| );
|
|
Parameters
Sid
Points to a SID structure to be initialized.
pIdentifierAuthority
Points to a SID_IDENTIFIER_AUTHORITY structure to set in the SID structure.
nSubAuthorityCount
Specifies the number of subauthorities to set in the SID. Values of the subauthority must be set separately, as described in the
following Remarks section.
Return Values
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
Although the InitializeSid function sets the number of subauthorities for the SID, it does not set the
subauthority values. This must be done separately, using functions, such as GetSidSubAuthority.
An application can use the AllocateAndInitializeSid function to initialize a SID and set its subauthority values.
See Also
AllocateAndInitializeSid, GetLengthSid, GetSidIdentifierAuthority, GetSidLengthRequired, GetSidSubAuthority, GetSidSubAuthorityCount, IsValidSid, SID, SID_IDENTIFIER_AUTHORITY
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|