Help File:0 ptAddressList

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

ptAddressList[edit]

With this PluginType you create a new plugin menu within the context menu of the addresslist. When the user clicks the menu item, your callback routine will get information about the selected record if one is selected and will give you the ability to change the address, and description.

Callback Definition

typedef BOOL ( __stdcall *CEP_PLUGINTYPE0)( struct PLUGINTYPE0_RECORD *SelectedRecord);

Return TRUE if the description or address is changed.

definition of PLIGINTYPE0_RECORD:
struct PLUGINTYPE0_RECORD
{
  char *interpretedaddress;        //Pointer to a 255-byte long string (0-terminated)
  ULONG address;                   //This is a read-only representaion of the address. Change ''interpretedAddress'' if you want to change this.
  BOOL ispointer;                  //Read-only
  int countoffsets;                //Read-only
  ULONG *offsets;                  //Array of DWORDs ranging from 0 to countoffsets-1 (read-only)
  char *description;               //Pointer to a 255-byte long string
  char valuetype;                  //0=byte, 1=word, 2=dword, 3=float, 4=double, 5=bit, 6=int64, 7=string
  char size;                       //String length or Bit length;
};

Pointer to structure of init you have to pass:
struct PLUGINTYPE0_INIT
{
  char * name;                     //0 terminated string describing the name for the user's menu item
  CEP_PLUGINTYPE0 callbackroutine; //pointer to a callback routine of the type 0 plugin
};