On Feb 21, 5:18 pm, "jpuopolo" <puop...@gmail.com> wrote:
> On Feb 21, 10:12 am, "Day" <duckey.robbin...@gmail.com> wrote:
>
>
>
> > Hello!
> > I'm programming in C# on .NET 2.0, Windows XP SP2.
> > I'm using a third party's DLL in an environment that limits access to
> > the hard drives save for a single, set user (recognized to access the
> > drives by name).
> > The dll functions useProcess.Start and run under the logged on User's
> >context, but I need them to run under those those of the privileged
> > user's. (I tried using Impersonation, but it only affects the thread
> > and thus doesn't affect the createdProcess).
> > Is there a way to do so without running the firstprocessunder the
> > privileged user's permissions? I can't access theProcess.Start inside
> > the dll. It's a Black Box to me).
> > A friend -strongly- suggested against fetching the dll'sprocess's
> > handle andchangingits permission thread-by-thread.
>
> > Thanks in advance!
> > ~Day
>
> Have you considered loading the DLL Into an AppDomain, providing the
> domain with the securitycontextyou need?
>
> jpuopolo
..The problem is that I don't have the privileged user's password, nor
necessarilly his domain... Or his name for the matter.
My program is a client side program that gets the user's details
encrypted from the server and only uses it when necessary, so loading
DLLs is a bit tricky like that as far as I know.
I'll try looking into it a bit more, but I'll appriciate it if you
could give me at least some buzzwords to look into
~Day