G
Guest
Hi,
We have a server process that needs at some point to revert to its own
identity to perform some privilege tasks, we do so by calling
WindowsImpersonationContext context = WindowsIndentity.Impersonate
( IntPtr.Zero );
We later call context.Undo(); to revert back to the user's identity.
While performing some taks our server would need to know if it is
performing a task in the user's context or its own context. Is there a way
to determine the context we are currently running in?
Thank you!
We have a server process that needs at some point to revert to its own
identity to perform some privilege tasks, we do so by calling
WindowsImpersonationContext context = WindowsIndentity.Impersonate
( IntPtr.Zero );
We later call context.Undo(); to revert back to the user's identity.
While performing some taks our server would need to know if it is
performing a task in the user's context or its own context. Is there a way
to determine the context we are currently running in?
Thank you!