CPLUGIN is probably the most advanced user defined data type used in DLL Deity. You do not need to use CPLUGIN unless your plugin is going to use/interact with other plugins (this may be useful).
For declaration refer to plugins.h, included in the SDK.