all groups > dotnet sdk > december 2004 >
You're in the

dotnet sdk

group:

Is this the correct way to get a SID under .NET?


Is this the correct way to get a SID under .NET? David Thielen
12/13/2004 1:31:04 PM
dotnet sdk:
Hi;

There is an article at http://www.codeproject.com/csharp/getusersid.asp that
provides code to return the SID of the current user. Is this the best way to
do this?

--
RE: Is this the correct way to get a SID under .NET? v-phuang NO[at]SPAM online.microsoft.com (
12/14/2004 5:29:27 AM
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

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