Difference between revisions of "Help File:ExportedFunctions"

From Cheat Engine
Jump to navigation Jump to search
m
m
 
Line 179: Line 179:
 
  } ExportedFunctions, *PExportedFunctions;
 
  } ExportedFunctions, *PExportedFunctions;
 
</pre>
 
</pre>
 +
 +
* [[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:29, 29 July 2021

Exported Functions[edit]

The ExportedFunctions structure contains several pointers to useful functions in CE, and pointers to the pointers of specific functions that might be worth hooking.[edit]
 typedef struct _ExportedFunctions
  int sizeofExportedFunctions;
  CEP_SHOWMESSAGE ShowMessage;
  CEP_REGISTERFUNCTION RegisterFunction;
  CEP_UNREGISTERFUNCTION UnregisterFunction ;
  PULONG OpenedProcessID ;
  PHANDLE OpenedProcessHandle ;

  CEP_GETMAINWINDOWHANDLE GetMainWindowHandle;
  CEP_AUTOASSEMBLE AutoAssemble;
  CEP_ASSEMBLER Assembler;
  CEP_DISASSEMBLER Disassembler ;
  CEP_CHANGEREGATADDRESS ChangeRegistersAtAddress ;
  CEP_INJECTDLL InjectDLL ;
  CEP_FREEZEMEM FreezeMem;
  CEP_UNFREEZEMEM UnfreezeMem;
  CEP_FIXMEM FixMem;
  CEP_PROCESSLIST ProcessList;
  CEP_RELOADSETTINGS ReloadSettings;
  CEP_GETADDRESSFROMPOINTER GetAddressFromPointer ;

  //Pointers to the address that contains the pointers to the functions
  //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  PVOID ReadProcessMemory;                
  PVOID WriteProcessMemory;               
  PVOID GetThreadContext;                 
  PVOID SetThreadContext;                 
  PVOID SuspendThread;                    
  PVOID ResumeThread;                     
  PVOID OpenProcess;                      
  PVOID WaitForDebugEvent;                
  PVOID ContinueDebugEvent;               
  PVOID DebugActiveProcess;               
  PVOID StopDebugging;                    
  PVOID StopRegisterChange;               
  PVOID VirtualProtect;                   
  PVOID VirtualProtectEx;                 
  PVOID VirtualQueryEx;                   
  PVOID VirtualAllocEx;                   
  PVOID CreateRemoteThread;               
  PVOID OpenThread;                       
  PVOID GetPEProcess;                     
  PVOID GetPEThread;                      
  PVOID GetThreadsProcessOffset;    
  PVOID GetThreadListEntryOffset;   
  PVOID GetProcessnameOffset;       
  PVOID GetDebugportOffset;         
  PVOID GetPhysicalAddress;         
  PVOID ProtectMe;                  
  PVOID GetCR4;                     
  PVOID GetCR3;                     
  PVOID SetCR3;                     
  PVOID GetSDT;                     
  PVOID GetSDTShadow;               
  PVOID setAlternateDebugMethod;    
  PVOID getAlternateDebugMethod;    
  PVOID DebugProcess;               
  PVOID ChangeRegOnBP;              
  PVOID RetrieveDebugData;          
  PVOID StartProcessWatch;          
  PVOID WaitForProcessListData;     
  PVOID GetProcessNameFromID;       
  PVOID GetProcessNameFromPEProcess;
  PVOID KernelOpenProcess;          
  PVOID KernelReadProcessMemory;    
  PVOID KernelWriteProcessMemory;   
  PVOID KernelVirtualAllocEx;       
  PVOID IsValidHandle;              
  PVOID GetIDTCurrentThread;        
  PVOID GetIDTs;                    
  PVOID MakeWritable;               
  PVOID GetLoadedState;             
  PVOID DBKSuspendThread;           
  PVOID DBKResumeThread;            
  PVOID DBKSuspendProcess;          
  PVOID DBKResumeProcess;           
  PVOID KernelAlloc;                
  PVOID GetKProcAddress;            
  PVOID CreateToolhelp32Snapshot;   
  PVOID Process32First;             
  PVOID Process32Next;              
  PVOID Thread32First;              
  PVOID Thread32Next;               
  PVOID Module32First;              
  PVOID Module32Next;               
  PVOID Heap32ListFirst;            
  PVOID Heap32ListNext;             
  //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  PVOID mainform;
  PVOID memorybrowser;

  CEP_GENERATEAPIHOOKSCRIPT sym_nameToAddress;
  CEP_ADDRESSTONAME sym_addressToName ;
  CEP_NAMETOADDRESS sym_generateAPIHookScript;

  CEP_LOADDBK32 loadDBK32;
  CEP_LOADDBVMIFNEEDED loaddbvmifneeded;
  CEP_PREVIOUSOPCODE previousOpcode;
  CEP_NEXTOPCODE nextOpcode;
  CEP_DISASSEMBLEEX disassembleEx;
  CEP_LOADMODULE loadModule;
  CEP_AA_ADDCOMMAND aa_AddExtraCommand;
  CEP_AA_DELCOMMAND aa_RemoveExtraCommand;

  CEP_CREATETABLEENTRY createTableEntry;
  CEP_GETTABLEENTRY getTableEntry;
  CEP_MEMREC_SETDESCRIPTION memrec_setDescription;
  CEP_MEMREC_GETDESCRIPTION memrec_getDescription;
  CEP_MEMREC_GETADDRESS memrec_getAddress;
  CEP_MEMREC_SETADDRESS memrec_setAddress;
  CEP_MEMREC_GETTYPE memrec_getType;
  CEP_MEMREC_SETTYPE memrec_setType;
  CEP_MEMREC_GETVALUETYPE memrec_getValue;
  CEP_MEMREC_SETVALUETYPE memrec_setValue;
  CEP_MEMREC_GETSCRIPT memrec_getScript;
  CEP_MEMREC_SETSCRIPT memrec_setScript;
  CEP_MEMREC_ISFROZEN memrec_isfrozen;
  CEP_MEMREC_FREEZE memrec_freeze;
  CEP_MEMREC_UNFREEZE memrec_unfreeze;
  CEP_MEMREC_SETCOLOR memrec_setColor;
  CEP_MEMREC_APPENDTOENTRY memrec_appendtoentry;
  CEP_MEMREC_DELETE memrec_delete;

  CEP_GETPROCESSIDFROMPROCESSNAME getProcessIDFromProcessName;
  CEP_OPENPROCESS openProcessEx;
  CEP_DEBUGPROCESS debugProcessEx;
  CEP_PAUSE pause;
  CEP_UNPAUSE unpause;

  CEP_DEBUG_SETBREAKPOINT debug_setBreakpoint;
  CEP_DEBUG_REMOVEBREAKPOINT debug_removeBreakpoint;
  CEP_DEBUG_CONTINUEFROMBREAKPOINT debug_continueFromBreakpoint;

  CEP_CLOSECE closeCE;
  CEP_HIDEALLCEWINDOWS hideAllCEWindows;
  CEP_UNHIDEMAINCEWINDOW unhideMainCEwindow;
  CEP_CREATEFORM createForm;
  CEP_FORM_CENTERSCREEN form_centerScreen;
  CEP_FORM_HIDE form_hide;
  CEP_FORM_SHOW form_show;
  CEP_FORM_ONCLOSE form_onClose;

  CEP_CREATEPANEL createPanel;
  CEP_CREATEGROUPBOX createGroupBox;
  CEP_CREATEBUTTON createButton;
  CEP_CREATEIMAGE createImage;
  CEP_IMAGE_LOADIMAGEFROMFILE image_loadImageFromFile;
  CEP_IMAGE_TRANSPARENT image_transparent;
  CEP_IMAGE_STRETCH image_stretch;

  CEP_CREATELABEL createLabel;
  CEP_CREATEEDIT createEdit;
  CEP_CREATEMEMO createMemo;
  CEP_CREATETIMER createTimer;
  CEP_TIMER_SETINTERVAL timer_setInterval;
  CEP_TIMER_ONTIMER timer_onTimer;
  CEP_CONTROL_SETCAPTION control_setCaption;
  CEP_CONTROL_GETCAPTION control_getCaption;
  CEP_CONTROL_SETPOSITION control_setPosition;
  CEP_CONTROL_GETX control_getX;
  CEP_CONTROL_GETY control_getY;
  CEP_CONTROL_SETSIZE control_setSize;
  CEP_CONTROL_GETWIDTH control_getWidth;
  CEP_CONTROL_GETHEIGHT control_getHeight;
  CEP_CONTROL_SETALIGN control_setAlign;
  CEP_CONTROL_ONCLICK control_onClick;

  CEP_OBJECT_DESTROY object_destroy;
  CEP_MESSAGEDIALOG messageDialog;
  CEP_SPEEDHACK_SETSPEED speedhack_setSpeed; 


 } ExportedFunctions, *PExportedFunctions;