Advanced file system plugin development questions

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
akopalsky
Junior Member
Junior Member
Posts: 48
Joined: 2012-10-10, 15:25 UTC

Advanced file system plugin development questions

Post by *akopalsky »

Hi guys,

I am adding multi-account capability to Google Drive plugin (http://ghisler.ch/board/viewtopic.php?p=259034) and I run into some technical questions:

1. How to correctly get main TC windows handle (HWND) to display modal dialog? (I am currently using GetActiveWindow() system call, but it is not always correct)

2. How to make TC automatically change directory? I am creating virtual "Add new connection" file and handle FsExecuteFile request to create new connection, at the end of the successful call I want to display files inside newly created account folder.

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

Post by *ghisler(Author) »

1. I would stick to GetActiveWindow

2. You need to return FS_EXEC_SYMLINK, and pass the new location back in the RemoteName parameter. Please note that the buffer is limited to 260 characters, so it must not be longer than 259 (plus the terminating 0 byte).
Author of Total Commander
https://www.ghisler.com
Post Reply