CreateProcessAsUser Error

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

Hey There,
I am trying to execute the CreateProcessAsUser function, but when I
do, I get this error:
"Cannot create a file when that file already exists.". What would cause
that error to occur in this function?

-Jay
(patelj27b at gmail dot com)
 
Jay said:
Hey There,
I am trying to execute the CreateProcessAsUser function, but when I
do, I get this error:
"Cannot create a file when that file already exists.". What would cause
that error to occur in this function?

Can we get a code sample? CreateProcessAsUser is a complicated API and there
are many ways to go wrong when using it. If you could show us how you are
calling it, it would narrow down the possibilities.

Also, let us know what type of user (normal user, Administrator, service,
etc.) is calling CreateProcessAsUser and what user is represented by the
hToken parameter when you call it.

Sean
 
Back
Top