Re: Send Login Info
From: Jelle Druyts (noreply_at_dummy.org)
Date: 03/28/04
- Next message: Cor: "Re: VB 6.0 TO VB .NET - what was your experience?"
- Previous message: Jelle Druyts: "Re: Run Programs"
- In reply to: Terry Olsen: "Send Login Info"
- Next in thread: Gary Milton: "Re: Send Login Info"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 28 Mar 2004 09:01:00 +0200
You can impersonate another user through unmanaged Win32 calls, take a look
at http://www.thecodeproject.com/csharp/cpimpersonation1.asp for more
information on that.
Another option (but I haven't tried that) could be to launch a WebRequest
for the file on the server. You can pass credentials with that, but I don't
know if it will work without a webserver.
Hope that helps,
-- Jelle Druyts - .NET consultant & trainer http://jelledruyts.homeip.net "Terry Olsen" <tolsen64@hotmail.com> wrote in message news:ux6dpbHFEHA.1368@TK2MSFTNGP11.phx.gbl... > I want to log to a default admin share on a server. The user running the > app doesn't have admin rights, but my program needs to grab files from say, > \\server\d$\tmp. How can I send admin credentials so that my app can get > the files it needs? I'll need to send UserName, Password, and DomainName. > > Thanks! > >
- Next message: Cor: "Re: VB 6.0 TO VB .NET - what was your experience?"
- Previous message: Jelle Druyts: "Re: Run Programs"
- In reply to: Terry Olsen: "Send Login Info"
- Next in thread: Gary Milton: "Re: Send Login Info"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|