Difference between revisions of "Help File:RegisterFunction"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "==RegisterFunction== This function will register a callback function that is called when a certain event happens. In some cases also creates an extra menu item. '''Function...")
 
m
 
Line 12: Line 12:
 
'''init''' holds a pointer to a structure that is dependent on the type of function.
 
'''init''' holds a pointer to a structure that is dependent on the type of function.
  
 +
 +
* [[Help File:Plugin system|Plugin system]]
 +
* [[Help File:GetVersion|GetVersion]]
 +
* [[Help File:DisablePlugin|DisablePlugin]]
 +
* [[Help File:InitializePlugin|InitializePlugin]]
 +
* [[Help File:PluginVersion|PluginVersion]]
 +
** [[Help File:ExportedFunctions|ExportedFunctions]]
 +
** [[Help File:sizeofExportedFunctions|sizeofExportedFunctions]]
 +
** [[Help File:ShowMessage|ShowMessage]]
 +
** [[Help File:RegisterFunction|RegisterFunction]]
 +
** [[Help File:UnregisterFunction|UnregisterFunction]]
 +
** [[Help File:OpenedProcessID|OpenedProcessID]]
 +
** [[Help File:OpenedProcessHandle|OpenedProcessHandle]]
 +
** [[Help File:GetMainWindowHandle|GetMainWindowHandle]]
 +
** [[Help File:AutoAssemble|AutoAssemble]]
 +
** [[Help File:Assembler|Assembler]]
 +
** [[Help File:Disassembler|Disassembler]]
 +
** [[Help File:ChangeRegistersAtAddress|ChangeRegistersAtAddress]]
 +
** [[Help File:InjectDLL|InjectDLL]]
 +
** [[Help File:FreezeMem|FreezeMem]]
 +
** [[Help File:UnfreezeMem|UnfreezeMem]]
 +
** [[Help File:FixMem|FixMem]]
 +
** [[Help File:ProcessList|ProcessList]]
 +
** [[Help File:ReloadSettings|ReloadSettings]]
 +
** [[Help File:GetAddressFromPointer|GetAddressFromPointer]]
 +
** [[Help File:sym_nameToAddress|sym_nameToAddress]]
 +
** [[Help File:sym_addressToName|sym_addressToName]]
 +
** [[Help File:sym_generateAPIHookScript|sym_generateAPIHookScript]]
 +
** [[Help File:loadDBK32|loadDBK32]]
 +
** [[Help File:loaddbvmifneeded|loaddbvmifneeded]]
 +
** [[Help File:previousOpcode|previousOpcode]]
 +
** [[Help File:nextOpcode|nextOpcode]]
 +
** [[Help File:disassembleEx|disassembleEx]]
 +
** [[Help File:loadModule|loadModule]]
 +
** [[Help File:aa_AddExtraCommand|aa_AddExtraCommand]]
 +
** [[Help File:aa_RemoveExtraCommand|aa_RemoveExtraCommand]]
 +
 +
 +
* [[Help File:PluginType|PluginType]]
 +
** [[Help File:0 ptAddressList|0: ptAddressList]]
 +
** [[Help File:1 ptMemoryView|1: ptMemoryView]]
 +
** [[Help File:2 ptOnDebugEvent|2: ptOnDebugEvent]]
 +
** [[Help File:3 ptProcesswatcherEvent|3: ptProcesswatcherEvent]]
 +
** [[Help File:4 ptFunctionPointerschange|4: ptFunctionPointerschange]]
 +
** [[Help File:5 ptMainMenu|5: ptMainMenu]]
 +
** [[Help File:6 ptDisassemblerContext|6: ptDisassemblerContext]]
 +
** [[Help File:7 ptDisassemblerRenderLine|7: ptDisassemblerRenderLine]]
 +
** [[Help File:8 ptAutoAssembler|8: ptAutoAssembler]]
 +
** [[Help File:REGISTERMODIFICATIONINFO|REGISTERMODIFICATIONINFO]]
  
  
 
* [[Cheat Engine:Help File|Back to Help File]]
 
* [[Cheat Engine:Help File|Back to Help File]]

Latest revision as of 18:33, 29 July 2021

RegisterFunction[edit]

This function will register a callback function that is called when a certain event happens. In some cases also creates an extra menu item.


Function Definition:

int RegisterFunction(int pluginid, PluginType functiontype, PVOID init);


pluginid has to be the pluginid that you got from InitializePlugin functiontype defines what type of function you want to register (See PluginType) init holds a pointer to a structure that is dependent on the type of function.