mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
//----------------------------------------------------------------------------
|
|
//
|
|
// Generic routines and initialization code.
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 2000-2001.
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef __DBGEXTS_H__
|
|
#define __DBGEXTS_H__
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include <windows.h>
|
|
#include <dbgeng.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define INIT_API() \
|
|
HRESULT Status; \
|
|
if ((Status = ExtQuery(Client)) != S_OK) return Status;
|
|
|
|
#define EXT_RELEASE(Unk) \
|
|
((Unk) != NULL ? ((Unk)->Release(), (Unk) = NULL) : NULL)
|
|
|
|
#define EXIT_API ExtRelease
|
|
|
|
// Global variables initialized by query.
|
|
extern PDEBUG_CLIENT2 g_ExtClient;
|
|
extern PDEBUG_CONTROL2 g_ExtControl;
|
|
extern PDEBUG_DATA_SPACES2 g_ExtData;
|
|
extern PDEBUG_REGISTERS g_ExtRegisters;
|
|
extern PDEBUG_SYMBOLS2 g_ExtSymbols;
|
|
extern PDEBUG_SYSTEM_OBJECTS2 g_ExtSystem;
|
|
|
|
HRESULT ExtQuery(PDEBUG_CLIENT Client);
|
|
void ExtRelease(void);
|
|
|
|
void __cdecl ExtOut(PCSTR Format, ...);
|
|
void __cdecl ExtErr(PCSTR Format, ...);
|
|
void ExtExec(PCSTR Command);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // #ifndef __DBGEXTS_H__
|