delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/09/02/07:27:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <c2888f8c0809020426p6d994db5r3941ad5f17cab1f7@mail.gmail.com>
Date: Tue, 2 Sep 2008 12:26:48 +0100
From: "Robert McKay" <robert AT mckay DOT com>
To: Jay <jay DOT krell AT cornell DOT edu>
Subject: Re: Running 64bit processes from 32bit Cygwin
Cc: cygwin AT cygwin DOT com
In-Reply-To: <COL101-W9EA32BAF40B73065A5C40E65F0@phx.gbl>
MIME-Version: 1.0
References: <1220310319 DOT 16119 DOT ezmlm AT cygwin DOT com> <COL101-W9EA32BAF40B73065A5C40E65F0 AT phx DOT gbl>
X-Google-Sender-Auth: 39050c49ce6100ce
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <jay DOT krell AT cornell DOT edu> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019