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: Stefan2, white, sheep, Hacker

User avatar
MVV
Power Member
Power Member
Posts: 8275
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: 8275
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: 8275
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: 37410
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: 8275
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.

User avatar
Hacker
Moderator
Moderator
Posts: 11229
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Plugin interface descriptions for TC 7.55 (beta)

Post by *Hacker » 2018-11-24, 23:50 UTC

Yeah, I also vote for providing the guides in CHM. Do I really have to get some HLP converter just to read the guides under Windows 10?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.

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

Re: Plugin interface descriptions for TC 7.55 (beta)

Post by *MVV » 2018-11-27, 11:27 UTC

I think that much more changes would be required in code than just adding const for some function arguments in case of adding Unicode support... And, these functions are exported by DLL, they don't need to be called from another plugin source file, so no signature matching is required.
The only case when adding Unicode support is just straightforward as you say is when all plugin code uses TCHAR and Windows API for working with strings, and no CRT or STL where ANSI and Unicode require completely different functions and classes. But I don't think that most plugins work like that:)

User avatar
Hacker
Moderator
Moderator
Posts: 11229
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Plugin interface descriptions for TC 7.55 (beta)

Post by *Hacker » 2019-01-03, 22:11 UTC

Yay!

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.

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

Re: Plugin interface descriptions for TC 7.55 (beta)

Post by *ghisler(Author) » 2019-01-07, 14:56 UTC

Btw, I'm still offering a $200 reward for anyone porting an existing plugin (without source) to 64-bit for which there is no 64-bit version yet, or to create a new 32bit+64bit plugin. There is also a $100 reward for recompiling an existing plugin with source to 64-bit.
Author of Total Commander
http://www.ghisler.com

Post Reply