Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.win32.programmer.kernel > #2

Re: CreateProcessAsUser fails with error code 2 (file not found)

X-Received by 10.50.6.7 with SMTP id w7mr27740766igw.12.1458249762476; Thu, 17 Mar 2016 14:22:42 -0700 (PDT)
X-Received by 10.50.138.165 with SMTP id qr5mr389609igb.10.1458249762454; Thu, 17 Mar 2016 14:22:42 -0700 (PDT)
Path csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!nt3no2539359igb.0!news-out.google.com!u9ni67igk.0!nntp.google.com!nt3no2539357igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups microsoft.public.win32.programmer.kernel
Date Thu, 17 Mar 2016 14:22:41 -0700 (PDT)
In-Reply-To <60a6b774-4aac-4b49-bf3c-da23921c8f31@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=203.86.205.98; posting-account=7ZorPAoAAACLvGwPyL1ld6lenFrJgNjs
NNTP-Posting-Host 203.86.205.98
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>
User-Agent G2/1.0
MIME-Version 1.0
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
Injection-Date Thu, 17 Mar 2016 21:22:42 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com microsoft.public.win32.programmer.kernel:2

Show key headers only | View raw


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


Thread

Re: CreateProcessAsUser fails with error code 2 (file not found) felixantonharoldcollins@gmail.com - 2016-03-17 14:22 -0700

csiph-web