Re: Launch Application as Different User in C# Windows Applicatoin
- From: "cooltoriz" <ypark04@xxxxxxxxx>
- Date: 13 Dec 2006 14:44:37 -0800
Sorry for confusion, I might not be clear about my question.
Yes, I know how to impersonate when I create NEW process using
ProcessStartInfo class. There are many examples over the Internet.
However, I was wondering what if I impersonate a code block using
WindowsIdentity.Impersonate() and the code block contains creating new
process, does new process inherit security context from the
impersonated security context or parents security context?
Per Willy's reply, it seems that new process will still inherit it from
parents security context even though impersonation occured before the
code block.
I hope that this clears my question.
Thank you,
Samuel R. Neff wrote:
I'm confused. In your original post I thought you said you knew how
to do impersonation for a process but wanted to know how to do
impersonation for a thread. Was that not your question?
Sam
.
- References:
- Launch Application as Different User in C# Windows Applicatoin
- From: cooltoriz
- Re: Launch Application as Different User in C# Windows Applicatoin
- From: Samuel R . Neff
- Re: Launch Application as Different User in C# Windows Applicatoin
- From: cooltoriz
- Re: Launch Application as Different User in C# Windows Applicatoin
- From: Samuel R . Neff
- Launch Application as Different User in C# Windows Applicatoin
- Prev by Date: Digital Signature (SignedCMS + SHA-1)
- Next by Date: Re: Is file is being used
- Previous by thread: Re: Launch Application as Different User in C# Windows Applicatoin
- Next by thread: Re: How do i select the text from a WinForm label?
- Index(es):
Relevant Pages
|