MKI_PLUGIN_DATA (Basic Classes) Changed in Version 2025.0

www.CAD6.com

C++ Syntax

class MKI_PLUGIN_DATA

{

  public:

 

  MKI_PLUGIN_ID m_cID;

  HINSTANCE m_hHandle;

  MKI_PLUGININIT_PROC m_pfnProcInit;

  MKI_PLUGINEXIT_PROC m_pfnProcExit;

  MKI_PLUGINCOMMAND_PROC m_pfnProcCommand;

  MKI_PLUGINNOTIFY_PROC m_pfnProcNotify;

  MKI_PLUGINIMPORT_PROC m_pfnProcImport;

  MKI_PLUGINEXPORT_PROC m_pfnProcExport;

  MKI_PLUGINREQUEST_PROC m_pfnProcRequest;

 

  void

  Init( void ); New in Version 2025.0

};

 

This structure contains a plug-in's complete description as stored by the serving application. In addition to the plug-in's command description, it states the callback procedure for command execution and plug-in-defined entity modification.

 

Element Description

ID

[MKI_PLUGIN_ID] Description of a plug-in that has been loaded.

Handle

[HINSTANCE] Instance handle of that plug-in. This handle can be used to find resources or procedures in that plug-in.

ProcInit

[MKI_PLUGININIT_PROC] Address of the MKI_PlugInInit procedure of the plug-in. This address should not be used by another plug-in!

ProcExit

[MKI_PLUGINEXIT_PROC] Address of the MKI_PlugInExit procedure of the plug-in. This address should not be used by another plug-in!

ProcCommand

[MKI_PLUGINCOMMAND_PROC] Address of the MKI_PlugInCommand procedure of the plug-in. This address can be used to call a plug-in's command.

ProcNotify Renamed in Version 2020.0

[MKI_PLUGINNOTIFY_PROC] Address of the MKI_PlugInNotify procedure of the plug-in. This address can be used to notify the plug-in of diverse matters and to request information from it. If ProcNotify is nullptr, this plug-in cannot handle any requests from the serving application regardings extended objects, collection and pinboard items, or user input. Import and export filters only need to supply this procedure if they create custom collection or pinboard items.

ProcImport

[MKI_PLUGINIMPORT_PROC] Address of the MKI_PlugInImport procedure of the plug-in. This address can be used to silently import a file (i.e. without any dialogs except for progress indicators). If ProcImport is nullptr, this plug-in cannot handle silent imports.

ProcExport

[MKI_PLUGINEXPORT_PROC] Address of the MKI_PlugInExport procedure of the plug-in. This address can be used to silently export a file (i.e. without any dialogs except for progress indicators). If ProcExport is nullptr, this plug-in cannot handle silent exports.

ProcRequest

[MKI_PLUGINREQUEST_PROC] Address of the MKI_PlugInRequest procedure of the plug-in. This address can be used to resolve a textual request. If ProcRequest is nullptr, this plug-in cannot handle textual requests.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH