Help File:6 ptDisassemblerContext

From Cheat Engine
Revision as of 10:30, 30 July 2021 by LeFiXER (talk | contribs) (Created page with "==ptDisassemblerContext== With this PluginType you create a new entry in the context menu of the disassembler. When the user opens the pop up menu, or clicks the menu item, t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ptDisassemblerContext[edit]

With this PluginType you create a new entry in the context menu of the disassembler. When the user opens the pop up menu, or clicks the menu item, the apropriate callback routine will be called.

Callback Definition

typedef BOOL ( __stdcall *CEP_PLUGINTYPE6ONPOPUP)(ULONG selectedAddress, char **addressofname);
typedef BOOL ( __stdcall *CEP_PLUGINTYPE6)(ULONG *selectedAddress);


Returns nothing.

Pointer to structure of init you have to pass

typedef struct _PLUGINTYPE6_INIT
{
  char * name;                                       //0-terminated string describing the name for the user's menu item
  CEP_PLUGINTYPE6ONPOPUP callbackroutineOnPopup;
  CEP_PLUGINTYPE6 callbackroutine;
  char * shortcut;                                   //0-terminated string containing the shortcut in text form. CE will try its best to parse it to a valid shortcut.
} PLUGINTYPE6_INIT, DISASSEMBLERCONTEXT_INIT, *PPLUGINTYPE6_INIT, *PDISASSEMBLERCONTEXT_INIT;