Does this help

http://the-tread-way.blogspot.co.nz/2010/05/supporting-multiple-logins-in-windows.html


On 22 February 2013 16:40, Stephen Price <[email protected]> wrote:

> Hey all,
>
> I'm trying to get AppDomain's SetThreadPrinciple to work in a WPF app. Any
> new threads created have a genericPrinciple, not the one that I set on the
> AppDomain.
>
> There's an example in a console app that works how I'd like but something
> in WPF (related to security and the dispatcher I believe) that makes this
> not work.
>
> http://msdn.microsoft.com/en-us/library/system.appdomain.setthreadprincipal.aspx
>
> Have been searching for a workaround. Is the only way around this really
> to manually set the Thread.CurrentPrinciple each time a new thread is
> created?
>
> Crossposted because its so quiet. Apologies for ppl on both lists.
>
> cheers,
> Stephen
>
>


-- 
regards,
Preet, Overlooking the Ocean, Auckland

Reply via email to