Help File:2 ptOnDebugEvent
Jump to navigation
Jump to search
ptOnDebugEvent
With this PluginType you will be notified whenever a debug event happens in the default windows debugger. Your callback routine will be called right after the WaitForDebugEvent returns true with the pointer to the DebugEvent structure.
Callback Definition
typedef int ( __stdcall *CEP_PLUGINTYPE2)(LPDEBUG_EVENT DebugEvent);
Return 0 if you want to let Cheat Engine, or other plugins, handle the debug event as well. Return 1 if you don't want anything else to handle this event. You will have to call ContinueDebugEvent yourself.
Pointer to structure of init you have to pass
struct PLUGINTYPE2_INIT { CEP_PLUGINTYPE2 callbackroutine; //pointer to a callback routine of the type 2 plugin };
NOTE: This event happens in a thread that is NOT the main thread. GUI specific calls (like ShowMessage) will not work properly.
- Plugin system
- GetVersion
- DisablePlugin
- InitializePlugin
- PluginVersion
- ExportedFunctions
- sizeofExportedFunctions
- ShowMessage
- RegisterFunction
- UnregisterFunction
- OpenedProcessID
- OpenedProcessHandle
- GetMainWindowHandle
- AutoAssemble
- Assembler
- Disassembler
- ChangeRegistersAtAddress
- InjectDLL
- FreezeMem
- UnfreezeMem
- FixMem
- ProcessList
- ReloadSettings
- GetAddressFromPointer
- sym_nameToAddress
- sym_addressToName
- sym_generateAPIHookScript
- loadDBK32
- loaddbvmifneeded
- previousOpcode
- nextOpcode
- disassembleEx
- loadModule
- aa_AddExtraCommand
- aa_RemoveExtraCommand