Difference between revisions of "Help File:5 ptMainMenu"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "==ptMainMenu== With this PluginType you create a new plugin menu at the top of the main window. When the user clicks the menu item your callback routine will be called and al...")
 
(No difference)

Latest revision as of 10:27, 30 July 2021

ptMainMenu[edit]

With this PluginType you create a new plugin menu at the top of the main window. When the user clicks the menu item your callback routine will be called and allows you to do whatever you like.

Callback Definition'

typedef void ( __stdcall *CEP_PLUGINTYPE5)( void );

Returns nothing.

Pointer to structure of init you have to pass

typedef struct _PLUGINTYPE5_INIT
{
  char * name;
  CEP_PLUGINTYPE5 callbackroutine;
  char * shortcut;
} PLUGINTYPE5_INIT, MAINMENUPLUGIN_INIT, *PPLUGINTYPE5_INIT, *PMAINMENUPLUGIN_INIT