please dont rip this site Prev Next

AllocateAndInitializeSid info  Overview  Group

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

   );

Parameters

pIdentifierAuthority
Pointer to an SID_IDENTIFIER_AUTHORITY structure, giving the top-level identifier authority value to set in the SID.
nSubAuthorityCount
Specifies the number of subauthorities to place in the SID. This parameter also identifies how many of the subauthority parameters have meaningful values. This parameter must contain a value from 1 through 8.

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.

dwSubAuthority0 through dwSubAuthority7
Specify subauthority values to place in the SID.
pSid
Pointer to a variable that receives the pointer to the allocated and initialized SID structure.

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

An SID allocated with the AllocateAndInitializeSid function must be freed by using the FreeSid function.

See Also

FreeSid, GetSidIdentifierAuthority, InitializeSid, SID_IDENTIFIER_AUTHORITY


file: /Techref/os/win/api/win32/func/src/f02.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/11/16 23:24,
TOP NEW HELP FIND: 
3.144.4.177: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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://ecomorder.com/techref/os/win/api/win32/func/src/f02.htm"> AllocateAndInitializeSid</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .