THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/11/2012 at 17:37, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
---------
Hey Guys,
I want to protect my plugin so I use the SNHook.
Cinema ask for serial, all fine. But if the serial is wrong and i click cancel, the plugin is still loaded?!?
I tried it at R13 and my mate in R14. What do I wrong?
//-----------------------------------------------------------------------------------------------------------------------------------------------------------//
LONG RoomMakerSNHook::SNCheck(const String &c4dsn,const String &sn,LONG regdate,LONG curdate)
//-----------------------------------------------------------------------------------------------------------------------------------------------------------//
{
return SN_WRONGNUMBER;
}
case C4DPL_INIT_SYS:
if (!resource.Init()) return FALSE; // don't start plugin without resource
// serial hook example; if used must be registered before PluginStart(), best in C4DPL_INIT_SYS
if (!RegisterExampleSNHook()) return FALSE;
Nothing, it still load my objectData !?