Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.win32.programmer.kernel > #2
| Newsgroups | microsoft.public.win32.programmer.kernel |
|---|---|
| Date | 2016-03-17 14:22 -0700 |
| References | <c23dabf5-fa13-4733-8de8-9487177452f4@j35g2000yqh.googlegroups.com> <4937d140$0$2735$742ec2ed@news.sonic.net> <41ea64af-f125-4458-a01e-2a27756c6cfe@n33g2000pri.googlegroups.com> <60a6b774-4aac-4b49-bf3c-da23921c8f31@googlegroups.com> |
| Message-ID | <6d856e2d-c10c-49c6-8eb4-e1bd41f36a57@googlegroups.com> (permalink) |
| Subject | Re: CreateProcessAsUser fails with error code 2 (file not found) |
| From | felixantonharoldcollins@gmail.com |
Just for the record. CreateProcessAsUser calls SearchPath internally. SearchPath uses the File System Redirector https://msdn.microsoft.com/en-us/library/windows/desktop/aa384187%28v=vs.85%29.aspx So, if you are running a 32 bit app under WOW64 and you ask for a process using an exe in system32 dir e.g. "c:\windows\system32\myapp.exe", CreateProcessAsUser will look in syswow64 instead e.g."c:\windows\syswow64\myapp.exe". If your exe is not there you'll get a "file not found error".
Back to microsoft.public.win32.programmer.kernel | Previous | Next | Find similar
Re: CreateProcessAsUser fails with error code 2 (file not found) felixantonharoldcollins@gmail.com - 2016-03-17 14:22 -0700
csiph-web