Some serious TC7pb2 issues on WinVista x64 edition

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ah, that's interesting - x64DisableRedirection seems to cause more problems with Windows itself than I thought. Funny that not even Microsoft supports this function in their DLLs...
Author of Total Commander
https://www.ghisler.com
gigaman
Member
Member
Posts: 131
Joined: 2003-02-14, 11:28 UTC

Post by *gigaman »

Maybe they did - and because of that, they wrote (in the remarks for the original function on MSDN) that the redirection must be enabled as soon as you get the desired handle ;)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

What handle do you mean?
Author of Total Commander
https://www.ghisler.com
gigaman
Member
Member
Posts: 131
Joined: 2003-02-14, 11:28 UTC

Post by *gigaman »

Well, I believe (though there was some discussion about it in the other thread some time ago) that the expected scenario is (for example):

disable_redirection
hFile = CreateFile( ... )
enable_redirection_again
work_with_the_file

or

disable_redirection
hFind = FindFirstFile( ... )
enable_redirection_again
process_the_file
FindNextFile()

etc.

Btw, it seems that Vista added a new redirection in its 64bit build: %windir%\sysnative - to help 32bit applications to get into the real system32 folder. I don't think it really helps here though (besides, it's Vista only).
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog64/winprog64/file_system_redirector.asp
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, this wouldn't help with plugins and Explorer functions (e.g. extract images for thumbnails) because these do not call the redirect functions before each file system call...

So my only solution is to call the functions around a function which doesn't work properly when redirection is off...
Author of Total Commander
https://www.ghisler.com
Post Reply