Re: LogonUser with new credentials
From: karo schweizer (karo69_at_hotmail.com)
Date: 05/05/04
- Previous message: Jeff: "Re: CryptDecrypt Fails Occasionally"
- In reply to: Michael: "LogonUser with new credentials"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 5 May 2004 21:33:26 +0100
michael
check "Q165194". there you can find some sample code. i think a part of this
sample fit your problem.
karo
"Michael" <anonymous@discussions.microsoft.com> wrote in message
news:697a01c42ed0$d3d0ac80$a401280a@phx.gbl...
> Hi,
> I am using LogonUser with the
> LOGON32_LOGON_NEW_CREDENTIALS to logon to a domain from a
> workgroup computer. This seems to work perfectly fine.
> But I also need to get the SID for the new set of
> credentials. If I use GetTokenInformation() and pass it
> the handle I receive from calling LogonUser this will
> give me the original token, and not that of the logged on
> user. Is there a way to retrieve the SID of the logged
> on user?
>
> Thanks in advance,
> Michael
>
>
- Previous message: Jeff: "Re: CryptDecrypt Fails Occasionally"
- In reply to: Michael: "LogonUser with new credentials"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|