[Mono-dev] Run process as a different user
jacobgladish at yahoo.com
Fri May 9 12:23:10 EDT 2008
Agreed assuming it was implemented. I tried a small test and it didn't work. Ultimately there's a call to CreateProcessWithLogonW which is implemented as
gboolean CreateProcessWithLogonW (const gunichar2 *username,
const gunichar2 *domain,
const gunichar2 *password,
const guint32 logonFlags,
const gunichar2 *appname,
const gunichar2 *cmdline,
const gunichar2 *cwd,
/* FIXME: use user information */
return CreateProcess (appname, cmdline, NULL, NULL, FALSE, create_flags, environ, cwd, startup, process_info);
This is 1.9 source. I'm guessing this implies no go for 1.1 either.
----- Original Message ----
From: Miguel Ángel Pérez <mangelp at gmail.com>
To: "mono-devel-list at lists.ximian.com" <mono-devel-list at lists.ximian.com>
Sent: Thursday, May 8, 2008 2:47:25 PM
Subject: Re: [Mono-dev] Run process as a different user
System.Diagnostics.Process is the way to go.
2008/5/7 pablosantosluac at terra.es <pablosantosluac at terra.es>:
What's the best way to start a process as a different user in Mono/Linux
using framework 1.1?
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list