Re: LookupAccountName

From: Yu Chen [MS] (
Date: 04/27/04

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" <> wrote in message
> 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