[Win32utils-devel] Some more win32-security: SID.create
phasis at gmail.com
Fri Jul 11 00:27:08 EDT 2008
2008/7/11 Daniel Berger <djberg96 at gmail.com>:
>> That is just ruby version of the following code:
>> long j;
>> for( j = 2; j <= lcAuths+1; j++)
>> DWORD dwValue = (DWORD)atol(pAuths[j]);
>> PDWORD pdwSubAuth = GetSidSubAuthority( pLocalSid, (j-2));
>> *pdwSubAuth = dwValue;
>> Why do you think that did nothing?
> I guess I misread it. Nevermind. :)
> I did remove the [0,1,2,3,5] loop, though.
> I do need some help with testing please. I've added some more tests in
> CVS, but I wasn't sure what a good way was to test SID.create with
> subauthorities. Any suggestions?
I guess SID.create test with Well-known SIDs is possible.
Refer to http://msdn.microsoft.com/en-us/library/aa379649(VS.85).aspx
More information about the win32utils-devel