_plugin_registercallback

此函数为插件注册事件回调。每个插件都可以对每个事件有自己的回调。同一事件不可能有多个回调。

void _plugin_registercallback( int pluginHandle, //plugin handle CBTYPE cbType, //event type CBPLUGIN cbPlugin //callback function );

参数

pluginHandle:

调用插件的句柄。

cbType:

事件类型。这可以是以下任何值:

CB_INITDEBUG:, //callbackInfo: PLUG_CB_INITDEBUG*
CB_STOPDEBUG:, //callbackInfo: PLUG_CB_STOPDEBUG*
CB_CREATEPROCESS:
 , //callbackInfo: PLUG_CB_CREATEPROCESS*
CB_EXITPROCESS:, //callbackInfo: PLUG_CB_EXITPROCESS*
CB_CREATETHREAD:
 , //callbackInfo: PLUG_CB_CREATETHREAD*
CB_EXITTHREAD:, //callbackInfo: PLUG_CB_EXITTHREAD*
CB_SYSTEMBREAKPOINT:
 , //callbackInfo: PLUG_CB_SYSTEMBREAKPOINT*
CB_LOADDLL:, //callbackInfo: PLUG_CB_LOADDLL*
CB_UNLOADDLL:, //callbackInfo: PLUG_CB_UNLOADDLL*
CB_OUTPUTDEBUGSTRING:
 , //callbackInfo: PLUG_CB_OUTPUTDEBUGSTRING*
CB_EXCEPTION:, //callbackInfo: PLUG_CB_EXCEPTION*
CB_BREAKPOINT:, //callbackInfo: PLUG_CB_BREAKPOINT*
CB_PAUSEDEBUG:, //callbackInfo: PLUG_CB_PAUSEDEBUG*
CB_RESUMEDEBUG:, //callbackInfo: PLUG_CB_RESUMEDEBUG*
CB_STEPPED:, //callbackInfo: PLUG_CB_STEPPED*
CB_ATTACH:, //callbackInfo: PLUG_CB_ATTACHED*
CB_DETACH:, //callbackInfo: PLUG_CB_DETACHED*
CB_DEBUGEVENT:, //callbackInfo: PLUG_CB_DEBUGEVENT*
CB_MENUENTRY:, //callbackInfo: PLUG_CB_MENUENTRY*
CB_WINEVENT:, //callbackInfo: PLUG_CB_WINEVENT*
CB_WINEVENTGLOBAL:
 , //callbackInfo: PLUG_CB_WINEVENTGLOBAL*
CB_LOADDB:, //callbackInfo: PLUG_CB_LOADSAVEDB*
CB_SAVEDB:, //callbackInfo: PLUG_CB_LOADSAVEDB*
CB_FILTERSYMBOL:
 , //callbackInfo: PLUG_CB_FILTERSYMBOL*
CB_TRACEEXECUTE:
 , //callbackInfo: PLUG_CB_TRACEEXECUTE*
cbPlugin:

回调,其类型定义如下:

void CBPLUGIN( CBTYPE bType //event type (useful when you use the same function for multiple events void* callbackInfo //pointer to a structure of information (see above) );

返回值

此函数不返回值。