Re: impersonation, thread and w2k
From: Frank Samuel (FSamuel_nospam_at_misag.com)
Date: Tue, 12 Aug 2003 15:37:46 +0200
perhaps you should call AppDomain.SetThreadPrincipal() - then new threads
get the modified principal by default.
"Fabio Cavazzuti" <firstname.lastname@example.org> wrote in message
> Hi all,
> under framwork 1.1 and 1.0, in C# but it's a detail, impersonation
> process level work fine (UserLogon(), WindowsIdentity etc. etc.).
> How i can impersonate a user in a thread ?
> After the impersonation, the access to the remote resources by methods
> of the main thread work, but not if invoked in a thread.
> Many thanks, Fabio