40 lines
932 B
C
40 lines
932 B
C
|
//----------------------------------------------------------------------------
|
||
|
//
|
||
|
// vdm.h
|
||
|
//
|
||
|
// VDM debugging support.
|
||
|
//
|
||
|
// Copyright (C) Microsoft Corporation, 1997.
|
||
|
//
|
||
|
//----------------------------------------------------------------------------
|
||
|
|
||
|
#ifndef _VDM_H_
|
||
|
#define _VDM_H_
|
||
|
|
||
|
#if 0
|
||
|
BOOL fVDMInitDone;
|
||
|
BOOL fVDMActive;
|
||
|
VDMPROCESSEXCEPTIONPROC pfnVDMProcessException;
|
||
|
VDMGETTHREADSELECTORENTRYPROC pfnVDMGetThreadSelectorEntry;
|
||
|
VDMGETPOINTERPROC pfnVDMGetPointer;
|
||
|
VDMGETCONTEXTPROC pfnVDMGetContext;
|
||
|
VDMSETCONTEXTPROC pfnVDMSetContext;
|
||
|
VDMGETSELECTORMODULEPROC pfnVDMGetSelectorModule;
|
||
|
#endif
|
||
|
|
||
|
typedef struct _segentry {
|
||
|
int type;
|
||
|
LPSTR path_name;
|
||
|
WORD selector;
|
||
|
WORD segment;
|
||
|
DWORD ImgLen; // MODLOAD only
|
||
|
} SEGENTRY;
|
||
|
|
||
|
extern SEGENTRY segtable[];
|
||
|
|
||
|
ULONG VDMEvent(DEBUG_EVENT64* Event);
|
||
|
#define VDMEVENT_HANDLED STATUS_VDM_EVENT
|
||
|
#define VDMEVENT_NOT_HANDLED 0
|
||
|
|
||
|
#endif // #ifndef _VDM_H_
|