Some serious TC7pb2 issues on WinVista x64 edition
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
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
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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...
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
https://www.ghisler.com