3 Replies Latest reply: Jul 1, 2011 1:44 AM by Royt2011 RSS

    What information can I get from the descriptor in event callback function?

    Royt2011 Community Member

      I have an automation plugin "A-plugin", during startup it uses AddNotify to set a callback waiting for a filter event:
      sPSActionControl->AddNotify( pluginRef, eventFilter, CallBack, this );

       

      Then execute an filter plugin "B-plugin", CallBack function will be invoked:
      void CallBack( DescriptorEventID eventID, PIActionDescriptor desc, PIDialogRecordOptions opt, void *data ) { ... }

       

      In CallBack, how can I get enough information of "B-plugin" that trigger the event? I've known that A-plugin can get B-plugin's name, just use "keyUsing" as key to query the descriptor, if the result value is B-plugin's name I'll do some more operation. But this method is not reliable since it's hard-coded, B-plugin's name may change (e.g. in another language). So, does anybody know it there any way to get some specific information of B-plugin? Any suggestion will be appreciated.