Source code of Windows XP (NT5)
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.
|
|
//----------------------------------------------------------------------------
//
// Generic interface-style extension support.
//
// Copyright (C) Microsoft Corporation, 2000.
//
//----------------------------------------------------------------------------
#ifndef __EXT_H__
#define __EXT_H__
#include <dbgeng.h>
#ifdef __cplusplus
extern "C" { #endif
// Safe release and NULL.
#define EXT_RELEASE(Unk) \
((Unk) != NULL ? ((Unk)->Release(), (Unk) = NULL) : NULL)
HRESULT ExtQuery(PDEBUG_CLIENT Client); void ExtRelease(void); // Global variables initialized by ExtQuery.
extern PDEBUG_ADVANCED g_ExtAdvanced; extern PDEBUG_CLIENT g_ExtClient; extern PDEBUG_CONTROL g_ExtControl; extern PDEBUG_DATA_SPACES g_ExtData; extern PDEBUG_REGISTERS g_ExtRegisters; extern PDEBUG_SYMBOLS g_ExtSymbols; extern PDEBUG_SYSTEM_OBJECTS g_ExtSystem;
// Version 2 interfaces may be NULL.
extern PDEBUG_DATA_SPACES2 g_ExtData2;
extern HANDLE g_hCurrentProcess; extern HANDLE g_hCurrentThread; // Windbg-style extension interfaces queried at Initialize time.
extern WINDBG_EXTENSION_APIS ExtensionApis; extern WINDBG_EXTENSION_APIS32 ExtensionApis32; extern WINDBG_EXTENSION_APIS64 ExtensionApis64;
typedef BOOL (CALLBACK *PENUMERATE_UMODE_THREADS_CALLBACK)( ULONG ThreadUserId, PVOID UserContext );
ULONG GetCurrentThreadUserID(void);
BOOL EnumerateUModeThreads( PENUMERATE_UMODE_THREADS_CALLBACK Callback, PVOID UserContext );
#ifdef __cplusplus
} #endif
#endif // #ifndef __EXT_H__
|