Help File:3 ptProcesswatcherEvent

From Cheat Engine
Revision as of 10:23, 30 July 2021 by LeFiXER (talk | contribs) (Created page with "==ptProcesswatcherEvent== With this PluginType you will get notified when the ProcessWatcher is used and it sees a new process has been created. Your callback routine retri...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.