How to implement a windbg plugin

How to implement a windbg plugin

Define EXT_CLASS

#include "lauxlib.h"

class EXT_CLASS : public ExtExtension

{

public:

EXT_COMMAND_METHOD(lua);

};

EXT_DECLARE_GLOBALS();

Impl methods

EXT_COMMAND(luado,

"Execute lua code.",

"{;x,r;lua string;lua code.}")

{

}

Functions can be called in methods:

Get input arguments      LPCSTR lua_code = GetUnnamedArgStr(0);

Error      Err("Cannot find script in code.\r\n");

Ref: C:\Users\aeejshe\Downloads\luadbg-master\luadbg-master\luadbg\luadbg.cpp

上一篇:laravel基础课程---12、lavarel的ajax操作2(lavarel的ajax使用总结)


下一篇:win7 怎么设置开机直接进入桌面? netplwiz 命令