Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2006

Tip: Looking for answers? Try searching our database.

CreateProcessAsUser Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay - 11 May 2006 22:55 GMT
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)
Sean M. DonCarlos - 12 May 2006 00:53 GMT
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.