microsoft/mu_tiano_platforms

Public

mirrored fromhttps://github.com/microsoft/mu_tiano_platformsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
dda280ce10e308d38752afdef6155cdae0d7d5c9

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

UefiDbgExt/dbgexts.h

64lines · modecode

1/*++
2
3 Copyright (c) Microsoft Corporation
4
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7Module Name:
8
9 dbgexts.h
10
11--*/
12
13#include <windows.h>
14#include <stdio.h>
15#include <stdlib.h>
16#include <string.h>
17
18//
19// Define KDEXT_64BIT to make all wdbgexts APIs recognize 64 bit addresses
20// It is recommended for extensions to use 64 bit headers from wdbgexts so
21// the extensions could support 64 bit targets.
22//
23#define KDEXT_64BIT
24#include <wdbgexts.h>
25#include <dbgeng.h>
26
27#pragma warning(disable:4201) // nonstandard extension used : nameless struct
28#include <extsfns.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34
35#define INIT_API() \
36 HRESULT Status; \
37 if ((Status = ExtQuery(Client)) != S_OK) return Status;
38
39#define EXT_RELEASE(Unk) \
40 ((Unk) != NULL ? ((Unk)->Release(), (Unk) = NULL) : NULL)
41
42#define EXIT_API ExtRelease
43
44
45// Global variables initialized by query.
46extern PDEBUG_CLIENT4 g_ExtClient;
47extern PDEBUG_CONTROL g_ExtControl;
48extern PDEBUG_SYMBOLS2 g_ExtSymbols;
49
50extern BOOL Connected;
51extern ULONG TargetMachine;
52
53HRESULT
54ExtQuery(PDEBUG_CLIENT4 Client);
55
56void
57ExtRelease(void);
58
59HRESULT
60NotifyOnTargetAccessible(PDEBUG_CONTROL Control);
61
62#ifdef __cplusplus
63}
64#endif
65