Re: SHFileOperation Problem
- From: Marcelo Grossi <MarceloGrossi@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 16 Apr 2008 05:06:01 -0700
Hello Kellie,
Thanks again for the great responde! One more question, is there a 'default'
user that I could use for this task without the need to create a new one just
to copy files from teh TEMP folder of my machine to a fully shared remote
folder?
I know that "Network Service" user is availiable but I don't know if it can
be used on this function you gave me because it's an NT AUTHORITY...
Thanks again!
Marcelo Grossi
Hi,.
Well, another option is using the API CreateProcessWithLogonW(),
this would spawn your application in the correct security context,
and the function does exactly the same thing as LogonUserEx() and
CreateProcessAsUser() and does not require any special privileges.
Just make sure that the user account you specify is allowed to login
interactively to your machine, you check that in the domain/local
policies.
http://msdn2.microsoft.com/en-us/library/ms682431(VS.85).aspx?s=1
Kellie.
- Follow-Ups:
- Re: SHFileOperation Problem
- From: Kellie Fitton
- Re: SHFileOperation Problem
- References:
- SHFileOperation Problem
- From: Marcelo Grossi
- Re: SHFileOperation Problem
- From: Kellie Fitton
- Re: SHFileOperation Problem
- From: Marcelo Grossi
- Re: SHFileOperation Problem
- From: Kellie Fitton
- SHFileOperation Problem
- Prev by Date: RE: EFS Registry Key Different on Different Machines
- Next by Date: Re: SmartCard and the username/password
- Previous by thread: Re: SHFileOperation Problem
- Next by thread: Re: SHFileOperation Problem
- Index(es):