Re: CAS,Stackwalk and code reuse



Yes, although you still need to consider the issue of blocking inappropriate
callers. For an impersonation sample that uses delegation in this way, see
http://blogs.msdn.com/shawnfa/archive/2005/03/24/401905.aspx.



<siddharthkhare@xxxxxxxxxxx> wrote in message
news:1140628194.072949.80200@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
thanks to you both.

Does impersonation work for a thraed unlike CAS?

I mean a code like this will imperosnate for a thread no matter what
function sequence it is on the calls stack...and even if that function
call is taken out of te stack...
windowsImpersonationContext = windowsIdentity.Impersonate();

I think imperosnation works differently than CAS..but wanted to make
sure ..
Thanks
Sidd



.