I am crrently trying to adapt [url=http://forums.truecrypt.org/viewtopic.p ... 7&start=98]OTFExplorer[/quote] to work as a FAR plugin. I expect it would be simple enough to get it to work as a MultiArc subplugin, but one reason I wanted to write it as a "full" plugin is that I want to learn some C (I have never studied it, all my knowledge of C comes from reading other people's code and from the fact that many languages uses a syntax similar to C's). I would appreciate some help from people who are more knowledgeable about both FAR Plugin Programming and C Language Programming than I am.
Right now I have implemented these exports:
SetStartupInfo - read settings from the registry and save FSF and FarInfo for future use
GetPluginInfo - register menu item (unused for now) and command prefix
GetMinFarVersion - require FAR v1.70 (just in case)
OpenFilePlugin - ask for password and try to connect to the encrypted container
OpenPlugin - if activated through command prefix, read filename and try to connect to it just like in OpenFilePlugin
ClosePlugin - free memory
GetFindData - read directory and file information for the requested directory
FreeFindData - free memory allocated in GetFindData
SetDirectory - check for directory existence; if it exists, store the new full path for future use
Other functions will be added later.
Most of the stuff I have now works, more or less (that is, the program doesn't crash and the displayed texts seem to be correct). But I noticed several issues I don't know how to solve:
- I can't get anything to display in the title of my plugin's panel (or the title of the FAR window, for that matter). I mean, where regular file panel shows "C:\Documents and Settings" (and title shows "{C:\Documents and Settings} - Far"), my plugin doesn't display anything and the title is just "{} - Far". How do I get FAR to display e.g. "TrueCrypt:\Some\Secret\Directory"?
- All other file panels show directories in CAPS and in white color, as per my Panel Modes and Color Highlighting. In my TCexp plugin, directories use regular file color and case "as is'. Why?
- Is there some FAR function which would process a path for me? I mean, let's say I am in "\Some\Directory" and receive a call to SetDirectory(plugin, "..\Other\Dir"). I could do all the processing myself, but I expect FAR must already use some function which would take "\Some\Directory\..\Other\Dir" and return "\Some\Other\Dir".
That's all the questions for now.
TrueCryptExplorer for FAR
TrueCryptExplorer for FAR
You do not have the required permissions to view the files attached to this post.