GDPlugin Help -- SendEventToAll()
Navigation:
Use this method to send an event to all installed plugins. Here is the format:
procedure SendEventToAll(const EventCode : LongWord; const Int : Integer; Params : Pointer);
EventCode is the user-defined event id number. The EventCodes should be defined in PluginHeader.pas, which is then used by both the application and the plugin.
Int is where the PluginID would normally be sent, but since you are sending from the application, it is not necessary, and can be used to send more information to the plugin.
Params is a pointer to allow for complete flexibility. You can simply pass an integer typecasted as a pointer (ex Pointer( 10 ) ), or you can send a PChar, or you can send a pointer to a data structure (record) containing additional information.