X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.0 required=5.0	tests=BAYES_20
X-Spam-Check-By: sourceware.org
Message-ID: <4E733603.2030404@rblasch.org>
Date: Fri, 16 Sep 2011 13:41:55 +0200
From: Ronald Blaschke <mailing-lists@rblasch.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 1.7.9(0.237/5/3): not seeing some Windows files
References: <7A978A88-2B2C-4160-9D41-D090FB81E851@creativegroup.tv> <4E711C35.8070606@gmail.com> <20896DC5-5604-4F92-A7CD-89C7116BAA8D@creativegroup.tv> <4E712138.5030005@sbcglobal.net> <4A73DC4F-842C-4D24-BE67-370CA640DC33@creativegroup.tv>
In-Reply-To: <4A73DC4F-842C-4D24-BE67-370CA640DC33@creativegroup.tv>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-SPF-Scan-By: smf-spf v2.0.2 - http://smfs.sf.net/
Received-SPF: None (nitweb2.nit.at: domain of mailing-lists@rblasch.org	does not designate permitted sender hosts)	receiver=nitweb2.nit.at; client-ip=188.23.168.66;	envelope-from=<mailing-lists@rblasch.org>; helo=[192.168.15.4];
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 09/15/2011 11:02 PM, Robert Perlberg wrote:
> Very interesting.  Thank you for that information.  My goal here is to
> run ntbackup via ssh.  Based on this information I copied ntbackup.exe
> to another folder that does not get redirected and I can invoke it from
> there via ssh.  It seems to run fine, so I question why Microsoft chose
> to make it inaccessible to 32 bit apps.  My concern is that now I have
> to keep track of when ntbackup.exe gets updated and update the copy.

Have a look at the File System Redirector article at
http://msdn.microsoft.com/en-us/library/aa384187.aspx .

In short, for 32-bit processes running under WOW64, %windir%\System32 is
redirected to %windir%\SysWOW64, so "old" 32-bit processes continue to
see a 32-bit environment.  Starting with *Vista*, they added
%windir%\Sysnative to point to the 64-bit %windir%\System32.

There's more to it, e.g. %windir%\regedit.exe also being redirected, so
make sure to read the article to avoid further surprises.

Ron

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

