From: Yu Chen [MS] (yuchen_at_online.microsoft.com)
Date: Mon, 26 Apr 2004 22:18:34 -0700
You can use WNetAddConnection2() to make a connection to the server which
you are targeting LookupAccountName(), then call LookupAccountName() to look
up the SID.
-- Yu Chen [MS] This posting is provided "AS IS" with no warranties, and confers no rights. "Mike" <email@example.com> wrote in message news:firstname.lastname@example.org... > Hi All, > I am trying to use LookupAccountName() to get the SID of > a domain user. However, the machine that I call this > from is not a member of a domain, and the call fails > with "Access Denied". Is there any way of obtaining a > user's SID if I have the username and password if the > machine making the call is not on a domain? > > Thanks in advance, > Mike >