Help File:ExportedFunctions

From Cheat Engine
Revision as of 18:29, 29 July 2021 by LeFiXER (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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;