Re: Copy files over network
- From: Tamas Demjen <tdemjen@xxxxxxxxx>
- Date: Fri, 30 Jun 2006 10:41:40 -0700
ManBoye wrote:
- Would it be feasible to use impersonation when the application starts
up?
Yes, it solved my problem (logging into a remote share and copying files over there). I can recommend this older thread for you:
http://tinyurl.com/frneq
- What special permissions are required on the client?
Nothing. I was able to impersonate a user on the remote computer, which was not even a user on the local (client) computer, although this particular feature requires XP (or W2k at the minimum).
- Will the impersonation user require permissions to the location on
the local client where the files are copied to?
I think the local computer will be fine. I never had a problem reading my file from the local computer after impersonation. However, my impersonated user was not even a user on the local machine. I just did
LogonUser
ImpersonateLoggedOnUser
CopyFile
RevertToSelf
CloseHandle
For the exact code, you might want to read the entire thread, it has some useful information.
Tom
.
- References:
- Copy files over network
- From: ManBoye
- Copy files over network
- Prev by Date: Re: Inspecting a read buffer
- Next by Date: Re: Replace a locked Dll
- Previous by thread: Copy files over network
- Next by thread: Re: How to get IP address of a specific network adapter?
- Index(es):
Relevant Pages
|
Loading