It is currently Thu Jun 07, 2018 10:19 pm

All times are UTC - 8 hours [ DST ]


Forum rules


Before posting a bug report or a feature request, search the forum for an older post on the same topic.



Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Tue Feb 11, 2014 2:06 pm 
Offline

Joined: Tue Feb 11, 2014 1:53 pm
Posts: 5
Hello,



quite some time ago, ~ 2 years or so, in the old forum there was a feature request about disabling explorer's auto-sort (the "instant F5" after any change in a folder) - even for list view.

Until now there hasn't been a solution for that anywhere on the net and that time ago classic shell's dev said that this couldn't be achieved since it obviously was done delibaretly by MS and cannot be changed. Until now I'm using WinXP since this is the main show stopper for any newer version for me since I do a lot of file management and don't want to change to another program but keep the well-known explorer...


Nevertheless in the last days I did a bit of researching and I think there might be a possiblity to revert back to XP behaviour of NOT auto-sorting but placing new (i.e. newly unpacked) files at the end of the list until next *manual* F5.


As you can read and experience, Win7's explorer doesn't do this auto-sort in two cases:

1) The directory is a network drive.
2) The directory is a root directory.

Therefore I thougt that it perhaps could be possible to disable auto-sort, if windows' explorer would think in *every* directory that it was a network or root drive.
So I dug into the depths of windows and as far as I could learn the explorer.exe uses the function PathIsRoot() from the shlwapi.dll (located @ %windir%\system32 for x86-version of win7).

So my idea is to just hook shlwapi::PathIsRoot() and if it is called by explorer.exe always "true" is returned, otherwise the call is simply wrapped (means given to shlwapi.dll and the correct result is returned).


After a quick look in Classic Shell's source code (the last public one) I saw - just as I expected - that DLL hooks are used, so it shouldn't be too hard to implement another hook.


I can't try it myself since...
1) I don't have any compiler installed,
2) the last time when I used C++ is some years ago,
3) and when I did it was just a hobby and
4) I was never really good at it
5) and therefore I don't even know if it is possible while hooking an API-call to see which thread called it (to selectively just fake the answer for the explorer.exe and NOT for other threads for not breaking things).


But since classic shell is already using DLL-hooking mechanism I'd love to see you giving this possibility a try and perhaps end with that the "instant-F5" nightmare of me and other users...




Regards,


Spike2


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 11, 2014 10:35 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5331
Classic Shell does not hook any APIs. Also changing the behavior of some system function can have effect on many features. And also it is very unlikely that this particular function is used to determine the behavior you describe.
So no.


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 11, 2014 11:28 pm 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5341
This would be worth doing if it was possible as this is most definitely the number 1 serious usability issue with newer releases of Windows today. It's so horrible but I've had to live with it all these years because of Microsoft's forced obsolescence of XP.

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and did Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 13, 2014 11:24 am 
Offline

Joined: Tue Feb 11, 2014 1:53 pm
Posts: 5
Ivo wrote:
Classic Shell does not hook any APIs. Also changing the behavior of some system function can have effect on many features. And also it is very unlikely that this particular function is used to determine the behavior you describe.
So no.

Oh sorry, as already stated, I just know very little C++ nowadays and with a quick look I just saw a THREAD_ATTACH somewhere and therefore thought API-Hooking was used.

It's a pity that nothing can be done against this usability nightmare.


I mean - one of the very basic functions an operating system should provide is file management - so it has been since the very first days of MS-DOS and it's just not understandable that Microsoft cripples this functionality deliberately...



Best regards,


Spike2


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 13, 2014 11:27 am 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5341
Yes, this is so frustrating that I did try a lot of file managers just to get away from this shit but no file manager has all features and shell extension handlers of Explorer. :(

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and did Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
PostPosted: Fri Feb 14, 2014 10:36 am 
Offline

Joined: Tue Feb 11, 2014 1:53 pm
Posts: 5
Well, most probably I'll switch to explorer++ once XP's support ends and I'm forced to upgrade to Win7. At least this nice open-source-app is configurable so that it exactely looks and works like XP's explorer. Together with changed windows' settings for fonts this is the nearest to the initial feature request in this thread, which can be achieved.


But if someone should discover this thread (i.e. per google) and is looking for closer information for further tries to prevent the forced "instant-F5" in WinVista/7/8's Explorer, here are the last things I could figure out:

- most probably it is NOT the API-function PathIsRoot() from shlwapi.dll (changing the call to a NOP with a just-in-time-debugger leads to nothing except explorer.exe's crashs when reboot or shutdown is initiated)

- changing the JNZ-command after this API-call to a JMP has the same results

--> most probably this "functionality" is hardcoded in explorer.exe
--> therefore I'll not make any more tries, because even if I was successful, there's great danger that some other things get broken - the consequences might reach from crashes to data loss


Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 15, 2014 9:30 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5331
I suspect it is based on the classification of Drive vs Directory in HKCR. However I don't know how I can re-classify a directory to be a drive or what the consequences of that would be.


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 18, 2014 12:02 pm 
Offline

Joined: Tue Feb 11, 2014 1:53 pm
Posts: 5
Sounds interesting... perhaps there's a possiblity of using the "bags"-keys in the registry so that a directory doesn't need to be reclassified as a drive but just needs to inherit the display properties from it....

Hmm, seems like I'll install a new Win7-VM in the next days, this could be worth to be elaborated....


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 19, 2016 4:19 am 
Offline

Joined: Sun Jan 03, 2016 3:57 am
Posts: 6
Anyone came with a solution yet?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.