Difference between revisions of "Help File:InitializePlugin"
Jump to navigation
Jump to search
Hidden-r3d (talk | contribs) (Created page with "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. BOO...") |
Hidden-r3d (talk | contribs) m |
||
Line 3: | Line 3: | ||
BOOL InitializePlugin( | BOOL InitializePlugin( | ||
− | PExportedFunctions ef , | + | PExportedFunctions ''ef'' , |
− | int pluginid | + | int ''pluginid'' |
); | ); | ||
Latest revision as of 01:39, 28 May 2021
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