Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/byakugan/stdwindbg.h
Views: 11766
struct typeNode {1ULONG bpid;2char *name;34typeNode *next;5};67BOOL disableFunctionFalse(char *);8ULONG64 resolveFunctionByName(char *);9BOOL detectCallByName(char *, char *);10PDEBUG_BREAKPOINT detectExecByAddr(ULONG64, char *);11PDEBUG_BREAKPOINT detectReadByAddr(ULONG64, char *);12PDEBUG_BREAKPOINT detectWriteByAddr(ULONG64, char *);13DWORD parseHexInput(char *, DWORD, char *);14DWORD readFileIntoBuf(char *, DWORD, char **, DWORD);1516class detectionCallBack : public IDebugEventCallbacks {17public:18typeNode *type;19LONG count;2021HRESULT __stdcall QueryInterface(const IID &, PVOID *);22ULONG __stdcall AddRef(void);23ULONG __stdcall Release(void);2425detectionCallBack();2627HRESULT __stdcall Breakpoint(PDEBUG_BREAKPOINT bp);28HRESULT __stdcall GetInterestMask(PULONG mask);29HRESULT __stdcall Exception(PEXCEPTION_RECORD64 exception, ULONG firstChance);30HRESULT __stdcall CreateThread(ULONG64 handle, ULONG64 dataOffset, ULONG64 startOffset);31HRESULT __stdcall ExitThread(ULONG exitCode);32HRESULT __stdcall CreateProcess(33ULONG64 imageFileHandle,34ULONG64 handle,35ULONG64 baseOffset,36ULONG moduleSize,37PCSTR moduleName,38PCSTR imageName,39ULONG checkSum,40ULONG timeDateStamp,41ULONG64 initialThreadHandle,42ULONG64 threadDataOffset,43ULONG64 startOffset);44HRESULT __stdcall ExitProcess(ULONG exitCode);45HRESULT __stdcall LoadModule(46ULONG64 imageFileHandle,47ULONG64 baseOffset,48ULONG moduleSize,49PCSTR moduleName,50PCSTR imageName,51ULONG checkSum,52ULONG timeDateStamp);53HRESULT __stdcall UnloadModule(PCSTR imageBaseName, ULONG64 baseOffset);54HRESULT __stdcall SystemError(ULONG error, ULONG level);55HRESULT __stdcall SessionStatus(ULONG status);56HRESULT __stdcall ChangeDebuggeeState(ULONG flags, ULONG64 argument);57HRESULT __stdcall ChangeEngineState(ULONG flags, ULONG64 argument);58HRESULT __stdcall ChangeSymbolState(ULONG flags, ULONG64 argument);59void addType(ULONG, char *);60void recTypeNuke(typeNode *);61~detectionCallBack();62};6364struct debugClientNode {65PDEBUG_CLIENT debugClient;66detectionCallBack *dcb;67struct debugClientNode *next;68};69707172