Re: LogonUser with new credentials

From: karo schweizer (karo69_at_hotmail.com)
Date: 05/05/04

  • Next message: Kelvin Yiu [MS]: "Re: certificate stores & tokens"
    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
    >
    >


  • Next message: Kelvin Yiu [MS]: "Re: certificate stores & tokens"

    Relevant Pages

    • Re: HMAC-MD5
      ... Hi Michael, ... >> other function that performs the HMAC. ... >> up with the HMAC function. ... >> Any sample code or a push in the right direction would be ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Printing without a document
      ... Michael C#, MCDBA ... >> There's a pretty good article in this PDF document, with sample code, ... >> code and explanations for adding headers and footers, page numbers, etc. ...
      (microsoft.public.dotnet.languages.vb)
    • Re: NSWindow -- Where To Put Content-Drawing Code?
      ... > Maybe you should ask before jumping to conclusions. ... > CurrencyConverter tutorial on Apple's Cocoa website before I even ... a truly enormous library of sample code, both on your hard drive as others ... Michael Ash ...
      (comp.sys.mac.programmer.help)
    • Problems with display in anjuta
      ... I tested anjuta and the editor show me my source ... Using SID. ... Michael ...
      (Debian-User)
    • Re: Well Known SIDs
      ... it is only available on Windows XP+, second this is only usefull to create a ... SID that is well known to the OS. ... > MSDN has information and sample code ...
      (microsoft.public.platformsdk.security)