Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding user SID using lookupaccountname 1

Status
Not open for further replies.

TimGoff

Technical User
Jul 16, 2002
166
GB
Hi,

I'm attempting to get a users SID using loopupaccountname. Would anyone know how to find it using the function please?

Public Declare Function LookupAccountName Lib "advapi32" _
Alias "LookupAccountNameA" _
(ByVal lpSystemName As String, _
ByVal lpAccountName As String, _
Sid As Byte, _
cbSid As Long, _
ByVal DomainName As String, _
cbDomainName As Long, _
peUse As Long) As Long
 
Thank Harleyquinn. I've had a look through that already - but still can't seem how to extract the SID value that I need..?
 
Brilliant, exactly what I was look for
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top