Hi
Yes, in managed code, we use the DirectoryServices to get the User SID.
Or we have to use the unmanaged API via P/Invoke.
You may take a look at the link below.
http://groups.google.co.jp/groups?hl=zh-CN&lr=&selm=bQsusVx7DHA.3736%40cpmsf
tngxa07.phx.gbl
Best regards,
Perter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.