Andre,
Check out the documentation on the static Impersonate method on the
WindowsIdentity class. It will have an example of how to logon using
another's credentials, and then run code under that user context.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Maximus-br" <Ma*******@discussions.microsoft.com> wrote in message
news:CD**********************************@microsof t.com...
Good Evening,
I Would like to know if is it possible to execute some code with another
user's context, of course, typing its username and password. I lnow its
possible in Visual Basic 6, but I would like to know how its possible in
C#
or VB.net
Thanks a lot,
André.
--
André.