Win7 64 bit not bypassing redirection

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Christopher_G_Lewis
Posts: 10
Joined: Thu May 08, 2003 6:56 pm

Win7 64 bit not bypassing redirection

Post by Christopher_G_Lewis »

So one of the new features listed in the TextPad 7 release notes is that 64bit redirection is disabled:
  • 64-bit file system redirection is disabled so that files in 64-bit Windows folders can now be edited.
However it doesn't seem to work. I placed a file called "THIS IS THE SYSWOW64 DIR.TXT" in the C:\Windows\SysWOW64\inetsrv\Config directory, but when I try to open a file in C:\Windows\System32\inetsrv\Config, I see it instead of my normal IIS config files.

I know you can hack this by using \windows\sysNATIVE, but it seems that this should work.
User avatar
bbadmin
Site Admin
Posts: 854
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post by bbadmin »

Microsoft have not provided a mechanism to bypass file system redirection with the standard File Open/Save As dialog boxes. You can use Windows Explorer to pass files to TextPad, or use the Quick Open (Crtl+Shift+O) command instead. We'll update the release notes to make this clear.
Christopher_G_Lewis
Posts: 10
Joined: Thu May 08, 2003 6:56 pm

Post by Christopher_G_Lewis »

So I'm not sure of the internals of Textpad, but assuming its era of creation, it could be MFC.

Perhaps this would help:

http://www.codeproject.com/Tips/55290/D ... n-on-a-CFi

Thanks...
User avatar
bbadmin
Site Admin
Posts: 854
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post by bbadmin »

As the comments on that article state, it doesn't work post Vista. The problem is that redirection can only be disabled by the calling thread, and the file open/save as dialog boxes create their own threads. They also load DLLs to handle virtual directories, so any tricks to prevent redirection could end up with the wrong DLLs being loaded.
Post Reply