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/byakugan.h
Views: 11766
#include <windows.h>1#include <winerror.h>23#include <string.h>4#include <strsafe.h>56#include <stdio.h>7#include <stdlib.h>89//10// Define KDEXT_64BIT to make all wdbgexts APIs recognize 64 bit addresses11// It is recommended for extensions to use 64 bit headers from wdbgexts so12// the extensions could support 64 bit targets.13//14// So says MS.... Hopefully the new extension API will do a better job15// than the legacy API at this....16//17#define KDEXT_64BIT18#include <wdbgexts.h>19#include <dbgeng.h>2021#pragma warning(disable:4201) // nonstandard extension used : nameless struct22#include <extsfns.h>2324#ifdef __cplusplus25extern "C" {26#endif2728#define HELPSTRING "Byakugan - Increase your Sight\nPusscat / Lin0xx\n\n"293031#define INIT_API() \32HRESULT Status; \33if ((Status = ExtQuery(Client)) != S_OK) return Status;3435#define EXT_RELEASE(Unk) \36((Unk) != NULL ? ((Unk)->Release(), (Unk) = NULL) : NULL)3738#define EXIT_API ExtRelease3940#define NTSTATUS ULONG41#define STATUS_NO_MORE_ENTRIES ((NTSTATUS)0x8000001AL)4243// Global variables initialized by query.44extern PDEBUG_CLIENT4 g_ExtClient;45extern PDEBUG_CONTROL g_ExtControl;46extern PDEBUG_SYMBOLS3 g_ExtSymbols;47extern PDEBUG_SYSTEM_OBJECTS2 g_ExtSystem;48extern PDEBUG_DATA_SPACES g_ExtData;4950extern BOOL Connected;51extern ULONG TargetMachine;52extern ULONG64 disassemblyBuffer;5354HRESULT55ExtQuery(PDEBUG_CLIENT4 Client);5657void58ExtRelease(void);5960HRESULT61NotifyOnTargetAccessible(PDEBUG_CONTROL Control);6263#ifdef __cplusplus64}65#endif666768