Help File:InitializePlugin

From Cheat Engine
Jump to navigation Jump to search

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

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

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