Hi,

> ..Can anybody explain me the context and interface for the functions
> in a plugin (well, I try to guess something myself):

Based on the AV interface (and I think TBP API won't be much different):

> function TBP_GetStatus: Integer; stdcall;

should return status of you plugin, 0 is OK, -3 is Error.

> function TBP_NeedConfig: Integer; stdcall;

return 0 if you provide a configuration dialog.

> function TBP_NeedCOM: Integer; stdcall;

return 0 if your plugin will create instance of an COM object.
TB! will call CoInitialize() before calling your plugin.

> function TBP_Setup: Integer; stdcall;

Should display an configuration dialog.

>   ...So, here do my questions begin: what is the meaning of every of this
>   functions?

See above :)

> As I guess it must return "zero" if all is right. How other results are
> interpreted? Just as "non-zero", or an exact value is also important?

Zero is OK, any negative value is an error.

> And also what is the algorithm when The Bat! receives, for example
> "TBP_NeedConfig=0"? Does it mean that in this case the "TBP_Setup" will
> be called as the next function?

Not really, if NeedConfig returns 0, a Setup can be called and the config
button will be enabled. Also, if enabled by NeedConfig, TB! can call Setup
after manual installation of the plugin (not sure about anti-spam
plugins, is true for AV plugins).


-- 
Petr Prazak
GRISOFT, s.r.o.


________________________________________________
Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to