X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: Date: Tue, 2 Sep 2008 12:26:48 +0100 From: "Robert McKay" To: Jay Subject: Re: Running 64bit processes from 32bit Cygwin Cc: cygwin AT cygwin DOT com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1220310319 DOT 16119 DOT ezmlm AT cygwin DOT com> X-Google-Sender-Auth: 39050c49ce6100ce X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Tue, Sep 2, 2008 at 8:49 AM, Jay wrote: > 32bit processes can launch 64 bit processes, and vice versa. > You are not trapped in emulation. > Simply via the normal CreateProcess, or system(), or ShellExecute(). > There's no need to ask Explorer to do it for you. Except... > There is wierdness though in that 32bit processes cannot usually > see the 64bit system directory. They can run 64bit .exes anywhere > else, but under native %windir%\system32 is wierd. > Vista adds something like %windir%\sysnative (search the web). Aha! How devious... > IF this is your problem, you merely need to make a 64bit > executable "in between" that you run, that then runs the 64bit > PowerShell. It'd be a very small simple program. > I have to install PowerShell to check. Yes, this is definitely my problem. I didn't try running any binaries that weren't in the system32 directory as it never occured to me that the system32 directory might be 'special'. > Or use the APIs that temporarily turn off mucking with paths. > Wow64DisableWow64FsRedirection That looks interesting. For my immediate purposes, copying the 64bit powershell to another directory seems to have sorted it out nicely. Thank you so much! Regards, Rob. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/