Help File:InitializePlugin
Revision as of 01:39, 28 May 2021 by Hidden-r3d (talk | contribs)
The InitializePlugin routine is called when Cheat Engine is started and the plugin is enabled in the registry, or when the user enables it in settings and clicks ok.
BOOL InitializePlugin( PExportedFunctions ef , int pluginid );
Parameters[edit]
ef
Address to a copy of CE's ExportedFunctions struct . Make a copy of this structure before returning from the InitializePlugin function.
pluginid
The pluginid for your plugin for as long as it is active. This ID is used to register callbacks.
Return Value[edit]
Return value has to be TRUE
It is recommended to register the callback functions in this routine and save ExportedFunctions for later usage. For more information about the callbacks see the relevant help topics