Plugin interface descriptions for TC 7.55 (beta)

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

Moderators: white, sheep, Hacker, Stefan2

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

Post by *MVV » 2014-04-02, 09:22 UTC

white wrote:Perhaps you can present these folders as virtual files and solve it that way?
You won't be able to browse them in such case.

User avatar
white
Power Member
Power Member
Posts: 2020
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white » 2014-04-02, 11:10 UTC

MVV wrote:
white wrote:Perhaps you can present these folders as virtual files and solve it that way?
You won't be able to browse them in such case.
Might be solved by implementing FsExecuteFile, changing RemoteName to new path and return FS_EXEC_SYMLINK?

Another approach that might work:
Include a virtual file "copy this folder" in each folder. Don't do anything with this file when copied (FsGetFile), but copy the folder when executed (FsExecuteFile).

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

Post by *MVV » 2014-04-02, 13:43 UTC

Have you tried to return FS_EXEC_SYMLINK? How '..' will work for redirected folder?

Search will not work with virtual files anyway...

User avatar
white
Power Member
Power Member
Posts: 2020
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white » 2014-04-02, 17:14 UTC

MVV wrote:Have you tried to return FS_EXEC_SYMLINK?
No, I don't know if it works. Maybe not if I read this.
MVV wrote:How '..' will work for redirected folder?
I don't know ;-)
MVV wrote:Search will not work with virtual files anyway...
Correct.

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

Post by *MVV » 2016-06-12, 12:52 UTC

I've noticed that WCX header file contains definition of callback function type tPkCryptProcW, but there is no definition for function PkSetCryptCallbackW that would pass it.

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

Post by *ghisler(Author) » 2016-06-12, 15:15 UTC

I will check it, thanks.
Author of Total Commander
http://www.ghisler.com

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

Post by *MVV » 2016-06-12, 15:45 UTC

Another notice and a question. :)

There are functions in WCX API that pass callbacks. Some of them just pass function pointers:

Code: Select all

PkSetCryptCallback(tPkCryptProc pPkCryptProc,int CryptoNr,int Flags)
(like most other callback setters in W?X interfaces do)

But some pass function pointer and some data pointer:

Code: Select all

SetChangeVolProc(HANDLE hArcData, tChangeVolProc pChangeVolProc1)
(help says that value should be stored somewhere and one you can use hArcData returned by OpenArchive to identify that place)

So does TC pass the same callback pointer for all hArcData values or there may be different callbacks for different archives? I expect that first case is correct because second one looks weird (it implies runtime code generation since there will be no way for TC to detect for which plugin/archive callback is called).

Vi$oR
Junior Member
Junior Member
Posts: 13
Joined: 2006-11-26, 12:03 UTC
Location: Minsk, Belarus

Post by *Vi$oR » 2016-06-23, 09:08 UTC

ghisler(Author) wrote:I will consider it - but I think that developpers should be clever enough to install the hlp viewer for Windows 7. :)
There is no official HLP viewer for Windows 10. It is possible to unpack HLP file and use it in the RTF format, but it is not friendly to the developers.

Post Reply