THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/06/2012 at 02:31, xxxxxxxx wrote:
I guess my question/speculation was more to the point that if you do use the SNHookClass - for serialized license key control - that you wouldn't need to worry about it with the Student version, since the plugin would simply fail to load (assuming that you didn't want it to load).
ie. Inside the PluginMessage() code, when: id == C4DPL_INIT_SYS, then you normally call resource.Init(), check for version type and (if appropriate) call your RegisterPLGNSerial() routine. That in turn calls (for example) pPlgSerial->Register(_SERIAL_PLUGID, SNFLAG_OWN);
...that call to (SNHookClass) 'Register()' should fail (return false) with the Student version, so your plugin would just not load (assuming you trickled the 'false' return back through to the C4DPL_INIT_SYS message response).
Does that sound correct?
EDIT: To be more specific... I'm assuming if you reply 'false' to the C4DPL_INIT_SYS message, that your PluginStart() routine would never be called... ?
If you do want to have your (serialized) plugin work with the Student version, you'd have to look for the Student version type and use some other method of serializing your license key.