"Daniel" <so*******************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
If i log into my computer as domain A and user X and password Y but then I
need to give C# application access to domain B as user F and password G.
Is this possible? or do i have to log into the computer as domain B, user F
and password G in order for the application to have permissions to domain B? I
would like to stay logged in as domain A but just give my C# application
access to domain B. In my application I need file system access that users
of domain B have but from domain A. Is this possible to do programaticaly
if I have the user name and password to a domain B account?
You may be able to use the LogonUser Windows API but you would have to go
through P/Invoke, you could easily write a small test program to proof this.