I need to get the current logged on username? I need this to work properly when I call the code from ASP.NET which is working in Windows Authentication mode. i.e. I do not want to get the ASPNET user in that circumstance, but the impersonated user. This is related to my earlier question. Everything I try returns ASPNET.
Share
In your other question you wrote that you configured ASP.NET to use Windows authentication with impersonation:
Does the ASP.NET application show the correct credentials (user and domain)?
Are you invoking the Delphi function using the correct Identity context, like
Update:
If the COM abject is called from the code behind for a web form page, you can try to set ASPCOMPAT property of the web form page to true.
See: