Difference between revisions of "Help File:sizeofExportedFunctions"

From Cheat Engine
Jump to navigation Jump to search
m
 
Line 5: Line 5:
 
As you might have guessed, it contains the size of the structure CE has sent to your plugin.
 
As you might have guessed, it contains the size of the structure CE has sent to your plugin.
 
You can check if it's what you expected or add some checks to make sure you don't go over it. If for difficulty reasons you can't use '''''sizeof''''' then use that instead when copying the memory block to your own region of memory. As said before, ExportedFunctions you get in initializefunctions is a copy and will be invalidated when the function returns, so copying is crucial.
 
You can check if it's what you expected or add some checks to make sure you don't go over it. If for difficulty reasons you can't use '''''sizeof''''' then use that instead when copying the memory block to your own region of memory. As said before, ExportedFunctions you get in initializefunctions is a copy and will be invalidated when the function returns, so copying is crucial.
 +
 +
* [[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:32, 29 July 2021

int sizeofExportedFunctions;

As you might have guessed, it contains the size of the structure CE has sent to your plugin. You can check if it's what you expected or add some checks to make sure you don't go over it. If for difficulty reasons you can't use sizeof then use that instead when copying the memory block to your own region of memory. As said before, ExportedFunctions you get in initializefunctions is a copy and will be invalidated when the function returns, so copying is crucial.