locked
Get username for outbound connections RRS feed

  • Question

  • Using the LogonUser function with the LOGON32_LOGON_NEW_CREDENTIALS option allows one to make outbound connections with a different username.

    Any idea on how to retrieve that 'outbound username' once impersonation is done? All I can retrieve is the current identity which contains the name of the user running the program, not of the user 'doing' the outbound connections.

    Wednesday, October 17, 2012 7:59 AM