The AllocateAndInitializeSid function allocates and initializes a security identifier (SID) with up to eight subauthorities.
BOOL AllocateAndInitializeSid(
PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority, |
// pointer to identifier authority |
BYTE nSubAuthorityCount, |
// count of subauthorities |
DWORD dwSubAuthority0, |
// subauthority 0 |
DWORD dwSubAuthority1, |
// subauthority 1 |
DWORD dwSubAuthority2, |
// subauthority 2 |
DWORD dwSubAuthority3, |
// subauthority 3 |
DWORD dwSubAuthority4, |
// subauthority 4 |
DWORD dwSubAuthority5, |
// subauthority 5 |
DWORD dwSubAuthority6, |
// subauthority 6 |
DWORD dwSubAuthority7, |
// subauthority 7 |
PSID *pSid |
// pointer to pointer to SID |
); |
For example, a value of 3 indicates that the subauthority values specified by
the dwSubAuthority0, dwSubAuthority1, and dwSubAuthority2
parameters have meaningful values and to ignore the remainder.
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.
An SID allocated with the AllocateAndInitializeSid function must be freed by using the FreeSid function.
FreeSid, GetSidIdentifierAuthority, InitializeSid, SID_IDENTIFIER_AUTHORITY
file: /Techref/os/win/api/win32/func/src/f02.htm, 5KB, , updated: 2000/4/7 12:19, local time: 2024/8/22 22:59,
3.144.243.82:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://piclist.com/tecHREF/os/win/api/win32/func/src/f02.htm"> AllocateAndInitializeSid</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.