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

<siddharthkhare@xxxxxxxxxxx> wrote in message
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 ..