Smart Device Functions:
Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than advapi32, prefix the name with the module name and a period.
Public Declare Function GetLengthSid Lib "advapi32.dll"( _
If pSid points to an unamanged array of bytes containing a SID, this function determines the length of the SID (by the formula: 8 + 4 times the value of the second byte), which you need to know, for example, when copying the SID into a managed byte array.
Consider also the use of CopySid instead of Marshal.Copy below. MSDN isn't clear if that is necessary or not, but better safe than sorry.
Tips & Tricks:
Please add some!
public static byte GetSidFromString(string stringSid)
Alternative Managed API:
Do you know one? Please contribute it!
Copies a security identifier (SID) to a buffer.
12/3/2009 9:06:47 PM - 188.8.131.52
Please edit this page!
Do you have...