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
Advanced file system plugin development questions
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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).
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
https://www.ghisler.com