Set IMAGE_FILE_*_RUN_FROM_SWAP flags for TC

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Set IMAGE_FILE_*_RUN_FROM_SWAP flags for TC

Post by *MVV »

It seems that there are PE header flags that cause Windows to read entire executable to swap file when it is running from network or removable media (and do nothing for executables from local drives):
IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP (0x0400)
IMAGE_FILE_NET_RUN_FROM_SWAP (0x0800)

I think these could be use useful for TC that is started from a network folder or USB stick, and I don't see any drawbacks. What do you think?
Last edited by MVV on 2020-11-06, 17:59 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Set IMAGE_FILE_*_RUN_FROM_SWAP flags for TC

Post by *ghisler(Author) »

Sounds useful - any drawback, like not starting from Windows 9x or so?
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Set IMAGE_FILE_*_RUN_FROM_SWAP flags for TC

Post by *MVV »

I think you should try them to see, I haven't used them.
Post Reply