Help File:3 ptProcesswatcherEvent

From Cheat Engine
Jump to navigation Jump to search

ptProcesswatcherEvent[edit]

With this PluginType you will get notified when the ProcessWatcher is used and it sees a new process has been created. Your callback routine retrieves the ProcessID and the PEProcess address.

Callback Definition

typedef void ( __stdcall *CEP_PLUGINTYPE3)(ULONG processid, ULONG peprocess, BOOL Created);

Doesn't need a return value.


Pointer to structure of init you have to pass

struct PLUGINTYPE3_INIT
{
  CEP_PLUGINTYPE3 callbackroutine; //Pointer to a callback routine of the type 3 plugin
};

NOTE: This event happens in a thread that is NOT the main thread. GUI specific calls (like ShowMessage) will not work properly.