2025-04-27 07:49:33 -04:00

44 lines
1.2 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/******************************Module*Header*******************************\
* Module Name: dbgext.h
*
* Copyright (c) 1995-1999 Microsoft Corporation
*
* Dependencies:
*
* common macros for debugger extensions
*
*
\**************************************************************************/
/**************************************************************************\
*
* GetAddress - symbol of another module
*
\**************************************************************************/
#define GetAddress(dst, src) \
*((ULONG_PTR *) &dst) = GetExpression(src);
#define GetValue(dst,src) \
GetAddress(dst,src) \
move(dst,dst);
/**************************************************************************\
*
* move(dst, src ptr)
*
\**************************************************************************/
#define move(dst, src) \
ReadMemory((ULONG_PTR) (src), &(dst), sizeof(dst), NULL)
/**************************************************************************\
*
* move2(dst ptr, src ptr, num bytes)
*
\**************************************************************************/
#define move2(dst, src, size) \
ReadMemory((ULONG_PTR) (src), (dst), (size), NULL)