NL_Info: Content plugin showing information about NTFS links

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

theosdikaios wrote:Do any chance exists that your fine tools (nl_info, ntfs_links) will support this new link type?
Yes, sure. It's one of the first features in my to-do list. But unfortunately I'm very busy currently and cannot find enough free time to work on the plugin. :(
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Flint wrote:
theosdikaios wrote:Do any chance exists that your fine tools (nl_info, ntfs_links) will support this new link type?
Yes, sure. It's one of the first features in my to-do list. But unfortunately I'm very busy currently and cannot find enough free time to work on the plugin. :(
2Flint
Have you still plans to update this plugin? "Symlink target" is really need feature. I asked Lefteous to add it to DirSizeCalc but he haven't programming environment for Vista :(
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

DrShark wrote:Have you still plans to update this plugin?
Yes. Currently I'm working on the NTFS Links program update to support these Vista-style symlinks, my next target will be the NL_Info plugin, so that they could work together.

Unfortunately, these symlinks proved to be much harder to implement than I thouhght before: the corresponding API functions need elevated admin privileges to work, even when you create links to fully accessible files/dirs. Hence I have to invent something similar to TC's approach with tcmadmin.exe tool. Just another brilliantly ruined idea, thank you, MS… :(
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

. I asked Lefteous to add it to DirSizeCalc but he haven't programming environment for Vista
I will try to create a working environment on my beta version of Windows 7. I'm not sure if this will work.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Flint, Lefteous
Thanks, I'll wait.
Flint wrote:Unfortunately, these symlinks proved to be much harder to implement than I thouhght before: the corresponding API functions need elevated admin privileges to work, even when you create links to fully accessible files/dirs. Hence I have to invent something similar to TC's approach with tcmadmin.exe tool. Just another brilliantly ruined idea, thank you, MS…
Well, for button with NTFSLinks currently it's possible to add Elevate command. But it cannot be used for content plugins like NL_Info, of course.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

DrShark wrote:Well, for button with NTFSLinks currently it's possible to add Elevate command.
I don't want to start NTFS Links always as elevated, because hard links and junctions can be easily created without any special privileges. Only new Vista symlinks need them.
DrShark wrote:But it cannot be used for content plugins like NL_Info, of course.
I did not investigate it yet, but I think that reading existing symlinks does not need elevated privileges. At least, TC can read their targets (to jump to the target directory if the link itself is not "followable").
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Flint wrote:...hard links and junctions can be easily created without any special privileges. Only new Vista symlinks need them.
You need elevated privileges if targert dir (%T) requires them (e.g. "Program Files" dir on Vista and later).
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

DrShark wrote:You need elevated privileges if targert dir (%T) requires them (e.g. "Program Files" dir on Vista and later).
Yes, I know that. I meant that the operation of creating a junction by itself does not need special privileges, higher privileges may only be required to access some path (normally inaccessible). Creating a symlink, to the contrary, always requires elevated privileges, no matter which paths you are using.

At first I planned to implement Vista symlinks only, without any "as admin" functionality, and then (as the next to-do item) work on the UAC nightmare, while users would finally be able to use the new link type (at least, it's possible to start NTFS Links with admin privileges manualy, if necessary, so it's not a critical thing).
However it just happened to be impossible. :( Otherwise the new version of the program would have been released already…
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48074
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2Flint
No problem, I can create a modified version of my tcmadmin tool for you which runs the needed functions elevated. What I need from you is a C/C++ function which takes a Unicode string as a parameter, performs the operation, and returns either a number (error code) or a Unicode string as result. If your function needs multiple parameters, you need to encode them all in a Unicode string in your program, send them to the modified admin tool via a pipe, and read the result.

Just contact me by e-mail for the details. The tool will of course be signed by our certificate, so it gives a less dreading message to Vista users...
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

ghisler(Author)
Thank you very much for the suggestion! :)
I will surely contact you as soon as this function is ready.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

NL_Info 1.20:
  • Plugin now uses Unicode strings.
  • Added 64-bit version.
  • Added support for Windows Vista/7's symbolic links (files and directories).
  • Added new field "Relative".
  • Source code is published under the BSD license.
x32+x64 / mirror (43 Kb)
Source code (C++) / mirror (14 Kb)
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply