Hey everyone! I was hoping for some direction on a resolution regarding a slow down I am seeing. I am currently working on a WPF app where I need to impersonate as a user based on which login credentials I sign in with. If I sign in with
a developer account then I need to impersonate as a Dev service account. If I sign in as a QA user, I want to impersonate as the QA service account. So I got this implemented, but just unsure if I am implementing it correctly. What I am doing
is when I open the app, I instantly authenticate the user and impersonate the whole time the app is open.
What I am seeing is an enormous amount of lag. I am using
LOGON32_LOGON_INTERACTIVEand actually tried a number of the other options but had no luck with any of
them. All clicks seem to take a number of seconds longer and there is just an insane slowness that is introduced when impersonating. I tried, for testing purposes, to impersonate, execute a transaction and then call Undo on the context object and
this sped things right up, but is this how I have to do things? For what I am working on now this wil
View Complete Post